ui: one Participant and StreamCard for desktop and phone voice
Participant and StreamCard move into screens/voice-parts.slint with a `compact` look that replaces the phone's VoiceMember and StreamPrompt, so the compact stage and the phone's voice screen can share them. The phone's VoiceControl goes: IconButton and ActionButton get `alarm`, the filled red Leave, and `edge`; ActionButton also gets `icon-size` and `checkable`. The screenshots are unchanged. The phone's voice-bar buttons now behave like the You page's: hover, keyboard focus, surface-4 while pressed, and an accent caption while Sharing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
5 files changed
+297
-404
No files matched your search
+10
-3
@@ -25,7 +25,8 @@ crates/voelin-ui/
|
||||
shells/ desktop.slint (rail, top bar, Sidebar), mobile.slint (bottom
|
||||
navigation), common.slint (Panel, VoiceCard, UserCard, ...)
|
||||
screens/ channels, chat, members (panel, card), drawers (pins, topics),
|
||||
voice (the voice channel), streams (viewer; the phone's
|
||||
voice (the voice channel), voice-parts (its people and
|
||||
streams, also the phone's), streams (viewer; the phone's
|
||||
panel), settings, settings-pages (its sections), home,
|
||||
friends, messages (direct messages), events, overlays
|
||||
(the bell, the search, a picture), dialogs, mobile and
|
||||
@@ -94,8 +95,8 @@ puts them on an inner `face`).
|
||||
| `Icon` | icon.slint | `source` (an `Icons.*`), `size`, `tint` |
|
||||
| `Spinner` | icon.slint | `size`, `tint`, `running` |
|
||||
| `Button` | button.slint | `text`, `icon`, `kind` (`ButtonKind.primary/secondary/danger/ghost`), `enabled`, `checked`, `small`; `clicked` |
|
||||
| `IconButton` | button.slint | `icon`, `label` (screen readers), `tooltip` (default `label`, "" for none; on hover, also while disabled, desktop only), `checked`, `danger`, `round`, `filled`, `size`, `icon-size`, `tint`, `dot`, `count` (a neutral number at the top right, hidden at 0 or less); `clicked` |
|
||||
| `ActionButton` | button.slint | round button with a caption (Mute, Deafen, Go Live), no tooltip: `icon`, `text`, `checked`, `danger` |
|
||||
| `IconButton` | button.slint | `icon`, `label` (screen readers), `tooltip` (default `label`, "" for none; on hover, also while disabled, desktop only), `checked`, `danger`, `alarm` (filled red with a white icon: Leave), `round`, `filled`, `edge` (the border of a filled one while not checked), `size`, `icon-size`, `tint`, `dot`, `count` (a neutral number at the top right, hidden at 0 or less); `clicked` |
|
||||
| `ActionButton` | button.slint | round button with a caption (the phone's voice bar and You page: Mute, Deafen, Go Live, Leave), no tooltip: `icon`, `text`, `checked`, `danger`, `alarm`, `checkable` (screen readers hear `checked`), `size`, `icon-size`, `edge` |
|
||||
| `FocusRing` | button.slint | the accent ring of focused controls |
|
||||
| `TextField` | text-field.slint | `text`, `placeholder`, `input-type`, `icon`, `label`, `bare`, `read-only`; out `has-focus`, `text-height` (the height of its lines); `accepted`, `edited`, `key-pressed`; `clear()`, `select-all()`, `focus-end()` (the cursor after the text) |
|
||||
| `SearchBox` | text-field.slint | a TextField with a magnifier and the Ctrl K hint (`show-shortcut`) |
|
||||
@@ -146,6 +147,12 @@ the voice settings), `UserCard` (its avatar and name open Settings → My
|
||||
Account), `HoldToTalk`. Pages bring their own title; About is in the
|
||||
settings (and on the phone's You page).
|
||||
|
||||
Voice parts (ui/screens/voice-parts.slint), for the desktop's voice view and
|
||||
the phone's voice screen: `Participant` (`member`, `size`: the avatar's) and
|
||||
`StreamCard` (`stream`), both with `compact`, the phone's smaller look (a
|
||||
person ringed only while talking or streaming, LIVE below the name; a stream
|
||||
as a row).
|
||||
|
||||
## The server page
|
||||
|
||||
The server page follows the design mockups 03 to 08 (desktop). Each part
|
||||
|
||||
Reference in new issue
Block a user