diff options
author | Sam Hewitt <sam@snwh.org> | 2022-04-26 15:49:41 -0230 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2022-07-10 14:22:41 +0200 |
commit | 718b8928fb4071cd3c168a4cd1c2d0cea63d657c (patch) | |
tree | 3eba3f55270be575a609c999fe59a46914a1b35c /_colors.scss | |
parent | 28e1a2897616ecd25d1654861d0fc09de53ea24b (diff) | |
download | gnome-shell-sass-718b8928fb4071cd3c168a4cd1c2d0cea63d657c.tar.gz |
style: High-contrast fixes and color adjustments
- pull in the palette changes to the HC css
- adjust the color definitions for HC
- address some of the problems with hover states in HC
- reworked drawing functions for HC
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2284>
Diffstat (limited to '_colors.scss')
-rw-r--r-- | _colors.scss | 66 |
1 files changed, 20 insertions, 46 deletions
diff --git a/_colors.scss b/_colors.scss index 7e7aaab..0ca123b 100644 --- a/_colors.scss +++ b/_colors.scss @@ -1,52 +1,7 @@ // When color definition differs for dark and light variant, // it gets @if-ed depending on $variant -//GNOME Color Palette -$blue_1: #99c1f1; -$blue_2: #62a0ea; -$blue_3: #3584e4; -$blue_4: #1c71d8; -$blue_5: #1a5fb4; -$green_1: #8ff0a4; -$green_2: #57e389; -$green_3: #33d17a; -$green_4: #2ec27e; -$green_5: #26a269; -$yellow_1: #f9f06b; -$yellow_2: #f8e45c; -$yellow_3: #f6d32d; -$yellow_4: #f5c211; -$yellow_5: #e5a50a; -$orange_1: #ffbe6f; -$orange_2: #ffa348; -$orange_3: #ff7800; -$orange_4: #e66100; -$orange_5: #c64600; -$red_1: #f66151; -$red_2: #ed333b; -$red_3: #e01b24; -$red_4: #c01c28; -$red_5: #a51d2d; -$purple_1: #dc8add; -$purple_2: #c061cb; -$purple_3: #9141ac; -$purple_4: #813d9c; -$purple_5: #613583; -$brown_1: #cdab8f; -$brown_2: #b5835a; -$brown_3: #986a44; -$brown_4: #865e3c; -$brown_5: #63452c; -$light_1: #ffffff; -$light_2: #f6f5f4; -$light_3: #deddda; -$light_4: #c0bfbc; -$light_5: #9a9996; -$dark_1: #77767b; -$dark_2: #5e5c64; -$dark_3: #3d3846; -$dark_4: #241f31; -$dark_5: #000000; +@import '_palette.scss'; $_dark_base_color: darken(desaturate(#241f31, 100%), 2%); @@ -78,6 +33,12 @@ $osd_outer_borders_color: transparentize($osd_fg_color, 0.98); $shadow_color: if($variant == 'light', rgba(0,0,0,0.1), rgba(0,0,0,0.2)); +// cards +$card_bg_color: if($variant == 'light', darken($bg_color, 5%), lighten($bg_color, 2%)); + +// notifications +$bubble_buttons_color: if($variant == 'light', darken($bg_color, 12%), lighten($bg_color, 10%)); + // overview background color $system_bg_color: $base_color; @@ -93,3 +54,16 @@ $backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 80%); $backdrop_insensitive_color: if($variant =='light', darken($backdrop_bg_color,15%), 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 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%)); + +// 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 |