[libdazzle] themes: add some fallback styling for panels



commit 48c5146d339f21f3efb96acf5b1026ae7e9b4cc8
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 6 15:28:26 2017 -0700

    themes: add some fallback styling for panels
    
    This at least cleans things up a bit, even if it doesn't provide much style
    on top of that.

 data/themes/Adwaita/Adwaita-panels.css |   42 -----------------------------
 data/themes/shared.css                 |    1 +
 data/themes/shared/shared-panels.css   |   45 ++++++++++++++++++++++++++++++++
 src/dazzle.gresources.xml              |    1 +
 4 files changed, 47 insertions(+), 42 deletions(-)
---
diff --git a/data/themes/Adwaita/Adwaita-panels.css b/data/themes/Adwaita/Adwaita-panels.css
index a76e617..7d6ae4d 100644
--- a/data/themes/Adwaita/Adwaita-panels.css
+++ b/data/themes/Adwaita/Adwaita-panels.css
@@ -1,25 +1,3 @@
-dzldockbinedge {
-  background-color: @content_view_bg;
-  border-color: @borders;
-  border-style: solid;
-}
-
-dzldockbinedge.right {
-  border-left-width: 1px;
-}
-
-dzldockbinedge.left {
-  border-right-width: 1px;
-}
-
-dzldockbinedge.bottom {
-  border-top-width: 1px;
-}
-
-dzldockpaned .handle {
-  border: 1px solid @borders;
-}
-
 dzldockstack dzltabstrip {
   padding-top: 2px;
   background-color: @content_view_bg;
@@ -29,12 +7,6 @@ dzldockstack dzltabstrip {
 
 dzldockstack dzltabstrip button.control,
 dzldockstack dzltabstrip dzltab {
-  background: transparent;
-  box-shadow: none;
-  border: none;
-  padding: 0;
-  margin: 0;
-
   border-bottom: 3px;
   border-bottom-style: solid;
   border-bottom-color: transparent;
@@ -45,20 +17,6 @@ dzldockstack dzltabstrip dzltab {
   color: @theme_fg_color;
 }
 
-dzldockstack dzltabstrip button.control,
-dzldockstack dzltabstrip dzltab button,
-dzldockstack dzltabstrip dzltab {
-  transition-duration: 200ms;
-}
-
-dzldockstack dzltabstrip dzltab button {
-  padding: 0;
-  margin: 0;
-  border: none;
-  background: none;
-  box-shadow: none;
-}
-
 dzldockstack dzltabstrip dzltab:active {
   border-bottom-color: @theme_selected_bg_color;
 }
diff --git a/data/themes/shared.css b/data/themes/shared.css
index 5c7ca44..5e0296e 100644
--- a/data/themes/shared.css
+++ b/data/themes/shared.css
@@ -1,4 +1,5 @@
 /* Theme agnostic or base-layer CSS styling */
+@import url("resource:///org/gnome/dazzle/themes/shared/shared-panels.css");
 @import url("resource:///org/gnome/dazzle/themes/shared/shared-pillbox.css");
 @import url("resource:///org/gnome/dazzle/themes/shared/shared-preferences.css");
 @import url("resource:///org/gnome/dazzle/themes/shared/shared-progressbutton.css");
diff --git a/data/themes/shared/shared-panels.css b/data/themes/shared/shared-panels.css
new file mode 100644
index 0000000..0e7c444
--- /dev/null
+++ b/data/themes/shared/shared-panels.css
@@ -0,0 +1,45 @@
+
+dzldockstack dzltabstrip button.control,
+dzldockstack dzltabstrip dzltab button,
+dzldockstack dzltabstrip dzltab {
+  transition-duration: 200ms;
+}
+
+dzldockstack dzltabstrip dzltab button {
+  padding: 0;
+  margin: 0;
+  border: none;
+  background: none;
+  box-shadow: none;
+}
+
+dzldockstack dzltabstrip button.control,
+dzldockstack dzltabstrip dzltab {
+  background: transparent;
+  box-shadow: none;
+  border: none;
+  padding: 0;
+  margin: 0;
+}
+
+dzldockpaned .handle {
+  border: 1px solid @borders;
+}
+
+dzldockbinedge {
+  background-color: @content_view_bg;
+  border-color: @borders;
+  border-style: solid;
+}
+
+dzldockbinedge.right {
+  border-left-width: 1px;
+}
+
+dzldockbinedge.left {
+  border-right-width: 1px;
+}
+
+dzldockbinedge.bottom {
+  border-top-width: 1px;
+}
diff --git a/src/dazzle.gresources.xml b/src/dazzle.gresources.xml
index 47de3d9..d75a3bd 100644
--- a/src/dazzle.gresources.xml
+++ b/src/dazzle.gresources.xml
@@ -36,6 +36,7 @@
 
     <!-- Default and Fallback Theme -->
     <file compressed="true" alias="shared.css">../data/themes/shared.css</file>
+    <file compressed="true" alias="shared/shared-panels.css">../data/themes/shared/shared-panels.css</file>
     <file compressed="true" alias="shared/shared-pillbox.css">../data/themes/shared/shared-pillbox.css</file>
     <file compressed="true" 
alias="shared/shared-preferences.css">../data/themes/shared/shared-preferences.css</file>
     <file compressed="true" 
alias="shared/shared-progressbutton.css">../data/themes/shared/shared-progressbutton.css</file>


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