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
parent 5e7fd0f57c
commit 815b90dc27
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -459,7 +459,12 @@ impl container::StyleSheet for Theme {
}, },
Container::List => { 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 { container::Appearance {
icon_color: Some(component.on.into()), icon_color: Some(component.on.into()),