[gtk+] Adwaita: don't set a border for drop targets



commit 1bfbd23a0c692cf8b19dd86448eaa9ba8e6cb8af
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Sun Feb 14 14:44:57 2016 +0100

    Adwaita: don't set a border for drop targets
    
    to avoid active drop targets to grow.

 gtk/theme/Adwaita/_common.scss           |    5 ++++-
 gtk/theme/Adwaita/gtk-contained-dark.css |    3 ++-
 gtk/theme/Adwaita/gtk-contained.css      |    3 ++-
 3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 495dc3c..723a057 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3757,7 +3757,10 @@ button.circular { // FIXME: aggregate to buttons
 }
 
 *:drop(active):focus,
-*:drop(active) { border: 1px solid black; } // FIXME this makes boxes grow and looks pretty bad, needs to be 
handled differently
+*:drop(active) { // FIXME figure out a proper color
+  border-color: black;
+  box-shadow: inset 0 0 0 1px black;
+}
 
 stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
 
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index bf7ad2c..9298726 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -4459,7 +4459,8 @@ button.circular {
 
 *:drop(active):focus,
 *:drop(active) {
-  border: 1px solid black; }
+  border-color: black;
+  box-shadow: inset 0 0 0 1px black; }
 
 stackswitcher button.text-button {
   min-width: 100px; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 770534e..f79b0d8 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4601,7 +4601,8 @@ button.circular {
 
 *:drop(active):focus,
 *:drop(active) {
-  border: 1px solid black; }
+  border-color: black;
+  box-shadow: inset 0 0 0 1px black; }
 
 stackswitcher button.text-button {
   min-width: 100px; }


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