From 277262ce2972c2ec8337aff6a6d1a255efcfa0a8 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Fri, 25 Sep 2026 21:48:15 -0700 Subject: [PATCH] fix: page tab pills keep OneNote's rounding and hover in the section's hue Assisted-by: claude-opus-5.5 --- crates/snowbound/src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/snowbound/src/main.rs b/crates/snowbound/src/main.rs index 800243936cd08da41faf7f6f77dac394971da25a..8edfb0a2e91fb3c4c409bcccdfe720ca257a5c68 100644 --- a/crates/snowbound/src/main.rs +++ b/crates/snowbound/src/main.rs @@ -1106,20 +1106,21 @@ impl State { space, Spec { size: [px(PAGE_LIST), px(26.0)], - pad: [6.0, 0.0], ..Spec::default() }, ); let spec = Spec { - size: [fill(), px(26.0)], + flags: Flags::CLICKABLE | Flags::FLOAT, + size: [px(PAGE_LIST - 3.0 - 6.0), px(26.0)], + position: [3.0, 0.0], color: Some(if title.is_empty() { ui::mix(theme.ink, section.tab, 0.5) } else { theme.ink }), fill: Some(section.tab), - hover_fill: Some(ui::mix(section.tab, theme.ink, 0.12)), - radius: 13.0, + hover_fill: Some(ui::mix(section.tab, section.accent, 0.3)), + radius: ROUNDING, ..spec }; let clicked = self.ui.leaf("pill", spec).clicked; -- 2.54.0