fix(theme): Container::List has wrong background color on light theme

This commit is contained in:
Michael Aaron Murphy 2024-03-05 15:12:29 +01:00 committed by Jeremy Soller
parent 85898347e2
commit 736eca1150

View file

@ -459,7 +459,12 @@ impl container::StyleSheet for Theme {
},
Container::List => {
let component = &self.current_container().component;
// TODO: The primary component has the wrong color on the light theme.
let component = if cosmic.is_dark {
&self.current_container().component
} else {
&cosmic.background.component
};
container::Appearance {
icon_color: Some(component.on.into()),