The grip of a collapsed icon group is a faint hairline

The grip bar above each icon group of a collapsed column is painted
`stroke.thin` wide in `text.faint`, as the reference's faint grips, and
in `text.normal` under the pointer or while dragged.
This commit is contained in:
aiongg committed 2026-11-21 07:16:45 +00:00
1 parent e038a18e0d
commit 7bf0a9b6dd
1 file changed
+4 -2
+4 -2
View File
@@ -423,10 +423,12 @@ impl<P: Value + Hash + Debug + 'static> Component for IconicColumn<'_, P> {
name: cx.color(colors.text.normal),
name_open: cx.color(colors.accent.text),
name_gap: cx.tokens.space.gap.item,
grip: cx.color(colors.text.muted),
// A handle that is found when looked for, as the reference's faint grips: the faint ink in a hairline,
// the normal ink under the pointer.
grip: cx.color(colors.text.faint),
grip_active: cx.color(colors.text.normal),
grip_length: cx.tokens.size.rail.button * GRIP_BAR_IN_CELLS,
grip_thickness: cx.tokens.stroke.thick,
grip_thickness: cx.tokens.stroke.thin,
grip_radius: UiTokens::corner(cx.tokens.shape.radius.pill),
}
}