[gnome-shell/wip/jimmac/screenshot-osd] theme: Hardcode osd bg color
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/jimmac/screenshot-osd] theme: Hardcode osd bg color
- Date: Tue, 31 May 2022 12:06:35 +0000 (UTC)
commit 1349cb5bb2727d02ccf101657cd495cbae4f5e76
Author: Jakub Steiner <jimmac gmail com>
Date: Tue May 31 08:45:26 2022 +0200
theme: Hardcode osd bg color
- osd needs to work for both light & dark contexts
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5537
data/theme/gnome-shell-sass/_colors.scss | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_colors.scss b/data/theme/gnome-shell-sass/_colors.scss
index 73db6fe03f..b0481180ff 100644
--- a/data/theme/gnome-shell-sass/_colors.scss
+++ b/data/theme/gnome-shell-sass/_colors.scss
@@ -48,8 +48,9 @@ $dark_3: #3d3846;
$dark_4: #241f31;
$dark_5: #000000;
+$_dark_bg_color: darken(desaturate(#241f31, 100%), 2%);
-$base_color: if($variant == 'light', #fff, darken(desaturate(#241f31, 100%), 2%));
+$base_color: if($variant == 'light', #fff, $_dark_bg_color);
$bg_color: if($variant == 'light', #f6f5f4, lighten($base_color, 5%));
$fg_color: if($variant == 'light', transparentize(black, .2), white);
@@ -69,7 +70,7 @@ $success_color: if($variant == 'light', $green_4, $green_5);
$destructive_color: $error_color;
$osd_fg_color: white;
-$osd_bg_color: transparentize(desaturate($bg_color, 100%),0.04);
+$osd_bg_color: $_dark_bg_color; //hardcoded for both light & dark
$osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
$osd_insensitive_fg_color: if($variant == 'light', mix($osd_fg_color, $osd_bg_color, 80%),
mix($osd_fg_color, $osd_bg_color, 70%));
$osd_borders_color: transparentize(black, 0.3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]