From c091988af4a2c3b7073d63a21ab543576e8c4fa0 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Fri, 26 Apr 2024 15:16:16 +0200 Subject: [PATCH] fix(button): icon styles should inherit text and icon colors from container --- src/theme/style/button.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/theme/style/button.rs b/src/theme/style/button.rs index d3fdcb88..110e25f5 100644 --- a/src/theme/style/button.rs +++ b/src/theme/style/button.rs @@ -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 => {