Skip to content

Commit

Permalink
Fix disabled icon button and menu item styles, fixes #621
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 27, 2024
1 parent 7016380 commit 2006ebe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/theme/style/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ pub fn appearance(
}
}

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 => {
Expand Down Expand Up @@ -129,11 +131,10 @@ pub fn appearance(
appearance.text_color = None;
}
Button::MenuItem => {
let (background, _, _) = color(&cosmic.background.component);
let (background, text, icon) = color(&cosmic.background.component);
appearance.background = Some(Background::Color(background));

appearance.icon_color = Some(cosmic.background.on.into());
appearance.text_color = Some(cosmic.background.on.into());
appearance.icon_color = icon;
appearance.text_color = text;
corner_radii = &cosmic.corner_radii.radius_s;
}
}
Expand Down

0 comments on commit 2006ebe

Please sign in to comment.