From e8e9231d897ef49fbb7d5667e397c9aec4b80568 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 15 Jul 2022 19:42:30 -0300 Subject: [PATCH] libmalcontent-ui: Cleanup CSS Use named colors, and reimplement the disabled slider with a CSS grayscale filter. --- libmalcontent-ui/restricts-switch.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmalcontent-ui/restricts-switch.css b/libmalcontent-ui/restricts-switch.css index 3bf85ae..4f3c74c 100644 --- a/libmalcontent-ui/restricts-switch.css +++ b/libmalcontent-ui/restricts-switch.css @@ -1,11 +1,11 @@ /* FIXME: This ‘negative’ variant of a GtkSwitch should probably be * upstreamed to GTK. See https://gitlab.gnome.org/GNOME/gtk/issues/2470 */ switch:checked.restricts { - background-color: #fffd33; + background-color: @yellow_5; } switch:checked.restricts, switch:checked.restricts slider { - border-color: #ffd52b; + border-color: @yellow_3; } switch:disabled.restricts { @@ -14,5 +14,5 @@ switch:disabled.restricts { } switch:disabled.restricts slider { - border-color: #bfb8b1; + filter: grayscale(100%); }