fix(button): icon styles should inherit text and icon colors from container
This commit is contained in:
parent
fe3f9464f7
commit
c091988af4
1 changed files with 1 additions and 3 deletions
|
|
@ -75,10 +75,8 @@ pub fn appearance(
|
||||||
corner_radii = &cosmic.corner_radii.radius_m;
|
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.background = Some(Background::Color(background));
|
||||||
appearance.text_color = text;
|
|
||||||
appearance.icon_color = icon;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Button::Image => {
|
Button::Image => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue