mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
theme: fix menu check/radio styling
This is a leftover from the CssNode port of GtkCheckMenuItem and GtkRadioMenuItem.
This commit is contained in:
parent
b602dc2eed
commit
0e24d6cd85
@ -2092,15 +2092,21 @@ switch {
|
||||
}
|
||||
|
||||
//menu
|
||||
menu menuitem.#{$w} {
|
||||
menu menuitem #{$w} {
|
||||
color: mix($fg_color, $bg_color, 70%);
|
||||
-gtk-icon-source: -gtk-icontheme('#{$a}-symbolic');
|
||||
color: mix($fg_color, $bg_color, 60%);
|
||||
-gtk-icon-shadow: none;
|
||||
&:active, &:checked {
|
||||
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
|
||||
&:hover, &:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme('#{$a}-symbolic');
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
&:inconsistent {
|
||||
&:checked, &:checked:hover, &:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
&:inconsistent, &:inconsistent:hover, &:inconsistent:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
&:hover { color: $selected_fg_color; }
|
||||
&:insensitive { color: mix($insensitive_fg_color, $bg_color, 50%); }
|
||||
|
@ -2767,17 +2767,22 @@ check:backdrop:checked:insensitive {
|
||||
.titlebar check:backdrop:checked:insensitive button.titlebutton {
|
||||
-gtk-icon-shadow: none; }
|
||||
|
||||
menu menuitem.check {
|
||||
menu menuitem check {
|
||||
color: #b8bab8;
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
|
||||
color: #a6a8a7;
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem.check:active, menu menuitem.check:checked {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic"); }
|
||||
menu menuitem.check:inconsistent {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
|
||||
menu menuitem.check:hover {
|
||||
menu menuitem check:hover, menu menuitem check:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:checked, menu menuitem check:checked:hover, menu menuitem check:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:inconsistent, menu menuitem check:inconsistent:hover, menu menuitem check:inconsistent:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:hover {
|
||||
color: #ffffff; }
|
||||
menu menuitem.check:insensitive {
|
||||
menu menuitem check:insensitive {
|
||||
color: #676b6b; }
|
||||
|
||||
radio {
|
||||
@ -2924,17 +2929,22 @@ radio:backdrop:checked:insensitive {
|
||||
.titlebar radio:backdrop:checked:insensitive button.titlebutton {
|
||||
-gtk-icon-shadow: none; }
|
||||
|
||||
menu menuitem.radio {
|
||||
menu menuitem radio {
|
||||
color: #b8bab8;
|
||||
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
|
||||
color: #a6a8a7;
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem.radio:active, menu menuitem.radio:checked {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic"); }
|
||||
menu menuitem.radio:inconsistent {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
|
||||
menu menuitem.radio:hover {
|
||||
menu menuitem radio:hover, menu menuitem radio:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:checked, menu menuitem radio:checked:hover, menu menuitem radio:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:inconsistent, menu menuitem radio:inconsistent:hover, menu menuitem radio:inconsistent:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:hover {
|
||||
color: #ffffff; }
|
||||
menu menuitem.radio:insensitive {
|
||||
menu menuitem radio:insensitive {
|
||||
color: #676b6b; }
|
||||
|
||||
.view.check, .view.radio,
|
||||
|
@ -2857,17 +2857,22 @@ check:backdrop:checked:insensitive {
|
||||
row:selected check:backdrop:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-scaled(url("assets/selected-checkbox-checked-backdrop-insensitive.png"), url("assets/selected-checkbox-checked-backdrop-insensitive@2.png")); }
|
||||
|
||||
menu menuitem.check {
|
||||
menu menuitem check {
|
||||
color: #666a6b;
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
|
||||
color: #787c7d;
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem.check:active, menu menuitem.check:checked {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic"); }
|
||||
menu menuitem.check:inconsistent {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
|
||||
menu menuitem.check:hover {
|
||||
menu menuitem check:hover, menu menuitem check:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:checked, menu menuitem check:checked:hover, menu menuitem check:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:inconsistent, menu menuitem check:inconsistent:hover, menu menuitem check:inconsistent:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem check:hover {
|
||||
color: #ffffff; }
|
||||
menu menuitem.check:insensitive {
|
||||
menu menuitem check:insensitive {
|
||||
color: #babbbb; }
|
||||
|
||||
radio {
|
||||
@ -3086,17 +3091,22 @@ radio:backdrop:checked:insensitive {
|
||||
row:selected radio:backdrop:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-scaled(url("assets/selected-radio-checked-backdrop-insensitive.png"), url("assets/selected-radio-checked-backdrop-insensitive@2.png")); }
|
||||
|
||||
menu menuitem.radio {
|
||||
menu menuitem radio {
|
||||
color: #666a6b;
|
||||
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
|
||||
color: #787c7d;
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem.radio:active, menu menuitem.radio:checked {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic"); }
|
||||
menu menuitem.radio:inconsistent {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
|
||||
menu menuitem.radio:hover {
|
||||
menu menuitem radio:hover, menu menuitem radio:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:checked, menu menuitem radio:checked:hover, menu menuitem radio:checked:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:inconsistent, menu menuitem radio:inconsistent:hover, menu menuitem radio:inconsistent:insensitive {
|
||||
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic");
|
||||
-gtk-icon-shadow: none; }
|
||||
menu menuitem radio:hover {
|
||||
color: #ffffff; }
|
||||
menu menuitem.radio:insensitive {
|
||||
menu menuitem radio:insensitive {
|
||||
color: #babbbb; }
|
||||
|
||||
.view.check, .view.radio,
|
||||
|
Loading…
Reference in New Issue
Block a user