[gnome-themes-standard] CSD: bring back borders.



commit 0c3f7c24cfa4b0bf6a653369752663433a7c9ec8
Author: Jakub Steiner <jimmac gmail com>
Date:   Thu Jan 16 15:12:21 2014 +0100

    CSD: bring back borders.
    
    - cool hack by lamefun - use box-shadow to create a border
      that respects the rounded corners of CSDs

 themes/Adwaita/gtk-3.0/gtk-main.css    |    1 +
 themes/Adwaita/gtk-3.0/gtk-widgets.css |   10 ++++------
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-main.css b/themes/Adwaita/gtk-3.0/gtk-main.css
index 8d0c26f..2a113fa 100644
--- a/themes/Adwaita/gtk-3.0/gtk-main.css
+++ b/themes/Adwaita/gtk-3.0/gtk-main.css
@@ -191,6 +191,7 @@
 @define-color wm_bg_b @theme_bg_color;
 
 @define-color wm_shadow alpha(black, 0.5);
+ define-color wm_border shade(@theme_bg_color,0.8);
 
 @define-color wm_button_bg_a shade (@theme_bg_color, 1.0);
 @define-color wm_button_bg_b shade (@theme_bg_color, 0.85);
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 7ea6d2c..a89cf2e 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -4171,12 +4171,10 @@ GtkBubbleWindow .toolbar {
 }
 
 .window-frame {
-    border-color: darker(@theme_bg_color);
     border-radius: 7px 7px 0 0;
-    border-width: 1px;
-    border-style: solid;
-
-    box-shadow: 0 2px 8px 3px @wm_shadow;
+    /* lamefun trick to get rounded borders regardless of CSD use */
+    border-width: 0px;    
+    box-shadow: 0 0 0 1px @wm_border, 0 2px 8px 3px @wm_shadow;
 
     /* this is used for the resize cursor area */
     margin: 10px;
@@ -4188,7 +4186,7 @@ GtkBubbleWindow .toolbar {
 }
 
 .window-frame:backdrop {
-    box-shadow: 0 2px 5px 1px @wm_shadow;
+    box-shadow: 0 0 0 1px shade(@wm_border,1.1), 0 2px 5px 1px @wm_shadow;
 }
 
 


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