summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-08-15 15:22:14 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-08-15 15:22:14 +0200
commitdeb29c60d3ed70b181adf83a3e99754f2a912ea0 (patch)
tree093d8cd18fc95f804a07b55bfd2ddd697354f4bb /app
parent05c9fac9b074d87786813068d644f6ebe15d3c60 (diff)
downloadturns-deb29c60d3ed70b181adf83a3e99754f2a912ea0.tar.xz
turns-deb29c60d3ed70b181adf83a3e99754f2a912ea0.zip
app: add basic settings schema
Diffstat (limited to 'app')
-rw-r--r--app/CMakeLists.txt5
-rw-r--r--app/ch.arknet.Turns.gschema.xml20
2 files changed, 25 insertions, 0 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index da6d90f..9a94702 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -43,3 +43,8 @@ install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/turns.xml"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages"
)
+
+install(FILES
+ "ch.arknet.Turns.gschema.xml"
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glib-2.0/schemas"
+)
diff --git a/app/ch.arknet.Turns.gschema.xml b/app/ch.arknet.Turns.gschema.xml
new file mode 100644
index 0000000..b3f6f82
--- /dev/null
+++ b/app/ch.arknet.Turns.gschema.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+ <schema path="/ch/arknet/Turns/" id="ch.arknet.Turns">
+ <key name="disposition-color-friendly" type="s">
+ <default>@green_3</default>
+ <summary>Friendly Disposition Color</summary>
+ <description>The color used to shade friendly participants.</description>
+ </key>
+ <key name="disposition-color-hostile" type="s">
+ <default>@red_3</default>
+ <summary>Hostile Disposition Color</summary>
+ <description>The color used to shade hostile participants.</description>
+ </key>
+ <key name="disposition-color-secret" type="s">
+ <default>@purple_3</default>
+ <summary>Secret Disposition Color</summary>
+ <description>The color used to shade secret participants.</description>
+ </key>
+ </schema>
+</schemalist> \ No newline at end of file