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 {...@@ -1106,20 +1106,21 @@ impl State {
1106 space,1106 space,
1107 Spec {1107 Spec {
1108 size: [px(PAGE_LIST), px(26.0)],1108 size: [px(PAGE_LIST), px(26.0)],
1109 pad: [6.0, 0.0],
1110 ..Spec::default()1109 ..Spec::default()
1111 },1110 },
1112 );1111 );
1113 let spec = Spec {1112 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],
1115 color: Some(if title.is_empty() {1116 color: Some(if title.is_empty() {
1116 ui::mix(theme.ink, section.tab, 0.5)1117 ui::mix(theme.ink, section.tab, 0.5)
1117 } else {1118 } else {
1118 theme.ink1119 theme.ink
1119 }),1120 }),
1120 fill: Some(section.tab),1121 fill: Some(section.tab),
1121 hover_fill: Some(ui::mix(section.tab, theme.ink, 0.12)),1122 hover_fill: Some(ui::mix(section.tab, section.accent, 0.3)),
1122 radius: 13.0,1123 radius: ROUNDING,
1123 ..spec1124 ..spec
1124 };1125 };
1125 let clicked = self.ui.leaf("pill", spec).clicked;1126 let clicked = self.ui.leaf("pill", spec).clicked;