From 025345351762602a435e58014650266674801ff3 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 22 Jun 2022 18:30:26 +0200 Subject: Move resources to a shared libary This allows us to use resources in the cmd app and the unit tests. Fixes: #8839 --- src/resources/CMakeLists.txt | 37 +++++++++ src/resources/client.qrc | 39 ++++++++++ src/resources/core_theme.qrc | 31 ++++++++ src/resources/font-awesome/LICENSE.txt | 34 ++++++++ src/resources/font-awesome/dark/ban-solid.svg | 1 + src/resources/font-awesome/dark/bell-solid.svg | 1 + src/resources/font-awesome/dark/bolt-solid.svg | 1 + src/resources/font-awesome/dark/check-solid.svg | 1 + .../font-awesome/dark/clipboard-solid.svg | 1 + src/resources/font-awesome/dark/cog-solid.svg | 1 + .../font-awesome/dark/ellipsis-h-solid.svg | 1 + .../dark/exclamation-triangle-solid.svg | 1 + src/resources/font-awesome/dark/folder-solid.svg | 1 + .../font-awesome/dark/lock-open-solid.svg | 1 + src/resources/font-awesome/dark/lock-solid.svg | 1 + src/resources/font-awesome/dark/plus-solid.svg | 1 + .../font-awesome/dark/power-off-solid.svg | 1 + .../font-awesome/dark/step-forward-solid.svg | 1 + src/resources/font-awesome/dark/trash-solid.svg | 1 + src/resources/font-awesome/dark/user-solid.svg | 1 + src/resources/font-awesome/light/ban-solid.svg | 1 + src/resources/font-awesome/light/bell-solid.svg | 1 + src/resources/font-awesome/light/bolt-solid.svg | 1 + src/resources/font-awesome/light/check-solid.svg | 1 + .../font-awesome/light/clipboard-solid.svg | 1 + src/resources/font-awesome/light/cog-solid.svg | 1 + .../font-awesome/light/ellipsis-h-solid.svg | 1 + .../light/exclamation-triangle-solid.svg | 1 + src/resources/font-awesome/light/folder-solid.svg | 1 + .../font-awesome/light/lock-open-solid.svg | 1 + src/resources/font-awesome/light/lock-solid.svg | 1 + src/resources/font-awesome/light/plus-solid.svg | 1 + .../font-awesome/light/power-off-solid.svg | 1 + .../font-awesome/light/step-forward-solid.svg | 1 + src/resources/font-awesome/light/trash-solid.svg | 1 + src/resources/font-awesome/light/user-solid.svg | 1 + src/resources/font-awesome/update_color.ps1 | 17 ++++ src/resources/loadresources.cpp | 38 +++++++++ src/resources/loadresources.h | 12 +++ .../ui-light-plain-monochrom-state-checkmark.svg | 11 +++ .../ui-light-plain-monochrom-state-downloaded.svg | 11 +++ .../black/ui-light-plain-monochrom-state-error.svg | 11 +++ .../black/ui-light-plain-monochrom-state-info.svg | 11 +++ .../ui-light-plain-monochrom-state-offline.svg | 11 +++ .../black/ui-light-plain-monochrom-state-pause.svg | 11 +++ .../black/ui-light-plain-monochrom-state-sync.svg | 11 +++ .../ui-light-plain-monochrom-state-warning.svg | 11 +++ .../theme/colored/1024-owncloud-icon-sidebar.png | Bin 0 -> 15746 bytes src/resources/theme/colored/1024-owncloud-icon.png | Bin 0 -> 51517 bytes .../theme/colored/128-owncloud-icon-sidebar.png | Bin 0 -> 1317 bytes src/resources/theme/colored/128-owncloud-icon.png | Bin 0 -> 5126 bytes .../theme/colored/16-owncloud-icon-sidebar.png | Bin 0 -> 230 bytes src/resources/theme/colored/16-owncloud-icon.png | Bin 0 -> 416 bytes src/resources/theme/colored/24-owncloud-icon.png | Bin 0 -> 555 bytes .../theme/colored/256-owncloud-icon-sidebar.png | Bin 0 -> 3010 bytes src/resources/theme/colored/256-owncloud-icon.png | Bin 0 -> 10960 bytes .../theme/colored/32-owncloud-icon-sidebar.png | Bin 0 -> 346 bytes src/resources/theme/colored/32-owncloud-icon.png | Bin 0 -> 1044 bytes src/resources/theme/colored/48-owncloud-icon.png | Bin 0 -> 1612 bytes .../theme/colored/512-owncloud-icon-sidebar.png | Bin 0 -> 6724 bytes .../theme/colored/64-owncloud-icon-sidebar.png | Bin 0 -> 660 bytes src/resources/theme/colored/64-owncloud-icon.png | Bin 0 -> 2326 bytes src/resources/theme/colored/sidebar.svg | 3 + .../ui-light-plain-color-state-checkmark.svg | 12 +++ .../ui-light-plain-color-state-downloaded.svg | 12 +++ .../colored/ui-light-plain-color-state-error.svg | 12 +++ .../colored/ui-light-plain-color-state-info.svg | 12 +++ .../colored/ui-light-plain-color-state-offline.svg | 12 +++ .../colored/ui-light-plain-color-state-pause.svg | 12 +++ .../colored/ui-light-plain-color-state-sync.svg | 12 +++ .../colored/ui-light-plain-color-state-warning.svg | 12 +++ .../dark/ui-dark-plain-color-state-checkmark.svg | 13 ++++ .../dark/ui-dark-plain-color-state-downloaded.svg | 12 +++ .../theme/dark/ui-dark-plain-color-state-error.svg | 12 +++ .../theme/dark/ui-dark-plain-color-state-info.svg | 12 +++ .../dark/ui-dark-plain-color-state-offline.svg | 12 +++ .../theme/dark/ui-dark-plain-color-state-pause.svg | 12 +++ .../theme/dark/ui-dark-plain-color-state-sync.svg | 12 +++ .../dark/ui-dark-plain-color-state-warning.svg | 12 +++ src/resources/theme/universal/oc-image-about.svg | 6 ++ src/resources/theme/universal/owncloud-icon.svg | 4 + src/resources/theme/universal/wizard_logo.svg | 18 +++++ .../ui-dark-plain-monochrom-state-checkmark.svg | 11 +++ .../ui-dark-plain-monochrom-state-downloaded.svg | 11 +++ .../white/ui-dark-plain-monochrom-state-error.svg | 11 +++ .../white/ui-dark-plain-monochrom-state-info.svg | 11 +++ .../ui-dark-plain-monochrom-state-offline.svg | 11 +++ .../white/ui-dark-plain-monochrom-state-pause.svg | 11 +++ .../white/ui-dark-plain-monochrom-state-sync.svg | 11 +++ .../ui-dark-plain-monochrom-state-warning.svg | 11 +++ src/resources/wizard/style.qss | 86 +++++++++++++++++++++ 91 files changed, 726 insertions(+) create mode 100644 src/resources/CMakeLists.txt create mode 100644 src/resources/client.qrc create mode 100644 src/resources/core_theme.qrc create mode 100644 src/resources/font-awesome/LICENSE.txt create mode 100644 src/resources/font-awesome/dark/ban-solid.svg create mode 100644 src/resources/font-awesome/dark/bell-solid.svg create mode 100644 src/resources/font-awesome/dark/bolt-solid.svg create mode 100644 src/resources/font-awesome/dark/check-solid.svg create mode 100644 src/resources/font-awesome/dark/clipboard-solid.svg create mode 100644 src/resources/font-awesome/dark/cog-solid.svg create mode 100644 src/resources/font-awesome/dark/ellipsis-h-solid.svg create mode 100644 src/resources/font-awesome/dark/exclamation-triangle-solid.svg create mode 100644 src/resources/font-awesome/dark/folder-solid.svg create mode 100644 src/resources/font-awesome/dark/lock-open-solid.svg create mode 100644 src/resources/font-awesome/dark/lock-solid.svg create mode 100644 src/resources/font-awesome/dark/plus-solid.svg create mode 100644 src/resources/font-awesome/dark/power-off-solid.svg create mode 100644 src/resources/font-awesome/dark/step-forward-solid.svg create mode 100644 src/resources/font-awesome/dark/trash-solid.svg create mode 100644 src/resources/font-awesome/dark/user-solid.svg create mode 100644 src/resources/font-awesome/light/ban-solid.svg create mode 100644 src/resources/font-awesome/light/bell-solid.svg create mode 100644 src/resources/font-awesome/light/bolt-solid.svg create mode 100644 src/resources/font-awesome/light/check-solid.svg create mode 100644 src/resources/font-awesome/light/clipboard-solid.svg create mode 100644 src/resources/font-awesome/light/cog-solid.svg create mode 100644 src/resources/font-awesome/light/ellipsis-h-solid.svg create mode 100644 src/resources/font-awesome/light/exclamation-triangle-solid.svg create mode 100644 src/resources/font-awesome/light/folder-solid.svg create mode 100644 src/resources/font-awesome/light/lock-open-solid.svg create mode 100644 src/resources/font-awesome/light/lock-solid.svg create mode 100644 src/resources/font-awesome/light/plus-solid.svg create mode 100644 src/resources/font-awesome/light/power-off-solid.svg create mode 100644 src/resources/font-awesome/light/step-forward-solid.svg create mode 100644 src/resources/font-awesome/light/trash-solid.svg create mode 100644 src/resources/font-awesome/light/user-solid.svg create mode 100644 src/resources/font-awesome/update_color.ps1 create mode 100644 src/resources/loadresources.cpp create mode 100644 src/resources/loadresources.h create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-checkmark.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-downloaded.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-error.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-info.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-offline.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-pause.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-sync.svg create mode 100644 src/resources/theme/black/ui-light-plain-monochrom-state-warning.svg create mode 100644 src/resources/theme/colored/1024-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/1024-owncloud-icon.png create mode 100644 src/resources/theme/colored/128-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/128-owncloud-icon.png create mode 100644 src/resources/theme/colored/16-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/16-owncloud-icon.png create mode 100644 src/resources/theme/colored/24-owncloud-icon.png create mode 100644 src/resources/theme/colored/256-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/256-owncloud-icon.png create mode 100644 src/resources/theme/colored/32-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/32-owncloud-icon.png create mode 100644 src/resources/theme/colored/48-owncloud-icon.png create mode 100644 src/resources/theme/colored/512-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/64-owncloud-icon-sidebar.png create mode 100644 src/resources/theme/colored/64-owncloud-icon.png create mode 100644 src/resources/theme/colored/sidebar.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-checkmark.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-downloaded.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-error.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-info.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-offline.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-pause.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-sync.svg create mode 100644 src/resources/theme/colored/ui-light-plain-color-state-warning.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-checkmark.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-downloaded.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-error.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-info.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-offline.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-pause.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-sync.svg create mode 100644 src/resources/theme/dark/ui-dark-plain-color-state-warning.svg create mode 100644 src/resources/theme/universal/oc-image-about.svg create mode 100644 src/resources/theme/universal/owncloud-icon.svg create mode 100644 src/resources/theme/universal/wizard_logo.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-checkmark.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-downloaded.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-error.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-info.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-offline.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-pause.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-sync.svg create mode 100644 src/resources/theme/white/ui-dark-plain-monochrom-state-warning.svg create mode 100644 src/resources/wizard/style.qss (limited to 'src/resources') diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt new file mode 100644 index 000000000..a66972849 --- /dev/null +++ b/src/resources/CMakeLists.txt @@ -0,0 +1,37 @@ +find_package(Qt5LinguistTools) + +add_library(owncloudResources SHARED + client.qrc + core_theme.qrc + loadresources.cpp +) + +generate_theme(owncloudResources OWNCLOUD_SIDEBAR_ICONS) + +target_link_libraries(owncloudResources PUBLIC Qt5::Core) + +set_target_properties(owncloudResources PROPERTIES + OUTPUT_NAME "${APPLICATION_EXECUTABLE}Resources" + AUTOUIC ON + AUTORCC ON +) + +generate_export_header(owncloudResources + EXPORT_MACRO_NAME OWNCLOUDRESOURCES_EXPORT + EXPORT_FILE_NAME owncloudresources.h + STATIC_DEFINE OWNCLOUD_BUILT_AS_STATIC +) + +if(Qt5LinguistTools_FOUND) + # Handle Translations, pick all client_* files from trans directory. + file(GLOB client_translations ${CMAKE_SOURCE_DIR}/translations/client_*.ts) + qt5_add_translation(client_compiled_translations ${client_translations}) + target_sources(owncloudResources PRIVATE ${client_compiled_translations}) + add_resources_to_target( + TARGET owncloudResources + PREFIX translations + FILES "${client_compiled_translations}" + ) +endif() + +install(TARGETS owncloudResources ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) \ No newline at end of file diff --git a/src/resources/client.qrc b/src/resources/client.qrc new file mode 100644 index 000000000..6b7b85deb --- /dev/null +++ b/src/resources/client.qrc @@ -0,0 +1,39 @@ + + + font-awesome/light/folder-solid.svg + font-awesome/light/cog-solid.svg + font-awesome/light/bolt-solid.svg + font-awesome/light/lock-solid.svg + font-awesome/light/lock-open-solid.svg + font-awesome/light/user-solid.svg + font-awesome/light/ellipsis-h-solid.svg + font-awesome/light/trash-solid.svg + font-awesome/light/bell-solid.svg + font-awesome/light/power-off-solid.svg + font-awesome/light/plus-solid.svg + font-awesome/light/exclamation-triangle-solid.svg + font-awesome/dark/ban-solid.svg + font-awesome/dark/check-solid.svg + font-awesome/dark/step-forward-solid.svg + font-awesome/dark/clipboard-solid.svg + + font-awesome/dark/folder-solid.svg + font-awesome/dark/cog-solid.svg + font-awesome/dark/bolt-solid.svg + font-awesome/dark/lock-solid.svg + font-awesome/dark/lock-open-solid.svg + font-awesome/dark/user-solid.svg + font-awesome/dark/ellipsis-h-solid.svg + font-awesome/dark/trash-solid.svg + font-awesome/dark/bell-solid.svg + font-awesome/dark/power-off-solid.svg + font-awesome/dark/plus-solid.svg + font-awesome/dark/exclamation-triangle-solid.svg + font-awesome/dark/ban-solid.svg + font-awesome/dark/check-solid.svg + font-awesome/dark/step-forward-solid.svg + font-awesome/dark/clipboard-solid.svg + + wizard/style.qss + + diff --git a/src/resources/core_theme.qrc b/src/resources/core_theme.qrc new file mode 100644 index 000000000..1137eaeed --- /dev/null +++ b/src/resources/core_theme.qrc @@ -0,0 +1,31 @@ + + + theme/black/ui-light-plain-monochrom-state-checkmark.svg + theme/black/ui-light-plain-monochrom-state-error.svg + theme/black/ui-light-plain-monochrom-state-info.svg + theme/black/ui-light-plain-monochrom-state-offline.svg + theme/black/ui-light-plain-monochrom-state-pause.svg + theme/black/ui-light-plain-monochrom-state-sync.svg + theme/colored/ui-light-plain-color-state-checkmark.svg + theme/colored/ui-light-plain-color-state-error.svg + theme/colored/ui-light-plain-color-state-info.svg + theme/colored/ui-light-plain-color-state-offline.svg + theme/colored/ui-light-plain-color-state-pause.svg + theme/colored/ui-light-plain-color-state-sync.svg + theme/dark/ui-dark-plain-color-state-checkmark.svg + theme/dark/ui-dark-plain-color-state-error.svg + theme/dark/ui-dark-plain-color-state-info.svg + theme/dark/ui-dark-plain-color-state-offline.svg + theme/dark/ui-dark-plain-color-state-pause.svg + theme/dark/ui-dark-plain-color-state-sync.svg + theme/universal/oc-image-about.svg + theme/universal/owncloud-icon.svg + theme/universal/wizard_logo.svg + theme/white/ui-dark-plain-monochrom-state-checkmark.svg + theme/white/ui-dark-plain-monochrom-state-error.svg + theme/white/ui-dark-plain-monochrom-state-info.svg + theme/white/ui-dark-plain-monochrom-state-offline.svg + theme/white/ui-dark-plain-monochrom-state-pause.svg + theme/white/ui-dark-plain-monochrom-state-sync.svg + + diff --git a/src/resources/font-awesome/LICENSE.txt b/src/resources/font-awesome/LICENSE.txt new file mode 100644 index 000000000..f31bef92b --- /dev/null +++ b/src/resources/font-awesome/LICENSE.txt @@ -0,0 +1,34 @@ +Font Awesome Free License +------------------------- + +Font Awesome Free is free, open source, and GPL friendly. You can use it for +commercial projects, open source projects, or really almost whatever you want. +Full Font Awesome Free license: https://fontawesome.com/license/free. + +# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) +In the Font Awesome Free download, the CC BY 4.0 license applies to all icons +packaged as SVG and JS file types. + +# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) +In the Font Awesome Free download, the SIL OFL license applies to all icons +packaged as web and desktop font files. + +# Code: MIT License (https://opensource.org/licenses/MIT) +In the Font Awesome Free download, the MIT license applies to all non-font and +non-icon files. + +# Attribution +Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font +Awesome Free files already contain embedded comments with sufficient +attribution, so you shouldn't need to do anything additional when using these +files normally. + +We've kept attribution comments terse, so we ask that you do not actively work +to remove them from files, especially code. They're a great way for folks to +learn about Font Awesome. + +# Brand Icons +All brand icons are trademarks of their respective owners. The use of these +trademarks does not indicate endorsement of the trademark holder by Font +Awesome, nor vice versa. **Please do not use brand logos for any purpose except +to represent the company, product, or service to which they refer.** diff --git a/src/resources/font-awesome/dark/ban-solid.svg b/src/resources/font-awesome/dark/ban-solid.svg new file mode 100644 index 000000000..991d9780b --- /dev/null +++ b/src/resources/font-awesome/dark/ban-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/bell-solid.svg b/src/resources/font-awesome/dark/bell-solid.svg new file mode 100644 index 000000000..e5f2f535e --- /dev/null +++ b/src/resources/font-awesome/dark/bell-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/bolt-solid.svg b/src/resources/font-awesome/dark/bolt-solid.svg new file mode 100644 index 000000000..6aa1c1edc --- /dev/null +++ b/src/resources/font-awesome/dark/bolt-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/check-solid.svg b/src/resources/font-awesome/dark/check-solid.svg new file mode 100644 index 000000000..d993b404e --- /dev/null +++ b/src/resources/font-awesome/dark/check-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/clipboard-solid.svg b/src/resources/font-awesome/dark/clipboard-solid.svg new file mode 100644 index 000000000..feb2a32a6 --- /dev/null +++ b/src/resources/font-awesome/dark/clipboard-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/cog-solid.svg b/src/resources/font-awesome/dark/cog-solid.svg new file mode 100644 index 000000000..956c337ca --- /dev/null +++ b/src/resources/font-awesome/dark/cog-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/ellipsis-h-solid.svg b/src/resources/font-awesome/dark/ellipsis-h-solid.svg new file mode 100644 index 000000000..a2e36e3c1 --- /dev/null +++ b/src/resources/font-awesome/dark/ellipsis-h-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/exclamation-triangle-solid.svg b/src/resources/font-awesome/dark/exclamation-triangle-solid.svg new file mode 100644 index 000000000..4d53f45aa --- /dev/null +++ b/src/resources/font-awesome/dark/exclamation-triangle-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/folder-solid.svg b/src/resources/font-awesome/dark/folder-solid.svg new file mode 100644 index 000000000..7642e349f --- /dev/null +++ b/src/resources/font-awesome/dark/folder-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/lock-open-solid.svg b/src/resources/font-awesome/dark/lock-open-solid.svg new file mode 100644 index 000000000..c3a547e24 --- /dev/null +++ b/src/resources/font-awesome/dark/lock-open-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/lock-solid.svg b/src/resources/font-awesome/dark/lock-solid.svg new file mode 100644 index 000000000..94c5e7d77 --- /dev/null +++ b/src/resources/font-awesome/dark/lock-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/plus-solid.svg b/src/resources/font-awesome/dark/plus-solid.svg new file mode 100644 index 000000000..44e1f858b --- /dev/null +++ b/src/resources/font-awesome/dark/plus-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/power-off-solid.svg b/src/resources/font-awesome/dark/power-off-solid.svg new file mode 100644 index 000000000..28baa2ec9 --- /dev/null +++ b/src/resources/font-awesome/dark/power-off-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/step-forward-solid.svg b/src/resources/font-awesome/dark/step-forward-solid.svg new file mode 100644 index 000000000..c8223718b --- /dev/null +++ b/src/resources/font-awesome/dark/step-forward-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/trash-solid.svg b/src/resources/font-awesome/dark/trash-solid.svg new file mode 100644 index 000000000..2190928cf --- /dev/null +++ b/src/resources/font-awesome/dark/trash-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/dark/user-solid.svg b/src/resources/font-awesome/dark/user-solid.svg new file mode 100644 index 000000000..5a4de015c --- /dev/null +++ b/src/resources/font-awesome/dark/user-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/ban-solid.svg b/src/resources/font-awesome/light/ban-solid.svg new file mode 100644 index 000000000..e0cd45dd9 --- /dev/null +++ b/src/resources/font-awesome/light/ban-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/bell-solid.svg b/src/resources/font-awesome/light/bell-solid.svg new file mode 100644 index 000000000..57216ba94 --- /dev/null +++ b/src/resources/font-awesome/light/bell-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/bolt-solid.svg b/src/resources/font-awesome/light/bolt-solid.svg new file mode 100644 index 000000000..04351727e --- /dev/null +++ b/src/resources/font-awesome/light/bolt-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/check-solid.svg b/src/resources/font-awesome/light/check-solid.svg new file mode 100644 index 000000000..9df12b6f8 --- /dev/null +++ b/src/resources/font-awesome/light/check-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/clipboard-solid.svg b/src/resources/font-awesome/light/clipboard-solid.svg new file mode 100644 index 000000000..8fd4de99c --- /dev/null +++ b/src/resources/font-awesome/light/clipboard-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/cog-solid.svg b/src/resources/font-awesome/light/cog-solid.svg new file mode 100644 index 000000000..1daa61e1e --- /dev/null +++ b/src/resources/font-awesome/light/cog-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/ellipsis-h-solid.svg b/src/resources/font-awesome/light/ellipsis-h-solid.svg new file mode 100644 index 000000000..6583cbcbc --- /dev/null +++ b/src/resources/font-awesome/light/ellipsis-h-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/exclamation-triangle-solid.svg b/src/resources/font-awesome/light/exclamation-triangle-solid.svg new file mode 100644 index 000000000..630af9961 --- /dev/null +++ b/src/resources/font-awesome/light/exclamation-triangle-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/folder-solid.svg b/src/resources/font-awesome/light/folder-solid.svg new file mode 100644 index 000000000..1b7d67139 --- /dev/null +++ b/src/resources/font-awesome/light/folder-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/lock-open-solid.svg b/src/resources/font-awesome/light/lock-open-solid.svg new file mode 100644 index 000000000..83395d263 --- /dev/null +++ b/src/resources/font-awesome/light/lock-open-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/lock-solid.svg b/src/resources/font-awesome/light/lock-solid.svg new file mode 100644 index 000000000..4c1822def --- /dev/null +++ b/src/resources/font-awesome/light/lock-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/plus-solid.svg b/src/resources/font-awesome/light/plus-solid.svg new file mode 100644 index 000000000..2499ffba2 --- /dev/null +++ b/src/resources/font-awesome/light/plus-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/power-off-solid.svg b/src/resources/font-awesome/light/power-off-solid.svg new file mode 100644 index 000000000..ec12e78db --- /dev/null +++ b/src/resources/font-awesome/light/power-off-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/step-forward-solid.svg b/src/resources/font-awesome/light/step-forward-solid.svg new file mode 100644 index 000000000..a7335c355 --- /dev/null +++ b/src/resources/font-awesome/light/step-forward-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/trash-solid.svg b/src/resources/font-awesome/light/trash-solid.svg new file mode 100644 index 000000000..9c5250448 --- /dev/null +++ b/src/resources/font-awesome/light/trash-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/light/user-solid.svg b/src/resources/font-awesome/light/user-solid.svg new file mode 100644 index 000000000..6ae817ff2 --- /dev/null +++ b/src/resources/font-awesome/light/user-solid.svg @@ -0,0 +1 @@ + diff --git a/src/resources/font-awesome/update_color.ps1 b/src/resources/font-awesome/update_color.ps1 new file mode 100644 index 000000000..b1fe755e0 --- /dev/null +++ b/src/resources/font-awesome/update_color.ps1 @@ -0,0 +1,17 @@ +<# + .SYNOPSIS + This script replaces the color in all svg files in this folder +#> +$COLOR=$Args[0] +Write-Host "Color:" $COLOR +if (-not $COLOR) { + Write-Host "Please specify color" + Write-Host "update_corlor.ps1 `"#B5B6BB`"" + exit(1) +} +Get-ChildItem "*.svg" | % { + $tmp = Get-Content $_ + $tmp = $tmp -replace "fill=`"\S+`"", "fill=`"$COLOR`"" + Set-Content -Path $_ -Value $tmp + +} diff --git a/src/resources/loadresources.cpp b/src/resources/loadresources.cpp new file mode 100644 index 000000000..978d8afc2 --- /dev/null +++ b/src/resources/loadresources.cpp @@ -0,0 +1,38 @@ +#include "loadresources.h" + +#include + +using namespace OCC; + +void static load_rc() +{ + Q_INIT_RESOURCE(owncloudResources_translations); + Q_INIT_RESOURCE(client); + Q_INIT_RESOURCE(core_theme); +#ifdef BRANDING_AVAILABLE + Q_INIT_RESOURCE(theme); +#endif +} + +void static unload_rc() +{ + Q_CLEANUP_RESOURCE(owncloudResources_translations); + Q_CLEANUP_RESOURCE(client); + Q_CLEANUP_RESOURCE(core_theme); +#ifdef BRANDING_AVAILABLE + Q_CLEANUP_RESOURCE(theme); +#endif +} + +ResourcesLoader::ResourcesLoader() +{ + // Q_INIT_RESOURCE must not be called in a namespace + ::load_rc(); +} + + +ResourcesLoader::~ResourcesLoader() +{ + // Q_CLEANUP_RESOURCE must not be called in a namespace + ::unload_rc(); +} \ No newline at end of file diff --git a/src/resources/loadresources.h b/src/resources/loadresources.h new file mode 100644 index 000000000..30f0c64af --- /dev/null +++ b/src/resources/loadresources.h @@ -0,0 +1,12 @@ +#pragma once + +#include "owncloudresources.h" + +namespace OCC { +class OWNCLOUDRESOURCES_EXPORT ResourcesLoader +{ +public: + ResourcesLoader(); + ~ResourcesLoader(); +}; +} \ No newline at end of file diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-checkmark.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-checkmark.svg new file mode 100644 index 000000000..d9e5d1e36 --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-checkmark.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-downloaded.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-downloaded.svg new file mode 100644 index 000000000..c5df77b8d --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-downloaded.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-error.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-error.svg new file mode 100644 index 000000000..1c830f82b --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-error.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-info.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-info.svg new file mode 100644 index 000000000..a98ae32e0 --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-info.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-offline.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-offline.svg new file mode 100644 index 000000000..09ba29299 --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-offline.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-pause.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-pause.svg new file mode 100644 index 000000000..3cf2d62fb --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-pause.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-sync.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-sync.svg new file mode 100644 index 000000000..927cc0a1f --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-sync.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/black/ui-light-plain-monochrom-state-warning.svg b/src/resources/theme/black/ui-light-plain-monochrom-state-warning.svg new file mode 100644 index 000000000..a37cbcd50 --- /dev/null +++ b/src/resources/theme/black/ui-light-plain-monochrom-state-warning.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/colored/1024-owncloud-icon-sidebar.png b/src/resources/theme/colored/1024-owncloud-icon-sidebar.png new file mode 100644 index 000000000..7afed514e Binary files /dev/null and b/src/resources/theme/colored/1024-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/1024-owncloud-icon.png b/src/resources/theme/colored/1024-owncloud-icon.png new file mode 100644 index 000000000..ba5eef2a1 Binary files /dev/null and b/src/resources/theme/colored/1024-owncloud-icon.png differ diff --git a/src/resources/theme/colored/128-owncloud-icon-sidebar.png b/src/resources/theme/colored/128-owncloud-icon-sidebar.png new file mode 100644 index 000000000..688c8ad52 Binary files /dev/null and b/src/resources/theme/colored/128-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/128-owncloud-icon.png b/src/resources/theme/colored/128-owncloud-icon.png new file mode 100644 index 000000000..aed06cb90 Binary files /dev/null and b/src/resources/theme/colored/128-owncloud-icon.png differ diff --git a/src/resources/theme/colored/16-owncloud-icon-sidebar.png b/src/resources/theme/colored/16-owncloud-icon-sidebar.png new file mode 100644 index 000000000..39f4118ed Binary files /dev/null and b/src/resources/theme/colored/16-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/16-owncloud-icon.png b/src/resources/theme/colored/16-owncloud-icon.png new file mode 100644 index 000000000..7359ec6e8 Binary files /dev/null and b/src/resources/theme/colored/16-owncloud-icon.png differ diff --git a/src/resources/theme/colored/24-owncloud-icon.png b/src/resources/theme/colored/24-owncloud-icon.png new file mode 100644 index 000000000..a337636ab Binary files /dev/null and b/src/resources/theme/colored/24-owncloud-icon.png differ diff --git a/src/resources/theme/colored/256-owncloud-icon-sidebar.png b/src/resources/theme/colored/256-owncloud-icon-sidebar.png new file mode 100644 index 000000000..b99f4b9b2 Binary files /dev/null and b/src/resources/theme/colored/256-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/256-owncloud-icon.png b/src/resources/theme/colored/256-owncloud-icon.png new file mode 100644 index 000000000..479d0e25f Binary files /dev/null and b/src/resources/theme/colored/256-owncloud-icon.png differ diff --git a/src/resources/theme/colored/32-owncloud-icon-sidebar.png b/src/resources/theme/colored/32-owncloud-icon-sidebar.png new file mode 100644 index 000000000..8b37e95ff Binary files /dev/null and b/src/resources/theme/colored/32-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/32-owncloud-icon.png b/src/resources/theme/colored/32-owncloud-icon.png new file mode 100644 index 000000000..d464d9930 Binary files /dev/null and b/src/resources/theme/colored/32-owncloud-icon.png differ diff --git a/src/resources/theme/colored/48-owncloud-icon.png b/src/resources/theme/colored/48-owncloud-icon.png new file mode 100644 index 000000000..e909ae905 Binary files /dev/null and b/src/resources/theme/colored/48-owncloud-icon.png differ diff --git a/src/resources/theme/colored/512-owncloud-icon-sidebar.png b/src/resources/theme/colored/512-owncloud-icon-sidebar.png new file mode 100644 index 000000000..8132c5095 Binary files /dev/null and b/src/resources/theme/colored/512-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/64-owncloud-icon-sidebar.png b/src/resources/theme/colored/64-owncloud-icon-sidebar.png new file mode 100644 index 000000000..bdf9137ae Binary files /dev/null and b/src/resources/theme/colored/64-owncloud-icon-sidebar.png differ diff --git a/src/resources/theme/colored/64-owncloud-icon.png b/src/resources/theme/colored/64-owncloud-icon.png new file mode 100644 index 000000000..1cd2af7c1 Binary files /dev/null and b/src/resources/theme/colored/64-owncloud-icon.png differ diff --git a/src/resources/theme/colored/sidebar.svg b/src/resources/theme/colored/sidebar.svg new file mode 100644 index 000000000..89fab7c05 --- /dev/null +++ b/src/resources/theme/colored/sidebar.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-checkmark.svg b/src/resources/theme/colored/ui-light-plain-color-state-checkmark.svg new file mode 100644 index 000000000..bbea91eb8 --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-checkmark.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-downloaded.svg b/src/resources/theme/colored/ui-light-plain-color-state-downloaded.svg new file mode 100644 index 000000000..b38aef983 --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-downloaded.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-error.svg b/src/resources/theme/colored/ui-light-plain-color-state-error.svg new file mode 100644 index 000000000..d8b3410af --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-error.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-info.svg b/src/resources/theme/colored/ui-light-plain-color-state-info.svg new file mode 100644 index 000000000..a51c4145f --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-info.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-offline.svg b/src/resources/theme/colored/ui-light-plain-color-state-offline.svg new file mode 100644 index 000000000..8f7c934eb --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-offline.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-pause.svg b/src/resources/theme/colored/ui-light-plain-color-state-pause.svg new file mode 100644 index 000000000..c4694d386 --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-pause.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-sync.svg b/src/resources/theme/colored/ui-light-plain-color-state-sync.svg new file mode 100644 index 000000000..7225bf985 --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-sync.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/colored/ui-light-plain-color-state-warning.svg b/src/resources/theme/colored/ui-light-plain-color-state-warning.svg new file mode 100644 index 000000000..d8c10126f --- /dev/null +++ b/src/resources/theme/colored/ui-light-plain-color-state-warning.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-checkmark.svg b/src/resources/theme/dark/ui-dark-plain-color-state-checkmark.svg new file mode 100644 index 000000000..3fd73d000 --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-checkmark.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-downloaded.svg b/src/resources/theme/dark/ui-dark-plain-color-state-downloaded.svg new file mode 100644 index 000000000..4497b2d9f --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-downloaded.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-error.svg b/src/resources/theme/dark/ui-dark-plain-color-state-error.svg new file mode 100644 index 000000000..b53774bf3 --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-error.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-info.svg b/src/resources/theme/dark/ui-dark-plain-color-state-info.svg new file mode 100644 index 000000000..f1c2cc0c3 --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-info.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-offline.svg b/src/resources/theme/dark/ui-dark-plain-color-state-offline.svg new file mode 100644 index 000000000..dce80a64b --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-offline.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-pause.svg b/src/resources/theme/dark/ui-dark-plain-color-state-pause.svg new file mode 100644 index 000000000..e53cb185c --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-pause.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-sync.svg b/src/resources/theme/dark/ui-dark-plain-color-state-sync.svg new file mode 100644 index 000000000..d824ede36 --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-sync.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/dark/ui-dark-plain-color-state-warning.svg b/src/resources/theme/dark/ui-dark-plain-color-state-warning.svg new file mode 100644 index 000000000..76b018894 --- /dev/null +++ b/src/resources/theme/dark/ui-dark-plain-color-state-warning.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/resources/theme/universal/oc-image-about.svg b/src/resources/theme/universal/oc-image-about.svg new file mode 100644 index 000000000..551f6ed41 --- /dev/null +++ b/src/resources/theme/universal/oc-image-about.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/resources/theme/universal/owncloud-icon.svg b/src/resources/theme/universal/owncloud-icon.svg new file mode 100644 index 000000000..0026f7db1 --- /dev/null +++ b/src/resources/theme/universal/owncloud-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/resources/theme/universal/wizard_logo.svg b/src/resources/theme/universal/wizard_logo.svg new file mode 100644 index 000000000..44508f6f9 --- /dev/null +++ b/src/resources/theme/universal/wizard_logo.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-checkmark.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-checkmark.svg new file mode 100644 index 000000000..a0f66d4f2 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-checkmark.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-downloaded.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-downloaded.svg new file mode 100644 index 000000000..9eb004677 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-downloaded.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-error.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-error.svg new file mode 100644 index 000000000..7dfd6f2ae --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-error.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-info.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-info.svg new file mode 100644 index 000000000..bd618326b --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-info.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-offline.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-offline.svg new file mode 100644 index 000000000..17672d236 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-offline.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-pause.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-pause.svg new file mode 100644 index 000000000..2d87cdcd8 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-pause.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-sync.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-sync.svg new file mode 100644 index 000000000..02967ecf2 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-sync.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/theme/white/ui-dark-plain-monochrom-state-warning.svg b/src/resources/theme/white/ui-dark-plain-monochrom-state-warning.svg new file mode 100644 index 000000000..1a768eae2 --- /dev/null +++ b/src/resources/theme/white/ui-dark-plain-monochrom-state-warning.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/resources/wizard/style.qss b/src/resources/wizard/style.qss new file mode 100644 index 000000000..ad705c517 --- /dev/null +++ b/src/resources/wizard/style.qss @@ -0,0 +1,86 @@ +/* + it turned out to be easier to apply styles as "locally" as possible, i.e., just apply where necessary + + we use a dedicated widget as a container for the pages within the wizard window + styles will be inherited by all child widgets, so we'd have to guess the original values for all elements which we + do not want to style + + the navigation/pagination part is located outside the content widget, so it won't be affected by this stylesheet + especially since we prefix all rules with #contentWidget + + note that @\{...\} are variables replaced by our own code when loading the stylesheet + they represent theme-specific colors + */ + +/* + unfortunately, if we want to change the background color altogether, we have to set it it on the top level element + and reset it to the original value where needed (some group boxes) + */ +#contentWidget +{ + background-color: @{WIZARD_BACKGROUND_COLOR}; +} + +/* selectively set the font color for most labels and one group box title */ +#contentWidget #welcomeTextLabel, +#contentWidget #serverUrlLabel, +#contentWidget #youreAllSetLabel, +#contentWidget #enterYourCredentialsLabel, +#contentWidget #urlLabel, +#contentWidget #usernameLabel, +#contentWidget #passwordLabel, +#contentWidget #appPasswordLabel, +#contentWidget #pleaseLogIntoLabel, +#contentWidget #usernameLabel, +#contentWidget #passwordLabel, +#contentWidget #advancedConfigGroupBox::title +{ + color: @{WIZARD_FONT_COLOR}; +} + +/* + the group box also has got a content widget, which we can easily hide from C++ when it is not checked + a side effect of this is that it makes setting the original background color a lot easier, since we do not have to + set the margins/paddings of the parent group box + */ +#contentWidget #advancedConfigGroupBoxContentWidget +{ + /* + fortunately, we can just reuse the colors from the original theme using the QPalette macro + this is significantly better than having to set a specific color in some way + */ + background-color: palette(window); +} + +#contentWidget #advancedConfigGroupBox +{ + /* + the border would be hidden by the content widget anyway, and the content widget background color typically + provides sufficient contrast + */ + border: 0; +} + +#contentWidget #advancedConfigGroupBox:checked { + /* + this value is combined with some suitable top margin on the layout in Qt Designer + (must be non-0, otherwise the stylesheet value does not have any effect) + */ + margin-top: 16px; +} + +/* server URL page */ +#contentWidget QLabel#welcomeTextLabel { font-size: 30px; } +#contentWidget QLabel#serverUrlLabel { font-size: 16px; } + +/* credentials pages (common) */ +#contentWidget QLabel#urlLabel { font-size: 16px; } + +/* basic auth credentials page */ +#contentWidget QLabel#enterYourCredentialsLabel { font-size: 16px; } + +/* OAuth2 credentials page */ +#contentWidget QLabel#pleaseLogIntoLabel { font-size: 16px; } + +/* account configured page */ +#contentWidget QLabel#youreAllSetLabel { font-size: 30px; } -- cgit v1.2.3