authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-09-25 21:48:15-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-09-27 04:23:49-07:00
log277262ce2972c2ec8337aff6a6d1a255efcfa0a8
tree53d86632b691509edf094ad3777d9358173fba0c
parent8a427ca60769dc6268c802235ceed1f70d44ee6f
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

fix: page tab pills keep OneNote's rounding and hover in the section's hue

Assisted-by: claude-opus-5.5

1 files changed, 5 insertions(+), 4 deletions(-)

crates/snowbound/src/main.rs+5-4
......@@ -1106,20 +1106,21 @@ impl State {
11061106 space,
11071107 Spec {
11081108 size: [px(PAGE_LIST), px(26.0)],
1109 pad: [6.0, 0.0],
11101109 ..Spec::default()
11111110 },
11121111 );
11131112 let spec = Spec {
1114 size: [fill(), px(26.0)],
1113 flags: Flags::CLICKABLE | Flags::FLOAT,
1114 size: [px(PAGE_LIST - 3.0 - 6.0), px(26.0)],
1115 position: [3.0, 0.0],
11151116 color: Some(if title.is_empty() {
11161117 ui::mix(theme.ink, section.tab, 0.5)
11171118 } else {
11181119 theme.ink
11191120 }),
11201121 fill: Some(section.tab),
1121 hover_fill: Some(ui::mix(section.tab, theme.ink, 0.12)),
1122 radius: 13.0,
1122 hover_fill: Some(ui::mix(section.tab, section.accent, 0.3)),
1123 radius: ROUNDING,
11231124 ..spec
11241125 };
11251126 let clicked = self.ui.leaf("pill", spec).clicked;