voelin-gpui: a banner row shows its selection and its hover over the picture

A channel row paints its selected and hover backgrounds on the row, and the
banner picture, drawn from the indent on, covers them: a banner row showed a
strip of hover left of the picture and no selection at all. channels.slint
tints the hover over the picture with a translucent child (surface-3 at 50 %),
as the own channel's tint is drawn here; the row now does the same, with a
child above the veil for the selected row (surface 3 at 75 %, a state Slint
has none for) and one for the hover (50 %, through the row's group, so the
pointer anywhere on the row tints it). Our own channel keeps its accent tint.

A test selects two banner rows of the sample server in turn and finds the
tint on the selected one only; docs/ui/gpui-tree-banner-selected-dark.png
shows Raid Night selected and the pointer on Music (release build, lavapipe on
Xvfb :233 with openbox).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 07:48:58 +03:00
1 parent cc143f312d
commit f28c02a18c
4 files changed
+73 -6

No files matched your search

+16 -2
View File
@@ -1425,6 +1425,15 @@ through Vulkan on Xvfb `:201` of 3840 by 2160 with openbox, 1440 by 960): the
banner rows, Raid Night and Music, are under the veil, and the avatars of the
tree show one letter.
![the tree with a banner row selected and one under the pointer, dark](ui/gpui-tree-banner-selected-dark.png)
`gpui-tree-banner-selected-dark.png` is the same window with Raid Night selected
(a click) and the pointer on Music: a banner row shows its selection and its
hover as a tint over the picture, as the speaking ring and bars show on Kairo's
row (release build of the commit that tinted them, lavapipe through Vulkan on
Xvfb `:233` of 3840 by 2160 with openbox, 1440 by 960, two `xdotool` moves and
`xwd`, the state under the checkout's `.scratch/`).
What is on screen:
- **The channel tree** (`channels.rs`, in the sidebar between the server card
@@ -1437,9 +1446,14 @@ What is on screen:
the banner picture behind it and our channel highlighted. The banner has the
veil of `components/banner-picture.slint` over it (`widgets::banner_scrim`:
the surface colour, 74 % opaque on the left to 66 % on the right, under the
tint of our channel), so the name keeps more than 4.5 to 1 against any
tints of the row), so the name keeps more than 4.5 to 1 against any
picture in both themes (a test states it for the weakest end over a black
and a white picture). A person's row has their avatar (the first letter
and a white picture). The row's own background (the selected one's and the
hover's) is under the picture, which covers it from the indent on, so a row
with a banner shows its states as translucent tints over the veil: our
channel's accent tint, the selected row's (surface 3 at 75 %) and the hover's
(surface 3 at 50 %, as `channels.slint` tints it). A person's row has their
avatar (the first letter
only, at half the size, under 28 pixels as `avatar.slint` does), name (ours
in the accent colour, someone away muted), badges, a
LIVE tag while they stream, the marks of local mute (or volume) and of their
Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB