From 48bffcbe0f6015880e9cd84c5a671171747bdc75 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Thu, 12 Oct 2023 13:13:19 +0200 Subject: [PATCH] fix(button): text and icon color not set on icon buttons --- src/theme/style/button.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theme/style/button.rs b/src/theme/style/button.rs index 18dbfb41..07fbd611 100644 --- a/src/theme/style/button.rs +++ b/src/theme/style/button.rs @@ -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());