fix(button): text and icon color not set on icon buttons
This commit is contained in:
parent
2c55285ad4
commit
48bffcbe0f
1 changed files with 3 additions and 3 deletions
|
|
@ -67,10 +67,10 @@ pub fn appearance(
|
|||
corner_radii = &cosmic.corner_radii.radius_m;
|
||||
}
|
||||
|
||||
let (background, _text, icon) = color(&cosmic.icon_button);
|
||||
let (background, text, icon) = color(&cosmic.icon_button);
|
||||
appearance.background = Some(Background::Color(background));
|
||||
// appearance.text_color = text;
|
||||
// appearance.icon_color = icon;
|
||||
appearance.text_color = text;
|
||||
appearance.icon_color = icon;
|
||||
|
||||
if focused {
|
||||
appearance.text_color = Some(cosmic.accent.on.into());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue