fix(button): icon styles should inherit text and icon colors from container

This commit is contained in:
Michael Aaron Murphy 2024-04-26 15:16:16 +02:00 committed by Michael Murphy
parent fe3f9464f7
commit c091988af4

View file

@ -75,10 +75,8 @@ 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;
}
Button::Image => {