fix: disabled menu buttons don't need to be transparent
This commit is contained in:
parent
6cdb4c62ce
commit
ee5d965983
1 changed files with 6 additions and 1 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue