tabs: simplify selected strip tab styling

This commit is contained in:
2026-11-15 11:17:15 +07:00
parent 45ea41b93b
commit 032158fc01
3 changed files with 7 additions and 9 deletions
+1 -5
View File
@@ -629,11 +629,7 @@ impl Tab {
.px(metrics.dense_padding_x)
.pr(metrics.plate_inset)
.rounded(theme.radius.control)
.when(selected, |strip_tab| {
strip_tab
.bg(theme.colors.muted)
.hover(|strip_tab| strip_tab.bg(theme.colors.muted_hover))
}),
.when(selected, |strip_tab| strip_tab.bg(theme.colors.muted_hover)),
})
.when_some(self.lead.take(), |strip_tab, lead| strip_tab.child(lead))
.child(self.label.clone())