diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 14:04:27 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 14:04:27 +0200 |
| commit | 5d8f799a1171f92054d4b45ba130cd7fdad0bd01 (patch) | |
| tree | 0f51290b3a60d71d25d7a49b66d5bd54dd7a4156 /gui/style | |
| parent | c45004b73bb045328a724d1d860df6d1515af6d4 (diff) | |
| download | turns-5d8f799a1171f92054d4b45ba130cd7fdad0bd01.tar.xz turns-5d8f799a1171f92054d4b45ba130cd7fdad0bd01.zip | |
app: prepare restructuring
Diffstat (limited to 'gui/style')
| -rw-r--r-- | gui/style/CMakeLists.txt | 18 | ||||
| -rw-r--r-- | gui/style/style-dark.css | 32 | ||||
| -rw-r--r-- | gui/style/style.css | 31 |
3 files changed, 81 insertions, 0 deletions
diff --git a/gui/style/CMakeLists.txt b/gui/style/CMakeLists.txt new file mode 100644 index 0000000..8ddbae8 --- /dev/null +++ b/gui/style/CMakeLists.txt @@ -0,0 +1,18 @@ +add_library("style") + +add_library("turns::style" ALIAS "style") + +target_add_glib_resources("style" + PREFIX "ch/arknet/Turns" + CSS_FILES + "style.css" + "style-dark.css" +) + +target_link_libraries("style" PUBLIC + "PkgConfig::giomm" + PRIVATE + "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:gcov>" +) + +enable_coverage("style") diff --git a/gui/style/style-dark.css b/gui/style/style-dark.css new file mode 100644 index 0000000..928264a --- /dev/null +++ b/gui/style/style-dark.css @@ -0,0 +1,32 @@ +@define-color hostile #e01b24; +@define-color friendly #33d17a; +@define-color secret #9141ac; + + +.disposition-hostile { + background-color: mix(shade(@hostile, 0.8), @window_bg_color, 0.5); +} + +:checked.disposition-hostile { + background-color: mix(shade(@hostile, 0.5), @window_bg_color, 0.5); +} + +.disposition-friendly { + background-color: mix(shade(@friendly, 0.8), @window_bg_color, 0.5); +} + +:checked.disposition-friendly { + background-color: mix(shade(@friendly, 0.5), @window_bg_color, 0.5); +} + +.disposition-secret { + background-color: mix(shade(@secret, 0.8), @window_bg_color, 0.5); +} + +:checked.disposition-secret { + background-color: mix(shade(@secret, 0.5), @window_bg_color, 0.5); +} + +.active-participant { + background-color: mix(shade(@accent_bg_color, 0.5), @card_bg_color, 0.5); +}
\ No newline at end of file diff --git a/gui/style/style.css b/gui/style/style.css new file mode 100644 index 0000000..a185c9b --- /dev/null +++ b/gui/style/style.css @@ -0,0 +1,31 @@ +@define-color hostile #e01b24; +@define-color friendly #33d17a; +@define-color secret #9141ac; + +.disposition-hostile { + background-color: mix(shade(@hostile, 1.6), @window_bg_color, 0.5); +} + +:checked.disposition-hostile { + background-color: mix(shade(@hostile, 1), @window_bg_color, 0.5); +} + +.disposition-friendly { + background-color: mix(shade(@friendly, 1.6), @window_bg_color, 0.5); +} + +:checked.disposition-friendly { + background-color: mix(shade(@friendly, 1), @window_bg_color, 0.5); +} + +.disposition-secret { + background-color: mix(shade(@secret, 1.6), @window_bg_color, 0.5); +} + +:checked.disposition-secret { + background-color: mix(shade(@secret, 1), @window_bg_color, 0.5); +} + +.active-participant { + background-color: mix(shade(@accent_bg_color, 1.5), @card_bg_color, 0.5); +}
\ No newline at end of file |
