From 7b93fef9a43fdcfa56fc72b50d979de1c530e848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Wed, 30 Dec 2020 13:50:35 +0100 Subject: [PATCH] GTK3: remove titlebutton transitions on backdrop state --- share/themes/Kali-Dark/gtk-3.0/gtk.css | 4 ++-- share/themes/Kali-Light/gtk-3.0/gtk-dark.css | 4 ++-- share/themes/Kali-Light/gtk-3.0/gtk.css | 4 ++-- src/themes/Kali/sass/gtk-sass/_common-tweaks.scss | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/share/themes/Kali-Dark/gtk-3.0/gtk.css b/share/themes/Kali-Dark/gtk-3.0/gtk.css index d8bf8aef..37bd3f35 100644 --- a/share/themes/Kali-Dark/gtk-3.0/gtk.css +++ b/share/themes/Kali-Dark/gtk-3.0/gtk.css @@ -5653,10 +5653,10 @@ button.titlebutton:not(.appmenu) { margin-left: 0; } button.titlebutton:not(.appmenu):last-child { margin-right: 6px; } - button.titlebutton:not(.appmenu):hover { + button.titlebutton:not(.appmenu):hover:not(:backdrop) { transition: 0; background: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px #0d0e11; } + box-shadow: inset 0 0 0 1px #0d0e11; } .maximized button.titlebutton:not(.appmenu):last-child, .fullscreen button.titlebutton:not(.appmenu):last-child, .tiled button.titlebutton:not(.appmenu):last-child, .tiled-top button.titlebutton:not(.appmenu):last-child, .tiled-right button.titlebutton:not(.appmenu):last-child, .tiled-bottom button.titlebutton:not(.appmenu):last-child, .tiled-left button.titlebutton:not(.appmenu):last-child { margin-right: 0; } .maximized button.titlebutton:not(.appmenu):first-child, .fullscreen button.titlebutton:not(.appmenu):first-child, .tiled button.titlebutton:not(.appmenu):first-child, .tiled-top button.titlebutton:not(.appmenu):first-child, .tiled-right button.titlebutton:not(.appmenu):first-child, .tiled-bottom button.titlebutton:not(.appmenu):first-child, .tiled-left button.titlebutton:not(.appmenu):first-child { 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 d8bf8aef..37bd3f35 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk-dark.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk-dark.css @@ -5653,10 +5653,10 @@ button.titlebutton:not(.appmenu) { margin-left: 0; } button.titlebutton:not(.appmenu):last-child { margin-right: 6px; } - button.titlebutton:not(.appmenu):hover { + button.titlebutton:not(.appmenu):hover:not(:backdrop) { transition: 0; background: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px #0d0e11; } + box-shadow: inset 0 0 0 1px #0d0e11; } .maximized button.titlebutton:not(.appmenu):last-child, .fullscreen button.titlebutton:not(.appmenu):last-child, .tiled button.titlebutton:not(.appmenu):last-child, .tiled-top button.titlebutton:not(.appmenu):last-child, .tiled-right button.titlebutton:not(.appmenu):last-child, .tiled-bottom button.titlebutton:not(.appmenu):last-child, .tiled-left button.titlebutton:not(.appmenu):last-child { margin-right: 0; } .maximized button.titlebutton:not(.appmenu):first-child, .fullscreen button.titlebutton:not(.appmenu):first-child, .tiled button.titlebutton:not(.appmenu):first-child, .tiled-top button.titlebutton:not(.appmenu):first-child, .tiled-right button.titlebutton:not(.appmenu):first-child, .tiled-bottom button.titlebutton:not(.appmenu):first-child, .tiled-left button.titlebutton:not(.appmenu):first-child { diff --git a/share/themes/Kali-Light/gtk-3.0/gtk.css b/share/themes/Kali-Light/gtk-3.0/gtk.css index 4b20ace6..4613ecdf 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk.css @@ -5674,10 +5674,10 @@ button.titlebutton:not(.appmenu) { margin-left: 0; } button.titlebutton:not(.appmenu):last-child { margin-right: 6px; } - button.titlebutton:not(.appmenu):hover { + button.titlebutton:not(.appmenu):hover:not(:backdrop) { transition: 0; background: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #d9d9d9; } + box-shadow: inset 0 0 0 1px #d9d9d9; } .maximized button.titlebutton:not(.appmenu):last-child, .fullscreen button.titlebutton:not(.appmenu):last-child, .tiled button.titlebutton:not(.appmenu):last-child, .tiled-top button.titlebutton:not(.appmenu):last-child, .tiled-right button.titlebutton:not(.appmenu):last-child, .tiled-bottom button.titlebutton:not(.appmenu):last-child, .tiled-left button.titlebutton:not(.appmenu):last-child { margin-right: 0; } .maximized button.titlebutton:not(.appmenu):first-child, .fullscreen button.titlebutton:not(.appmenu):first-child, .tiled button.titlebutton:not(.appmenu):first-child, .tiled-top button.titlebutton:not(.appmenu):first-child, .tiled-right button.titlebutton:not(.appmenu):first-child, .tiled-bottom button.titlebutton:not(.appmenu):first-child, .tiled-left button.titlebutton:not(.appmenu):first-child { diff --git a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss index e50625d3..3a641749 100644 --- a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss +++ b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss @@ -477,10 +477,10 @@ button.titlebutton:not(.appmenu) { & + & { margin-left: 0; } &:last-child { margin-right: 6px; } - &:hover { + &:hover:not(:backdrop) { transition: 0; background: transparentize(white, .8); - box-shadow: 0 1px 1px $shadow_color, inset 0 0 0 1px $borders_color; + box-shadow: inset 0 0 0 1px $borders_color; } @at-root