theme: Style .selected menu items instead of :focus/:hover
The .selected style class indicates the "active" menu item, which is generally the last hovered or focused one (whichever happened last). Styling that instead of :focus and :hover directly guarantees that only a single item will be selected at a time, which removes ambiguity and matches the behavior of GTK+ menus. https://bugzilla.gnome.org/show_bug.cgi?id=745246
This commit is contained in:
parent
8b6e566728
commit
826682cc07
@ -393,7 +393,7 @@ StScrollBar {
|
||||
background-color: black;
|
||||
box-shadow: inset 0 1px 0px #0d0d0d;
|
||||
font-weight: bold; }
|
||||
.popup-menu .popup-menu-item:hover, .popup-menu .popup-menu-item:focus {
|
||||
.popup-menu .popup-menu-item.selected {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
color: #fff; }
|
||||
.popup-menu .popup-menu-item:active {
|
||||
@ -401,8 +401,6 @@ StScrollBar {
|
||||
color: #ffffff; }
|
||||
.popup-menu .popup-menu-item:insensitive {
|
||||
color: rgba(255, 255, 255, 0.5); }
|
||||
.popup-menu .selected {
|
||||
background-color: #215d9c; }
|
||||
.popup-menu .popup-inactive-menu-item {
|
||||
color: #fff; }
|
||||
.popup-menu .popup-inactive-menu-item:insensitive {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit bc0a7a9fcdc32bf79679542dba41a4a6de5615f1
|
||||
Subproject commit a84637bf55bca3b515bc5602cf02ec48b8450dfd
|
@ -393,7 +393,7 @@ StScrollBar {
|
||||
background-color: #343a3a;
|
||||
box-shadow: inset 0 1px 0px #282c2c;
|
||||
font-weight: bold; }
|
||||
.popup-menu .popup-menu-item:hover, .popup-menu .popup-menu-item:focus {
|
||||
.popup-menu .popup-menu-item.selected {
|
||||
background-color: rgba(238, 238, 236, 0.1);
|
||||
color: #eeeeec; }
|
||||
.popup-menu .popup-menu-item:active {
|
||||
@ -401,8 +401,6 @@ StScrollBar {
|
||||
color: #ffffff; }
|
||||
.popup-menu .popup-menu-item:insensitive {
|
||||
color: rgba(238, 238, 236, 0.5); }
|
||||
.popup-menu .selected {
|
||||
background-color: #215d9c; }
|
||||
.popup-menu .popup-inactive-menu-item {
|
||||
color: #eeeeec; }
|
||||
.popup-menu .popup-inactive-menu-item:insensitive {
|
||||
|
Loading…
Reference in New Issue
Block a user