[libdazzle] themes: add CSS styling for DzlGraphView
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] themes: add CSS styling for DzlGraphView
- Date: Mon, 5 Jun 2017 10:01:17 +0000 (UTC)
commit 85ce2464a7752183595840c5ccbc39c8ccf3480f
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 5 03:00:31 2017 -0700
themes: add CSS styling for DzlGraphView
data/themes/Adwaita-dark.css | 6 ++++++
data/themes/Adwaita.css | 1 +
data/themes/Adwaita/Adwaita-dark-graphs.css | 6 ++++++
data/themes/Adwaita/Adwaita-graphs.css | 6 ++++++
src/dazzle.gresources.xml | 7 +++++--
5 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/data/themes/Adwaita-dark.css b/data/themes/Adwaita-dark.css
new file mode 100644
index 0000000..6179c09
--- /dev/null
+++ b/data/themes/Adwaita-dark.css
@@ -0,0 +1,6 @@
+/* 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/Adwaita/Adwaita-dark-graphs.css");
+@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-panels.css");
diff --git a/data/themes/Adwaita.css b/data/themes/Adwaita.css
index 7e13657..276e601 100644
--- a/data/themes/Adwaita.css
+++ b/data/themes/Adwaita.css
@@ -2,4 +2,5 @@
@import url("resource:///org/gnome/dazzle/themes/shared.css");
/* Theme specific styling */
+@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-graphs.css");
@import url("resource:///org/gnome/dazzle/themes/Adwaita/Adwaita-panels.css");
diff --git a/data/themes/Adwaita/Adwaita-dark-graphs.css b/data/themes/Adwaita/Adwaita-dark-graphs.css
new file mode 100644
index 0000000..0026149
--- /dev/null
+++ b/data/themes/Adwaita/Adwaita-dark-graphs.css
@@ -0,0 +1,6 @@
+dzlgraphview {
+ background-color: #232729;
+ background-size: 8px 8px;
+ background-image: repeating-linear-gradient(0deg, #2e2e2e, #2e2e2e 1px, transparent 1px, transparent 8px),
+ repeating-linear-gradient(-90deg, #2e2e2e, #2e2e2e 1px, transparent 1px, transparent
8px);
+}
diff --git a/data/themes/Adwaita/Adwaita-graphs.css b/data/themes/Adwaita/Adwaita-graphs.css
new file mode 100644
index 0000000..05a7b22
--- /dev/null
+++ b/data/themes/Adwaita/Adwaita-graphs.css
@@ -0,0 +1,6 @@
+dzlgraphview {
+ background-color: #f6f7f8;
+ background-size: 8px 8px;
+ background-image: repeating-linear-gradient(0deg, #f0f1f2, #f0f1f2 1px, transparent 1px, transparent 8px),
+ repeating-linear-gradient(-90deg, #f0f1f2, #f0f1f2 1px, transparent 1px, transparent
8px);
+}
diff --git a/src/dazzle.gresources.xml b/src/dazzle.gresources.xml
index d6237f1..8383f55 100644
--- a/src/dazzle.gresources.xml
+++ b/src/dazzle.gresources.xml
@@ -17,13 +17,16 @@
<gresource prefix="/org/gnome/dazzle/themes">
<!-- 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-dark-graphs.css">../data/themes/Adwaita/Adwaita-dark-graphs.css</file>
<!-- Default and Fallback Theme -->
<file compressed="true" alias="shared.css">../data/themes/shared.css</file>
<file compressed="true"
alias="shared/shared-progressbutton.css">../data/themes/shared/shared-progressbutton.css</file>
- <file compressed="true" alias="shared-stacklist.css">../data/themes/shared/shared-stacklist.css</file>
- <file compressed="true"
alias="shared-suggestions.css">../data/themes/shared/shared-suggestions.css</file>
+ <file compressed="true"
alias="shared/shared-stacklist.css">../data/themes/shared/shared-stacklist.css</file>
+ <file compressed="true"
alias="shared/shared-suggestions.css">../data/themes/shared/shared-suggestions.css</file>
</gresource>
</gresources>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]