From faca29ba97d222310ef76a164db10370575e943a Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Thu, 19 Nov 2026 20:41:10 +0000 Subject: [PATCH] lead: a side menu row takes the large icon token (the standard one is a plain button's already, so the trial saw no change) --- crates/ui-widgets/src/buttons/button.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-widgets/src/buttons/button.rs b/crates/ui-widgets/src/buttons/button.rs index cbb420348..251e72065 100644 --- a/crates/ui-widgets/src/buttons/button.rs +++ b/crates/ui-widgets/src/buttons/button.rs @@ -271,9 +271,9 @@ impl Component for Button<'_> { let (rest, dim) = (cx.color(ink), cx.color(ink.with_alpha(SIDE_MENU_DISABLED_ALPHA))); let text = craft_theme::Stateful::new(rest).off(craft_theme::States::new(rest, rest, rest, dim)); style.text.color = text.clone(); - // A place's icon is the standard icon, not a control's small one, set off from its name by a section gap: a - // list of places reads by its icons (WordCraft's File rail: 18 pt icons 12 pt before 14 pt names). - style.icon = IconLook::new(style.icon.side.max(cx.tokens.size.icon.md), text); + // A place's icon is the large icon, not a control's standard one, set off from its name by a section gap: a + // list of places reads by its icons (WordCraft's File rail: 18 pt icons, nearest token 20 pt, 12 pt before 14 pt names). + style.icon = IconLook::new(style.icon.side.max(cx.tokens.size.icon.lg), text); // The face paints by its gap and the measure by the metrics', so the two stay one. style.face.gap = style.face.gap.max(cx.tokens.space.gap.section); style.metrics.gap = style.face.gap;