diff options
Diffstat (limited to 'res')
| -rw-r--r-- | res/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | res/style.css | 15 | ||||
| -rw-r--r-- | res/tests/windows.cpp | 2 |
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") { |
