mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 10:31:37 +01:00
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:
1 parent
e038a18e0d
commit
7bf0a9b6dd
1 file changed
+4
-2
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user