From 1a2015773294fc498cbe5bb206ee138bd2626a3e Mon Sep 17 00:00:00 2001 From: Vladyslav Hroshev Date: Sat, 22 Jul 2023 22:07:02 +0300 Subject: [PATCH] Fixed screen flickering in panel, overview Caused in e3de2b2 by adding transparency effect --- colors.json | 15 +++++++++++++++ theme/gnome-shell_css/overview.css | 2 +- theme/gnome-shell_css/panel.css | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/colors.json b/colors.json index 315c985..f2a0d42 100644 --- a/colors.json +++ b/colors.json @@ -208,6 +208,21 @@ "a" : 0.95 } }, + "BACKGROUND-OPAQUE-COLOR" : { + "_comment" : "Background color panel and overview (fix flickering)", + + "light" : { + "s" : 64, + "l" : 97, + "a" : 1 + }, + + "dark" : { + "s" : 7, + "l" : 8, + "a" : 1 + } + }, "DASH-COLOR" : { "_comment" : "Special background color for dash", diff --git a/theme/gnome-shell_css/overview.css b/theme/gnome-shell_css/overview.css index b991b60..bb8806c 100644 --- a/theme/gnome-shell_css/overview.css +++ b/theme/gnome-shell_css/overview.css @@ -2,7 +2,7 @@ #overviewGroup, /* overview background */ .workspace-animation { /* spacing between worspaces (ctrl+alt+arr_left/right / 3 fingers gesture) */ - background-color: BACKGROUND-COLOR; + background-color: BACKGROUND-OPAQUE-COLOR; } /* workspaces */ diff --git a/theme/gnome-shell_css/panel.css b/theme/gnome-shell_css/panel.css index 51013d0..7a00814 100644 --- a/theme/gnome-shell_css/panel.css +++ b/theme/gnome-shell_css/panel.css @@ -1,7 +1,7 @@ /* Panel */ #panel { - background-color: BACKGROUND-COLOR; + background-color: BACKGROUND-OPAQUE-COLOR; height: 36px; font-size: 14px; box-shadow: none;