Adwaita: menu checks and radios making sense

This commit is contained in:
Lapo Calamandrei 2014-08-26 20:32:36 +02:00
parent a02b8e06a4
commit 6574d99adf
3 changed files with 9 additions and 121 deletions

View File

@ -1747,38 +1747,14 @@ $asset_suffix: if($variant=='dark', '-dark', '');
//menu
.menu .menuitem.#{$w} {
icon-shadow: none;
color: transparentize($fg_color,0.9);
background-image: none;
-gtk-icon-source: -gtk-icontheme('#{$a}-symbolic');
&:hover { color: transparentize($selected_fg_color,0.9); }
icon-shadow: none;
&:active, &:checked {
color: $fg_color;
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic');
&:hover {
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic'); //specificity workaround
color: $selected_fg_color;
}
&:insensitive {
color: $insensitive_fg_color;
background-image: none;
&:backdrop { color: $backdrop_insensitive_color; };
}
&:backdrop {
-gtk-icon-source: -gtk-icontheme('#{$a}-checked-symbolic'); //specificity workaround
color: $backdrop_fg_color;
}
}
&:insensitive {
color: transparentize($insensitive_fg_color,0.9);
&:backdrop { color: transparent; }
}
&:inconsistent {
-gtk-icon-source: -gtk-icontheme('#{$a}-mixed-symbolic');
}
&:backdrop, &:backdrop:hover {
color: transparentize($backdrop_fg_color,0.9);
}
}
}

View File

