From 95df15385fe4e955630807cff73e6c69e8d78398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Fri, 22 Jan 2021 21:51:37 +0100 Subject: [PATCH] GTK3: Remove shadow from stackswitcher buttons on backdrop mode --- share/themes/Kali-Dark/gtk-3.0/gtk.css | 8 ++++++++ share/themes/Kali-Light/gtk-3.0/gtk-dark.css | 8 ++++++++ share/themes/Kali-Light/gtk-3.0/gtk.css | 8 ++++++++ src/themes/Kali/sass/gtk-sass/_common-tweaks.scss | 2 ++ 4 files changed, 26 insertions(+) diff --git a/share/themes/Kali-Dark/gtk-3.0/gtk.css b/share/themes/Kali-Dark/gtk-3.0/gtk.css index 234b447a..8e0d09d5 100644 --- a/share/themes/Kali-Dark/gtk-3.0/gtk.css +++ b/share/themes/Kali-Dark/gtk-3.0/gtk.css @@ -5049,6 +5049,14 @@ headerbar button.toggle:active, headerbar button.toggle:checked, button.flat:hover, button:active, button:checked { background: #1b1d24; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.05); } + .titlebar stackswitcher button:backdrop:checked, + .titlebar button.toggle:backdrop:active, + .titlebar button.toggle:backdrop:checked, + headerbar stackswitcher button:backdrop:checked:active, + headerbar stackswitcher button:backdrop:checked, + headerbar button.toggle:backdrop:active, + headerbar button.toggle:backdrop:checked, button.flat:backdrop:hover, button:active:backdrop, button:checked:backdrop { + box-shadow: none; } button.flat { border-color: transparent; diff --git a/share/themes/Kali-Light/gtk-3.0/gtk-dark.css b/share/themes/Kali-Light/gtk-3.0/gtk-dark.css index 234b447a..8e0d09d5 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk-dark.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk-dark.css @@ -5049,6 +5049,14 @@ headerbar button.toggle:active, headerbar button.toggle:checked, button.flat:hover, button:active, button:checked { background: #1b1d24; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.05); } + .titlebar stackswitcher button:backdrop:checked, + .titlebar button.toggle:backdrop:active, + .titlebar button.toggle:backdrop:checked, + headerbar stackswitcher button:backdrop:checked:active, + headerbar stackswitcher button:backdrop:checked, + headerbar button.toggle:backdrop:active, + headerbar button.toggle:backdrop:checked, button.flat:backdrop:hover, button:active:backdrop, button:checked:backdrop { + box-shadow: none; } button.flat { border-color: transparent; diff --git a/share/themes/Kali-Light/gtk-3.0/gtk.css b/share/themes/Kali-Light/gtk-3.0/gtk.css index 0c86c489..4c638455 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk.css @@ -5071,6 +5071,14 @@ headerbar button.toggle:active, headerbar button.toggle:checked, button.flat:hover, button:active, button:checked { background: #f2f2f2; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.1), 0 1px rgba(255, 255, 255, 0.05); } + .titlebar stackswitcher button:backdrop:checked, + .titlebar button.toggle:backdrop:active, + .titlebar button.toggle:backdrop:checked, + headerbar stackswitcher button:backdrop:checked:active, + headerbar stackswitcher button:backdrop:checked, + headerbar button.toggle:backdrop:active, + headerbar button.toggle:backdrop:checked, button.flat:backdrop:hover, button:active:backdrop, button:checked:backdrop { + box-shadow: none; } button.flat { border-color: transparent; diff --git a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss index a92c883b..3f9e0358 100644 --- a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss +++ b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss @@ -25,6 +25,8 @@ button { &:checked, { background: $dark_fill; box-shadow: $_widget_inset_shadow; + + &:backdrop { box-shadow: none; } } &.flat {