From 695ece2c35491a509c70ef710bd0419d67b8fd0f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 13 Jul 2024 23:19:09 +0200 Subject: app: add basic dark theme support --- res/CMakeLists.txt | 1 + res/style-dark.css | 15 +++++++++++++++ res/style.css | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 res/style-dark.css diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index 36f23ff..cc3ff8b 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -9,6 +9,7 @@ target_add_glib_resources("res" "windows/main_window.ui" CSS_FILES "style.css" + "style-dark.css" ) target_compile_options("res" PRIVATE diff --git a/res/style-dark.css b/res/style-dark.css new file mode 100644 index 0000000..3cb2cf7 --- /dev/null +++ b/res/style-dark.css @@ -0,0 +1,15 @@ +button.disposition-hostile { + background-color: shade(@orange_5, 1.6); +} + +button:checked.disposition-hostile { + background-color: shade(@orange_5, 1.8); +} + +button.disposition-friendly { + background-color: shade(@green_5, 1.6); +} + +button:checked.disposition-friendly { + background-color: shade(@green_5, 1.8); +} \ No newline at end of file diff --git a/res/style.css b/res/style.css index d26a9ba..88ec242 100644 --- a/res/style.css +++ b/res/style.css @@ -3,7 +3,7 @@ button.disposition-hostile { } button:checked.disposition-hostile { - background-color: shade(@orange_1, 0.8); + background-color: shade(@orange_1, 0.6); } button.disposition-friendly { @@ -11,5 +11,5 @@ button.disposition-friendly { } button:checked.disposition-friendly { - background-color: shade(@green_1, 0.8); + background-color: shade(@green_1, 0.6); } \ No newline at end of file -- cgit v1.2.3