GTK3: Fix disabled check and radio widgets are not visible using the light theme

This commit is contained in:
Daniel Ruiz de Alegría
2020-09-03 20:11:49 +02:00
parent 0eb9f99905
commit 499ab09ccb
4 changed files with 41 additions and 36 deletions
@@ -100,9 +100,17 @@ radio {
$_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
&, 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;
background-image: linear-gradient(to bottom, $_c 20%, darken($_c, 2%) 90%);
border-color: $alt_borders_color;
box-shadow: $_shadow;
&:disabled, &:disabled:backdrop {
&, &:checked, &:indeterminate {
border-color: $borders_color;
background-image: image($bg_color);
color: $fg_color;
}
}
}
&, menu menuitem & {
@@ -114,15 +122,6 @@ radio {
&:active { box-shadow: none; }
&:backdrop { background-image: image($checkradio_bg_color); }
&:disabled { @extend %check_radio_disabled; }
}
}
@at-root %check_radio_disabled,
&:disabled {
&, &:backdrop {
border-color: $borders_color;
background-image: image($bg_color);
}
}
}