[gtk+] Adwaita: Special-case server-side window decorations



commit 3a0ced32bf22eda6a6377c36654a5a2e1bb04f18
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Dec 18 14:18:50 2014 +0100

    Adwaita: Special-case server-side window decorations
    
    The WM already adds the window shadow in that case, so just use the
    box-shadow to add the border here.

 gtk/theme/Adwaita/_common.scss           |    4 ++++
 gtk/theme/Adwaita/gtk-contained-dark.css |    2 ++
 gtk/theme/Adwaita/gtk-contained.css      |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 2587c87..886583e 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3176,6 +3176,10 @@ GtkVolumeButton.button { padding: 8px; }
   &.popup {
     box-shadow: none;
   }
+  // server-side decorations as used by mutter
+  &.ssd {
+    box-shadow: 0 0 0 1px $_wm_border; //just doing borders, wm draws actual shadows
+  }
   &.csd {
     .popup {
       border-radius: 0;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index dbed756..1327d3a 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -4304,6 +4304,8 @@ GtkVolumeButton.button, .header-bar GtkVolumeButton.button.titlebutton,
     border-radius: 0; }
   .window-frame.popup {
     box-shadow: none; }
+  .window-frame.ssd {
+    box-shadow: 0 0 0 1px rgba(28, 31, 31, 0.9); }
   .window-frame.csd .popup {
     border-radius: 0;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index f6e9e78..acd462d 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4474,6 +4474,8 @@ GtkVolumeButton.button, .header-bar GtkVolumeButton.button.titlebutton,
     border-radius: 0; }
   .window-frame.popup {
     box-shadow: none; }
+  .window-frame.ssd {
+    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.23); }
   .window-frame.csd .popup {
     border-radius: 0;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }


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