From 9e40e14c34a9648d4eb33154ddb9a4c577a95da5 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Fri, 22 Jul 2022 16:11:45 -0230 Subject: [PATCH] style: Make menuitems less bright when in checked state Fixes #5665 Part-of: --- data/theme/gnome-shell-sass/_colors.scss | 8 ++++---- data/theme/gnome-shell-sass/_high-contrast-colors.scss | 8 ++++---- data/theme/gnome-shell-sass/widgets/_popovers.scss | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/data/theme/gnome-shell-sass/_colors.scss b/data/theme/gnome-shell-sass/_colors.scss index 0ca123b2a..c22bfea82 100644 --- a/data/theme/gnome-shell-sass/_colors.scss +++ b/data/theme/gnome-shell-sass/_colors.scss @@ -56,6 +56,10 @@ $backdrop_borders_color: mix($borders_color, $bg_color, 90%); $backdrop_dark_fill: mix($backdrop_borders_color,$backdrop_bg_color, 35%); +// derived checked colors +$checked_bg_color: if($variant=='light', darken($bg_color, 7%), lighten($bg_color, 7%)); +$checked_fg_color: if($variant=='light', darken($fg_color, 7%), lighten($fg_color, 7%)); + // derived hover colors $hover_bg_color: if($variant=='light', darken($bg_color, 3%), lighten($bg_color, 10%)); $hover_fg_color: if($variant=='light', darken($fg_color, 5%), lighten($fg_color, 10%)); @@ -63,7 +67,3 @@ $hover_fg_color: if($variant=='light', darken($fg_color, 5%), lighten($fg_color, // derived active colors $active_bg_color: if($variant=='light', darken($bg_color, 5%), lighten($bg_color, 12%)); $active_fg_color: if($variant=='light', darken($fg_color, 5%), lighten($fg_color, 12%)); - -// derived checked colors -$checked_bg_color: if($variant=='light', darken($bg_color, 7%), lighten($bg_color, 15%)); -$checked_fg_color: if($variant=='light', darken($fg_color, 7%), lighten($fg_color, 15%)); \ No newline at end of file diff --git a/data/theme/gnome-shell-sass/_high-contrast-colors.scss b/data/theme/gnome-shell-sass/_high-contrast-colors.scss index d418e47ac..35e2d851a 100644 --- a/data/theme/gnome-shell-sass/_high-contrast-colors.scss +++ b/data/theme/gnome-shell-sass/_high-contrast-colors.scss @@ -52,6 +52,10 @@ $backdrop_insensitive_color: lighten($backdrop_bg_color,15%); $backdrop_borders_color: mix($borders_color, $bg_color, 90%); $backdrop_dark_fill: mix($backdrop_borders_color,$backdrop_bg_color, 35%); +// derived checked colors +$checked_bg_color: if($variant=='light', darken($bg_color, 12%), lighten($bg_color, 18%)); +$checked_fg_color: if($variant=='light', darken($fg_color, 12%), lighten($fg_color, 18%)); + // derived hover colors $hover_bg_color: if($variant=='light', darken($bg_color, 8%), lighten($bg_color, 20%)); $hover_fg_color: if($variant=='light', darken($fg_color, 10%), lighten($fg_color, 20%)); @@ -59,7 +63,3 @@ $hover_fg_color: if($variant=='light', darken($fg_color, 10%), lighten($fg_color // derived active colors $active_bg_color: if($variant=='light', darken($bg_color, 10%), lighten($bg_color, 22%)); $active_fg_color: if($variant=='light', darken($fg_color, 10%), lighten($fg_color, 22%)); - -// derived checked colors -$checked_bg_color: if($variant=='light', darken($bg_color, 12%), lighten($bg_color, 25%)); -$checked_fg_color: if($variant=='light', darken($fg_color, 12%), lighten($fg_color, 25%)); \ No newline at end of file diff --git a/data/theme/gnome-shell-sass/widgets/_popovers.scss b/data/theme/gnome-shell-sass/widgets/_popovers.scss index 4e6813a0d..4a86dd3fc 100644 --- a/data/theme/gnome-shell-sass/widgets/_popovers.scss +++ b/data/theme/gnome-shell-sass/widgets/_popovers.scss @@ -100,12 +100,12 @@ border-radius: 0 0 $base_border_radius $base_border_radius; } - &:focus,&:hover { background-color: lighten($hover_bg_color, 10%) !important;} + &:focus,&:hover { background-color: $hover_bg_color !important;} &:checked { - background-color: lighten($checked_bg_color, 10%) !important; + background-color: $checked_bg_color !important; &:focus,&:hover { background-color: lighten($checked_bg_color, 8%) !important;} } - &:active { background-color: lighten($active_bg_color, 10%) !important;} + &:active { background-color: $active_bg_color !important;} } .popup-menu-section {