[gtk+] Adwaita: dodge drop active style for window and decoration nodes



commit 9054e497763585742aa7a1b4ae20ad5239291714
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Oct 12 19:30:30 2016 +0200

    Adwaita: dodge drop active style for window and decoration nodes
    
    to hilight drop target there is a wildcard selector which turns
    the border and shadow to green, this clearly shouldn't happen when
    the whole window is a drop target.

 gtk/theme/Adwaita/_common.scss           |    4 ++--
 gtk/theme/Adwaita/gtk-contained-dark.css |    4 ++--
 gtk/theme/Adwaita/gtk-contained.css      |    4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1e56e5a..010b23d 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4273,8 +4273,8 @@ button.circular { // FIXME: aggregate to buttons
   }
 }
 
-*:drop(active):focus,
-*:drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should 
really die
   border-color: $drop_target_color;
   box-shadow: inset 0 0 0 1px $drop_target_color;
   caret-color: $drop_target_color;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index fd14f42..1ff6188 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -4533,8 +4533,8 @@ button.circular {
     color: #919494;
     transition: 200ms ease-out; }
 
-*:drop(active):focus,
-*:drop(active) {
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) {
   border-color: #4e9a06;
   box-shadow: inset 0 0 0 1px #4e9a06;
   caret-color: #4e9a06; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index f1e0022..38f6698 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4564,8 +4564,8 @@ button.circular {
     color: #8b8e8f;
     transition: 200ms ease-out; }
 
-*:drop(active):focus,
-*:drop(active) {
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) {
   border-color: #4e9a06;
   box-shadow: inset 0 0 0 1px #4e9a06;
   caret-color: #4e9a06; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]