Fix disabled icon button and menu item styles, fixes #621
This commit is contained in:
parent
701638009d
commit
2006ebe447
1 changed files with 6 additions and 5 deletions
|
|
@ -80,8 +80,10 @@ pub fn appearance(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let (background, _text, _icon) = color(&cosmic.icon_button);
|
let (background, text, icon) = color(&cosmic.icon_button);
|
||||||
appearance.background = Some(Background::Color(background));
|
appearance.background = Some(Background::Color(background));
|
||||||
|
appearance.text_color = text;
|
||||||
|
appearance.icon_color = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
Button::Image => {
|
Button::Image => {
|
||||||
|
|
@ -129,11 +131,10 @@ pub fn appearance(
|
||||||
appearance.text_color = None;
|
appearance.text_color = None;
|
||||||
}
|
}
|
||||||
Button::MenuItem => {
|
Button::MenuItem => {
|
||||||
let (background, _, _) = color(&cosmic.background.component);
|
let (background, text, icon) = color(&cosmic.background.component);
|
||||||
appearance.background = Some(Background::Color(background));
|
appearance.background = Some(Background::Color(background));
|
||||||
|
appearance.icon_color = icon;
|
||||||
appearance.icon_color = Some(cosmic.background.on.into());
|
appearance.text_color = text;
|
||||||
appearance.text_color = Some(cosmic.background.on.into());
|
|
||||||
corner_radii = &cosmic.corner_radii.radius_s;
|
corner_radii = &cosmic.corner_radii.radius_s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue