sidebar: fall back to theme sidebar color when opaque

This commit is contained in:
2026-11-16 05:16:46 +07:00
parent 1cb86c497a
commit a7abeea8c6
7 changed files with 83 additions and 20 deletions
+7 -1
View File
@@ -371,7 +371,13 @@ impl RenderOnce for Sidebar {
.w(width)
.flex()
.flex_col()
.when(material, |sidebar| sidebar.bg(theme.material.background))
.map(|sidebar| {
if material {
sidebar.bg(theme.material.background)
} else {
sidebar.bg(theme.colors.sidebar)
}
})
.text_size(theme.sizes.medium.text_size)
.when(border_right, |sidebar| {
sidebar