diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 23:19:09 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-13 23:19:09 +0200 |
| commit | 695ece2c35491a509c70ef710bd0419d67b8fd0f (patch) | |
| tree | c2ac6aac664aff004207a36c376ba46c679c2b09 | |
| parent | 37e22df7fb942dbe6dbcc39ed161ee9336e8f0d9 (diff) | |
| download | turns-695ece2c35491a509c70ef710bd0419d67b8fd0f.tar.xz turns-695ece2c35491a509c70ef710bd0419d67b8fd0f.zip | |
app: add basic dark theme support
| -rw-r--r-- | res/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | res/style-dark.css | 15 | ||||
| -rw-r--r-- | res/style.css | 4 |
3 files changed, 18 insertions, 2 deletions
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 |
