[libdazzle] theme: add basic Arc styling for panel engine



commit be3dd87f6a2915df4fddb634876f9d83fbcb48c0
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 6 15:50:21 2017 -0700

    theme: add basic Arc styling for panel engine
    
    Not exactly perfect, but a whole lot better than what we had.

 data/themes/Arc.css            |    5 +++++
 data/themes/Arc/Arc-panels.css |   31 +++++++++++++++++++++++++++++++
 src/dazzle.gresources.xml      |   11 +++++++++--
 3 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/data/themes/Arc.css b/data/themes/Arc.css
new file mode 100644
index 0000000..f2be5ca
--- /dev/null
+++ b/data/themes/Arc.css
@@ -0,0 +1,5 @@
+/* Theme agnostic or base-layer CSS styling */
+@import url("resource:///org/gnome/dazzle/themes/shared.css");
+
+/* Theme specific styling */
+@import url("resource:///org/gnome/dazzle/themes/Arc/Arc-panels.css");
diff --git a/data/themes/Arc/Arc-panels.css b/data/themes/Arc/Arc-panels.css
new file mode 100644
index 0000000..68eb297
--- /dev/null
+++ b/data/themes/Arc/Arc-panels.css
@@ -0,0 +1,31 @@
+dzldockstack dzltabstrip {
+  background-color: @theme_bg_color;
+}
+
+dzldockstack dzltabstrip button.control:hover:checked,
+dzldockstack dzltabstrip button.control:checked,
+dzldockstack dzltabstrip dzltab:hover:checked,
+dzldockstack dzltabstrip dzltab:checked {
+  color: @theme_fg_color;
+  background-color: @theme_base_color;
+  border-color: @borders;
+}
+
+dzldockstack dzltabstrip dzltab {
+  margin-top: 3px;
+}
+
+dzldockstack dzltabstrip dzltab:backdrop:checked,
+dzldockstack dzltabstrip dzltab:backdrop {
+  background-color: alpha(@theme_base_color, 0.25);
+  border-color: transparent;
+}
+
+dzldockstack dzltabstrip dzltab:checked {
+  border-style: solid;
+  border-color: @borders;
+  border-right-width: 1px;
+  border-left-width: 1px;
+  border-top-width: 1px;
+  border-bottom-width: 0px;
+}
diff --git a/src/dazzle.gresources.xml b/src/dazzle.gresources.xml
index d75a3bd..2c09631 100644
--- a/src/dazzle.gresources.xml
+++ b/src/dazzle.gresources.xml
@@ -23,14 +23,21 @@
   </gresource>
 
   <gresource prefix="/org/gnome/dazzle/themes">
+    <!-- Arc CSS theme -->
+    <file compressed="true" alias="Arc.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc-Dark.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc-Darker.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc-solid.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc-Dark-solid.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc-Darker-solid.css">../data/themes/Arc.css</file>
+    <file compressed="true" alias="Arc/Arc-panels.css">../data/themes/Arc/Arc-panels.css</file>
+
     <!-- Adwaita CSS theme -->
     <file compressed="true" alias="Adwaita.css">../data/themes/Adwaita.css</file>
     <file compressed="true" alias="Adwaita-dark.css">../data/themes/Adwaita-dark.css</file>
-
     <file compressed="true" 
alias="Adwaita/Adwaita-panels.css">../data/themes/Adwaita/Adwaita-panels.css</file>
     <file compressed="true" 
alias="Adwaita/Adwaita-graphs.css">../data/themes/Adwaita/Adwaita-graphs.css</file>
     <file compressed="true" 
alias="Adwaita/Adwaita-searchbar.css">../data/themes/Adwaita/Adwaita-searchbar.css</file>
-
     <file compressed="true" 
alias="Adwaita/Adwaita-dark-graphs.css">../data/themes/Adwaita/Adwaita-dark-graphs.css</file>
     <file compressed="true" 
alias="Adwaita/Adwaita-dark-searchbar.css">../data/themes/Adwaita/Adwaita-dark-searchbar.css</file>
 


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