fix: disabled menu buttons don't need to be transparent

This commit is contained in:
Ashley Wulber 2026-07-02 14:10:00 -04:00 • committed by Michael Murphy
parent 6cdb4c62ce
commit ee5d965983

View file

@ -218,7 +218,12 @@ impl Catalog for crate::Theme {
appearance(self, false, false, true, style, |component| {
let mut background = Color::from(component.base);
background.a *= 0.5;
if !matches!(
style,
Button::MenuFolder | Button::MenuItem | Button::MenuRoot
) {
background.a *= 0.5;
}
(
background,
Some(component.on_disabled.into()),