style: Tweak menuitem drawing function to fix hover color
- drop the flat style if statement, since it's unused/redundant - use same style for hover, selected and checked Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7939 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3552>
This commit is contained in:
parent
256e9d7925
commit
4a89811211
@ -372,23 +372,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// styling for all menuitems in popovers
|
// styling for all menuitems in popovers
|
||||||
@mixin menuitem($bg, $style: flat) {
|
@mixin menuitem($bg) {
|
||||||
|
|
||||||
// extend common styles
|
// extend common styles
|
||||||
@extend %menuitem;
|
@extend %menuitem;
|
||||||
|
|
||||||
@if $style == 'flat' {
|
@include button(undecorated, $c:$bg, $style: flat);
|
||||||
@include button(undecorated);
|
&:active { @include button(active, $c:$bg, $style: flat);}
|
||||||
} @else {
|
&:hover, &:selected, &:checked { @include button(hover, $c:$bg, $style: flat);}
|
||||||
@include button(normal, $c:$bg);
|
&:insensitive { @include button(insensitive, $c:$bg, $style: flat);}
|
||||||
}
|
|
||||||
&:hover {
|
|
||||||
@include button(hover, $c:$bg);
|
|
||||||
}
|
|
||||||
&:active {@include button(active, $c:$bg);}
|
|
||||||
&:selected,
|
|
||||||
&:checked {@include button(checked, $c:$bg);}
|
|
||||||
&:insensitive {@include button(insensitive, $c:$bg);}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Panel menu/button drawing function
|
// Panel menu/button drawing function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user