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