Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Boles
3fbf5c2f6c theme: Use $button_transition on check+radio nodes
This makes the change in the previous commit transition nicely, as with
'normal' buttons.
2023-10-02 16:41:50 +01:00
Daniel Boles
c4f7da6bf4 theme: Restore flat bg-img on backdrop check/radio
In GTK3, check and radio nodes in the :backdrop state had their backdrop
image removed/flattened, like 'normal' buttons. In GTK4 as of now, this
does not happen. It is because _common.scss simply does not call check()
with the :backdrop state, to generate CSS to flatten the bg-image when
backdropped. This makes that happen, so indicators in backdrop go flat.
2023-10-02 16:41:50 +01:00

View File

@@ -2562,6 +2562,7 @@ radio {
min-width: 14px;
border: 1px solid;
-gtk-icon-source: none;
transition: $button_transition;
& {
// for unchecked
@@ -2570,6 +2571,7 @@ radio {
@each $state, $t in ("", "normal"),
(":hover", "hover"),
(":active", "active"),
(":backdrop", "backdrop"),
(":disabled", "insensitive") {
&#{$state} {
@include check($t, $_c);
@@ -2584,6 +2586,7 @@ radio {
@each $state, $t in ("", "normal"),
(":hover", "hover"),
(":active", "active"),
(":backdrop", "backdrop"),
(":disabled", "insensitive") {
&#{$state} {
@include check($t, $checkradio_bg_color, $checkradio_fg_color, $checked: true);