From 37e22df7fb942dbe6dbcc39ed161ee9336e8f0d9 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 13 Jul 2024 23:07:15 +0200 Subject: app: switch to Adw.Application --- res/CMakeLists.txt | 4 +++- res/style.css | 15 +++++++++++++++ res/tests/windows.cpp | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 res/style.css (limited to 'res') 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") { -- cgit v1.2.3