sidebar: fall back to theme sidebar color when opaque
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user