fix(theme): Container::List has wrong background color on light theme
This commit is contained in:
parent
5e7fd0f57c
commit
815b90dc27
1 changed files with 6 additions and 1 deletions
|
|
@ -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()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue