From c4f7da6bf49578cdca1cc8a4787c8ef8e69ce497 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sun, 9 Jul 2023 10:09:18 +0100 Subject: [PATCH] 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. --- gtk/theme/Default/_common.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/theme/Default/_common.scss b/gtk/theme/Default/_common.scss index 3c2edfcc98..88d1feaa37 100644 --- a/gtk/theme/Default/_common.scss +++ b/gtk/theme/Default/_common.scss @@ -2570,6 +2570,7 @@ radio { @each $state, $t in ("", "normal"), (":hover", "hover"), (":active", "active"), + (":backdrop", "backdrop"), (":disabled", "insensitive") { &#{$state} { @include check($t, $_c); @@ -2584,6 +2585,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);