summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2023-02-23 19:20:39 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2023-02-23 19:24:41 +0100
commit976897f6b81ec6757709f34e5cbfc870586925e4 (patch)
treec9c4558484f3f30790dc5ece760681fe46a9fc81 /data
parent5d00cee55d2af7df3eee9af54ef8d61924a9284d (diff)
downloadgnome-contacts-976897f6b81ec6757709f34e5cbfc870586925e4.tar.gz
Automatically load our CSS
Apparently `AdwApplication` automatically loads `style.css` from the GResource base path [1]. By default, that base path in a `GApplication` is the app ID (with some slight post processing). Let's use that so we can remove our custom CSS loading code. Basically, this commit moves `/org/gnome/Contacts/ui/style.css` to `/org/gnome/Contacts/style.css` to automatically use that behavior. [1]: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/styles-and-appearance.html#custom-styles
Diffstat (limited to 'data')
-rw-r--r--data/contacts.gresource.xml2
-rw-r--r--data/style.css (renamed from data/ui/style.css)0
2 files changed, 1 insertions, 1 deletions
diff --git a/data/contacts.gresource.xml b/data/contacts.gresource.xml
index e9158c1..e4ab82c 100644
--- a/data/contacts.gresource.xml
+++ b/data/contacts.gresource.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Contacts">
- <file compressed="true">ui/style.css</file>
+ <file compressed="true">style.css</file>
<file preprocess="xml-stripblanks">icons/scalable/actions/birthday-symbolic.svg</file>
<file preprocess="xml-stripblanks">icons/scalable/actions/building-symbolic.svg</file>
diff --git a/data/ui/style.css b/data/style.css
index 6593344..6593344 100644
--- a/data/ui/style.css
+++ b/data/style.css