@ -2020,34 +2020,12 @@ GtkSwitch {
icon-shadow: none; }
.menu .menuitem.check {
icon-shadow: none;
color: rgba(238, 238, 236, 0.1);
background-image: none;
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic"); }
.menu .menuitem.check:hover {
color: rgba(255, 255, 255, 0.1); }
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
icon-shadow: none; }
.menu .menuitem.check:active, .menu .menuitem.check:checked {
color: #eeeeec;
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic"); }
.menu .menuitem.check:active:hover, .menu .menuitem.check:checked:hover {
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
color: #ffffff; }
.menu .menuitem.check:active:insensitive, .menu .menuitem.check:checked:insensitive {
color: #939695;
background-image: none; }
.menu .menuitem.check:active:insensitive:backdrop, .menu .menuitem.check:checked:insensitive:backdrop {
color: #5d6767; }
.menu .menuitem.check:active:backdrop, .menu .menuitem.check:checked:backdrop {
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
color: #c9cbc9; }
.menu .menuitem.check:insensitive {
color: rgba(147, 150, 149, 0.1); }
.menu .menuitem.check:insensitive:backdrop {
color: transparent; }
.menu .menuitem.check:inconsistent {
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
.menu .menuitem.check:backdrop, .menu .menuitem.check:backdrop:hover {
color: rgba(201, 203, 201, 0.1); }
.radio {
-gtk-icon-source: -gtk-scaled(url("assets/radio-unchecked-dark.png"), url("assets/radio-unchecked-dark@2.png"));
@ -2122,34 +2100,12 @@ GtkSwitch {
icon-shadow: none; }
.menu .menuitem.radio {
icon-shadow: none;
color: rgba(238, 238, 236, 0.1);
background-image: none;
-gtk-icon-source: -gtk-icontheme("radio-symbolic"); }
.menu .menuitem.radio:hover {
color: rgba(255, 255, 255, 0.1); }
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
icon-shadow: none; }
.menu .menuitem.radio:active, .menu .menuitem.radio:checked {
color: #eeeeec;
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic"); }
.menu .menuitem.radio:active:hover, .menu .menuitem.radio:checked:hover {
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
color: #ffffff; }
.menu .menuitem.radio:active:insensitive, .menu .menuitem.radio:checked:insensitive {
color: #939695;
background-image: none; }
.menu .menuitem.radio:active:insensitive:backdrop, .menu .menuitem.radio:checked:insensitive:backdrop {
color: #5d6767; }
.menu .menuitem.radio:active:backdrop, .menu .menuitem.radio:checked:backdrop {
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
color: #c9cbc9; }
.menu .menuitem.radio:insensitive {
color: rgba(147, 150, 149, 0.1); }
.menu .menuitem.radio:insensitive:backdrop {
color: transparent; }
.menu .menuitem.radio:inconsistent {
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
.menu .menuitem.radio:backdrop, .menu .menuitem.radio:backdrop:hover {
color: rgba(201, 203, 201, 0.1); }
GtkTreeView.view.check, GtkTreeView.view.radio {
icon-shadow: none; }

View File

@ -2015,34 +2015,12 @@ GtkSwitch {
icon-shadow: none; }
.menu .menuitem.check {
icon-shadow: none;
color: rgba(46, 52, 54, 0.1);
background-image: none;
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic"); }
.menu .menuitem.check:hover {
color: rgba(255, 255, 255, 0.1); }
-gtk-icon-source: -gtk-icontheme("checkbox-symbolic");
icon-shadow: none; }
.menu .menuitem.check:active, .menu .menuitem.check:checked {
color: #2e3436;
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic"); }
.menu .menuitem.check:active:hover, .menu .menuitem.check:checked:hover {
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
color: #ffffff; }
.menu .menuitem.check:active:insensitive, .menu .menuitem.check:checked:insensitive {
color: #8d9091;
background-image: none; }
.menu .menuitem.check:active:insensitive:backdrop, .menu .menuitem.check:checked:insensitive:backdrop {
color: #c7c7c7; }
.menu .menuitem.check:active:backdrop, .menu .menuitem.check:checked:backdrop {
-gtk-icon-source: -gtk-icontheme("checkbox-checked-symbolic");
color: #54595a; }
.menu .menuitem.check:insensitive {
color: rgba(141, 144, 145, 0.1); }
.menu .menuitem.check:insensitive:backdrop {
color: transparent; }
.menu .menuitem.check:inconsistent {
-gtk-icon-source: -gtk-icontheme("checkbox-mixed-symbolic"); }
.menu .menuitem.check:backdrop, .menu .menuitem.check:backdrop:hover {
color: rgba(84, 89, 90, 0.1); }
.radio {
-gtk-icon-source: -gtk-scaled(url("assets/radio-unchecked.png"), url("assets/radio-unchecked@2.png"));
@ -2117,34 +2095,12 @@ GtkSwitch {
icon-shadow: none; }
.menu .menuitem.radio {
icon-shadow: none;
color: rgba(46, 52, 54, 0.1);
background-image: none;
-gtk-icon-source: -gtk-icontheme("radio-symbolic"); }
.menu .menuitem.radio:hover {
color: rgba(255, 255, 255, 0.1); }
-gtk-icon-source: -gtk-icontheme("radio-symbolic");
icon-shadow: none; }
.menu .menuitem.radio:active, .menu .menuitem.radio:checked {
color: #2e3436;
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic"); }
.menu .menuitem.radio:active:hover, .menu .menuitem.radio:checked:hover {
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
color: #ffffff; }
.menu .menuitem.radio:active:insensitive, .menu .menuitem.radio:checked:insensitive {
color: #8d9091;
background-image: none; }
.menu .menuitem.radio:active:insensitive:backdrop, .menu .menuitem.radio:checked:insensitive:backdrop {
color: #c7c7c7; }
.menu .menuitem.radio:active:backdrop, .menu .menuitem.radio:checked:backdrop {
-gtk-icon-source: -gtk-icontheme("radio-checked-symbolic");
color: #54595a; }
.menu .menuitem.radio:insensitive {
color: rgba(141, 144, 145, 0.1); }
.menu .menuitem.radio:insensitive:backdrop {
color: transparent; }
.menu .menuitem.radio:inconsistent {
-gtk-icon-source: -gtk-icontheme("radio-mixed-symbolic"); }
.menu .menuitem.radio:backdrop, .menu .menuitem.radio:backdrop:hover {
color: rgba(84, 89, 90, 0.1); }
GtkTreeView.view.check, GtkTreeView.view.radio {
icon-shadow: none; }