From deb29c60d3ed70b181adf83a3e99754f2a912ea0 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 15 Aug 2024 15:22:14 +0200 Subject: app: add basic settings schema --- app/CMakeLists.txt | 5 +++++ app/ch.arknet.Turns.gschema.xml | 20 ++++++++++++++++++++ style/style-dark.css | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 app/ch.arknet.Turns.gschema.xml 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 @@ + + + + + @green_3 + Friendly Disposition Color + The color used to shade friendly participants. + + + @red_3 + Hostile Disposition Color + The color used to shade hostile participants. + + + @purple_3 + Secret Disposition Color + The color used to shade secret participants. + + + \ No newline at end of file diff --git a/style/style-dark.css b/style/style-dark.css index 926150f..6a060da 100644 --- a/style/style-dark.css +++ b/style/style-dark.css @@ -15,11 +15,11 @@ button:checked.disposition-friendly { } button.disposition-secret { - background-color: mix(shade(@purple_1, 0.8), @window_bg_color, 0.5); + background-color: mix(shade(@purple_3, 0.8), @window_bg_color, 0.5); } button:checked.disposition-secret { - background-color: mix(shade(@purple_1, 0.5), @window_bg_color, 0.5); + background-color: mix(shade(@purple_3, 0.5), @window_bg_color, 0.5); } .active-participant { -- cgit v1.2.3