summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/Adwaita/Makefile.am12
-rw-r--r--themes/Adwaita/definition.xml22
-rw-r--r--themes/Adwaita/gresource.xml12
3 files changed, 43 insertions, 3 deletions
diff --git a/themes/Adwaita/Makefile.am b/themes/Adwaita/Makefile.am
index cf4d6a3..dd9b215 100644
--- a/themes/Adwaita/Makefile.am
+++ b/themes/Adwaita/Makefile.am
@@ -1,6 +1,7 @@
GTK3_CSS = \
core.css \
+ definition.xml \
display.css \
icons.css \
portions.css \
@@ -10,8 +11,13 @@ GTK3_CSS = \
redo.png \
undo.png
-css_DATA = $(GTK3_CSS)
+adwaita.ctm: gresource.xml $(GTK3_CSS)
+ glib-compile-resources --target=$@ --sourcedir=$(srcdir) gresource.xml
-cssdir = $(themesdir)/Adwaita
+css_DATA = adwaita.ctm
-EXTRA_DIST = $(css_DATA)
+cssdir = $(themesdir)
+
+EXTRA_DIST = $(css_DATA) gresource.xml
+
+CLEANFILES = $(css_DATA)
diff --git a/themes/Adwaita/definition.xml b/themes/Adwaita/definition.xml
new file mode 100644
index 0000000..b469695
--- /dev/null
+++ b/themes/Adwaita/definition.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ChrysalideTheme>
+ <identity>
+ <name>Adwaita</name>
+ <author>Cyrille Bagard</author>
+ <desc>Default theme for Chrysalide</desc>
+ </identity>
+ <resources>
+ <common>
+ <path>core.css</path>
+ <path>display.css</path>
+ <path>icons.css</path>
+ <path>portions.css</path>
+ </common>
+ <light>
+ <path>widgets.css</path>
+ </light>
+ <dark>
+ <path>widgets-dark.css</path>
+ </dark>
+ </resources>
+</ChrysalideTheme>
diff --git a/themes/Adwaita/gresource.xml b/themes/Adwaita/gresource.xml
new file mode 100644
index 0000000..32a8a09
--- /dev/null
+++ b/themes/Adwaita/gresource.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/chrysalide/gui/themes/Adwaita">
+ <file compressed="true">definition.xml</file>
+ <file compressed="true">core.css</file>
+ <file compressed="true">display.css</file>
+ <file compressed="true">icons.css</file>
+ <file compressed="true">portions.css</file>
+ <file compressed="true">widgets.css</file>
+ <file compressed="true">widgets-dark.css</file>
+ </gresource>
+</gresources>