summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-13 23:07:15 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-13 23:08:27 +0200
commit37e22df7fb942dbe6dbcc39ed161ee9336e8f0d9 (patch)
tree89bd791aeae49fbb91acdfeca0e3e057cbe9f889 /res
parent7fed739bece80b26e4f7bb75fab91f90ef3a44ea (diff)
downloadturns-37e22df7fb942dbe6dbcc39ed161ee9336e8f0d9.tar.xz
turns-37e22df7fb942dbe6dbcc39ed161ee9336e8f0d9.zip
app: switch to Adw.Application
Diffstat (limited to 'res')
-rw-r--r--res/CMakeLists.txt4
-rw-r--r--res/style.css15
-rw-r--r--res/tests/windows.cpp2
3 files changed, 19 insertions, 2 deletions
diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt
index b2b723a..36f23ff 100644
--- a/res/CMakeLists.txt
+++ b/res/CMakeLists.txt
@@ -3,10 +3,12 @@
add_library("res")
target_add_glib_resources("res"
- PREFIX "turns"
+ PREFIX "ch/arknet/Turns"
UI_FILES
"widgets/participant_list_row.ui"
"windows/main_window.ui"
+ CSS_FILES
+ "style.css"
)
target_compile_options("res" PRIVATE
diff --git a/res/style.css b/res/style.css
new file mode 100644
index 0000000..d26a9ba
--- /dev/null
+++ b/res/style.css
@@ -0,0 +1,15 @@
+button.disposition-hostile {
+ background-color: shade(@orange_1, 1);
+}
+
+button:checked.disposition-hostile {
+ background-color: shade(@orange_1, 0.8);
+}
+
+button.disposition-friendly {
+ background-color: shade(@green_1, 1);
+}
+
+button:checked.disposition-friendly {
+ background-color: shade(@green_1, 0.8);
+} \ No newline at end of file
diff --git a/res/tests/windows.cpp b/res/tests/windows.cpp
index 9daab51..20063ad 100644
--- a/res/tests/windows.cpp
+++ b/res/tests/windows.cpp
@@ -4,7 +4,7 @@
TEST_CASE("GResource for main_window")
{
- auto builder = Gtk::Builder::create_from_resource("/turns/windows/main_window.ui");
+ auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main_window.ui");
SECTION("can create Gtk.Builder for the main window UI definition")
{