GTK3: recover menu volumized check and radio widgets

This commit is contained in:
Daniel Ruiz de Alegría
2020-03-06 13:17:32 +01:00
parent c9aff30718
commit 7ea97e34c7
4 changed files with 170 additions and 107 deletions
@@ -76,19 +76,14 @@ radio {
$_c: if($variant=='light', white, darken($bg_color, 2%));
$_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
background-image: linear-gradient(to bottom, $_c 20%, darken($_c, 2%) 90%);
box-shadow: $_shadow;
@at-root %check_radio_disabled,
&:disabled {
&, &:backdrop {
border-color: $borders_color;
background-image: image($bg_color);
}
&, menu menuitem &, menu menuitem:hover & {
background-image: linear-gradient(to bottom, $_c 20%, darken($_c, 2%) 90%);
border-color: $alt_borders_color;
box-shadow: $_shadow;
}
@each $t in (':checked'), (':indeterminate') {
&#{$t} {
&, menu menuitem & {
&:checked, &:indeterminate {
background-image: linear-gradient(to bottom, $selected_bg_color 20%, darken($selected_bg_color, 2%) 90%);
border-color: $selected_borders_color;
box-shadow: inset 0 1px transparentize(white, .9), $_shadow;
@@ -98,6 +93,14 @@ radio {
&:disabled { @extend %check_radio_disabled; }
}
}
@at-root %check_radio_disabled,
&:disabled {
&, &:backdrop {
border-color: $borders_color;
background-image: image($bg_color);
}
}
}
/************