From 37a78684bb6e66a249ccfb106e1663aedd71af37 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Mon, 5 Feb 2024 13:24:35 -0330 Subject: [PATCH] style: Fix some high contrast papercuts - add HC style to slider - add HC style to Quick settings submenu header - fix border issue with flat card style Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7320 Part-of: --- data/theme/gnome-shell-sass/_common.scss | 1 + data/theme/gnome-shell-sass/widgets/_calendar.scss | 1 - data/theme/gnome-shell-sass/widgets/_quick-settings.scss | 8 ++++++++ data/theme/gnome-shell-sass/widgets/_slider.scss | 5 +++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss index 32c90ded2..adb8b70ef 100644 --- a/data/theme/gnome-shell-sass/_common.scss +++ b/data/theme/gnome-shell-sass/_common.scss @@ -159,6 +159,7 @@ stage { %card_flat { @extend %card_common; + border: 1px solid transparent !important; // override of the button style needed here @include button(undecorated, $style: flat); &:hover { @include button(hover, $style: flat);} &:active { @include button(active, $style: flat);} diff --git a/data/theme/gnome-shell-sass/widgets/_calendar.scss b/data/theme/gnome-shell-sass/widgets/_calendar.scss index c6faec670..028318e25 100644 --- a/data/theme/gnome-shell-sass/widgets/_calendar.scss +++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss @@ -1,7 +1,6 @@ /* Date/Time Menu */ // overall menu - #calendarArea { padding: $base_margin; } diff --git a/data/theme/gnome-shell-sass/widgets/_quick-settings.scss b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss index 3fa0cdabe..df752aa47 100644 --- a/data/theme/gnome-shell-sass/widgets/_quick-settings.scss +++ b/data/theme/gnome-shell-sass/widgets/_quick-settings.scss @@ -122,6 +122,14 @@ background-color: $selected_bg_color; color: $selected_fg_color; } + + // draw hc outline + @if $contrast == 'high' { + @include draw_hc_inset(); + &.active { + @include draw_hc_inset($no_inset: true); + } + } } & .title { diff --git a/data/theme/gnome-shell-sass/widgets/_slider.scss b/data/theme/gnome-shell-sass/widgets/_slider.scss index 0c444f755..f7085825f 100644 --- a/data/theme/gnome-shell-sass/widgets/_slider.scss +++ b/data/theme/gnome-shell-sass/widgets/_slider.scss @@ -19,4 +19,9 @@ $slider_size: $scalable_icon_size; -slider-handle-radius: $slider_size * 0.5; // half the size of the size -slider-handle-border-width: 0; -slider-handle-border-color: transparent; // because 0 width + + // hc style + @if $contrast == 'high' { + -barlevel-background-color: transparentize($fg_color, 0.6); + } }