feat(client): icon buttons, emoji picker, reactions and a redesigned voice room

- Replace every hand drawn symbol and unicode glyph with Lucide icons via
  Symbol, with tooltips on icon buttons (built-in Tooltip, which does not
  swallow clicks), a proper gear and a clear log-out button for leaving a
  server.
- Center text and controls vertically in channel rows, headers, the user
  panel and friend rows.
- Message actions: quick reactions, add reaction, reply, edit and delete as
  icons. The bar stays visible while the pointer is over its buttons.
- Emoji picker with categories and Russian and English search for the
  composer and for reactions. Reactions are shown under the message and
  toggle on click (ReactionAdd or ReactionRemove).
- Remove the keyboard hint under the composer, add a placeholder and a
  growing editor with emoji and send buttons.
- Voice room: participant cards with avatar and speaking ring, round icon
  controls with off states in red, accent gradient background.
- One AvatarView everywhere (including voice cards and members). The local
  user is listed as online in the member list.
- Real checkbox on the connect screen, theme overlay colour for the trust
  dialog, accent primary button.
- ui_smoke now renders screens in all four themes and checks the member
  status, the action bar and the picker with real pointer input.
This commit is contained in:
Loki 2026-10-25 10:26:02 +01:00
parent 4462ef4708
commit 220af2d6a4
Signed by: boba
GPG key ID: 253067914055423B
24 changed files with 1120 additions and 258 deletions

View file

@ -2,6 +2,7 @@ export { WebhookWindow, WebhookRow } from "webhooks.slint";
export { ScreenShareWindow, ScreenViewerWindow } from "screen-share.slint";
export { UnlockWindow } from "unlock.slint";
export { Theme } from "theme.slint";
export { EmojiCatalog, EmojiItem } from "emoji-picker.slint";
import { Theme, ActionButton } from "theme.slint";
import { Sidebar, ChannelItem, GuildItem, DmItem } from "sidebar.slint";
import { ChatPanel, MessageItem, MemberItem } from "chat.slint";
@ -17,6 +18,7 @@ export component MainWindow inherits Window {
in-out property <[DmItem]> dm-conversations;
in-out property <string> username;
in-out property <string> user-status;
in-out property <string> own-initials;
in-out property <string> active-channel-id;
in-out property <int> active-guild-idx;
in-out property <bool> show-dms;
@ -227,6 +229,7 @@ export component MainWindow inherits Window {
show-friends => { root.show-friends-view(); }
own-avatar: root.own-avatar;
has-avatar: root.has-avatar;
own-initials: root.own-initials;
username: root.username;
user-status: root.user-status;
active-channel-id: root.active-channel-id;
@ -244,7 +247,7 @@ export component MainWindow inherits Window {
HorizontalLayout {
padding-left: 16px; padding-right: 10px; spacing: 12px;
Text { text: root.status-text; color: Theme.text-secondary; font-size: Math.max(11px, Theme.font-size * 0.75); wrap: word-wrap; vertical-alignment: center; horizontal-stretch: 1; }
ActionButton { text: "×"; width: 28px; quiet: true; clicked => { root.dismiss-status(); } }
VerticalLayout { alignment: center; ActionButton { text: @tr("Dismiss"); icon: "x"; width: 28px; quiet: true; clicked => { root.dismiss-status(); } } }
}
}
if root.show-chat : ChatPanel {
@ -295,6 +298,8 @@ export component MainWindow inherits Window {
channel-name: root.voice-channel-name;
activity-banner: root.activity-banner;
joining: root.voice-joining;
own-avatar: root.own-avatar;
has-own-avatar: root.has-avatar;
push-to-talk: root.vad-mode == 0;
ptt-held(held) => { root.ptt-held(held); }
toggle-mic => { root.toggle-mic(); }