Commit Graph

169 Commits

Author SHA1 Message Date
Andy Scherzinger
130668c3b9
docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-04-29 09:00:19 +02:00
Jyrki Gadinger
2a3b5be30c fix(theme): correct dark/light mode check on Win10
`Utility::registryGetKeyValue` returns an invalid QVariant should the
key not exist -- which is the case if that switch has never been toggled
before.

--> Fix this by ensuring the QVariant is valid, and only then try to
convert it to a bool.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-15 12:10:42 +02:00
Camila Ayres
cf488b3e86 Add option to disable virtual files syncing on Windows.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-03-12 12:22:20 +01:00
Camila Ayres
5c78ddb01d Remove helpUlr() call from string.
Co-authored-by: Jyrki Gadinger <nilsding@nilsding.org>
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:11:49 +01:00
Camila Ayres
2009837160 Remove help url from developer string.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:11:49 +01:00
Camila Ayres
5f87576aa2 Update help url default value.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:11:49 +01:00
Matthieu Gallien
80445b4ff8 provide consistent version info including human readable version
should avoid displaying to an user a version number like 3.15.81

will remove some duplicated code

should allow to always use same way to display to an user the version
number

will make "3.15.81" be shown as "3.16.0 rc1"

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-14 16:08:08 +01:00
Rello
bbdea80574 Link to new documentation
Signed-off-by: Rello <Rello@users.noreply.github.com>
2025-01-31 10:26:58 +01:00
Carl Schwan
411f88e0ff Avoid converting string to color
Use hex directly

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2025-01-22 10:42:31 +01:00
Matthieu Gallien
6310e3e645 improve definition of MIRALL_VERSION_SUFFIX and MIRALL_VERSION_BUILD
should allow ompiling with MIRALL_VERSION_SUFFIX be empty

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-11 11:07:28 +01:00
Camila Ayres
f06ea6a328 Add bool theme option to display legacy import dialog.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-12-09 16:42:40 +01:00
Claudio Cambra
aceff3f529
Add connectToSignal on darkMode property fetch
Theme may be instantiated before the qApp is available

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-25 16:40:23 +08:00
Claudio Cambra
1db2656a4b
Try connectToSignal on all OSes on Theme init
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-25 16:40:02 +08:00
Claudio Cambra
7cc4932038
Make connectToPaletteSignal const
We don't really need to have the check fo paletteSignalsConnected

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-25 16:39:20 +08:00
Matthieu Gallien
e4cd55130a remove this call that is probably useless and crashing tests
we initialize all colors in the palette, so this init methos is most
probably not doing anything useful

crashes when doing in automated tests

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-21 12:32:10 +01:00
Matthieu Gallien
011fcd04f7 some improvements for account network settings
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-19 14:09:05 +01:00
Matthieu Gallien
1a9ba18661 on Windows 10 follow color scheme changes and apply them
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-19 14:09:05 +01:00
Matthieu Gallien
1399a32edc implement a drak mode palette and use it when needed
for now unable to dynamically switch between light and dark mode

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-19 14:09:05 +01:00
Matthieu Gallien
bce61115ef create a log category for OCC::Theme class
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
e69b6cb4c6 Use QOperatingSystemVersion in Windows 11 check
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
5f6712f442 Use registry-based dark mode detection on <= Windows 10
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
800b84d165 If <= Windows 10, use the reserve dark palette for dark mode
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
d2d91bb105 Use old palette change detection method on Windows 10 and under
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
7c2102547d Add convenience method to check Windows 11 availability
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
1f4f7c7d0f Revert "remove broken system paellete detection within our custom style"
This reverts commit 2d08cdb503.

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 14:09:05 +01:00
Claudio Cambra
96e2264baa Fix encoding used for override server url
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-19 13:40:18 +01:00
Camila Ayres
ee351aa132 Validate input of APPLICATION_SERVER_URL.
Tries to clean double quotes and output JSON parse error.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-09-26 14:55:29 +02:00
Claudio Cambra
a2c818e157 Add property for detecting of application override server url is in fact a JSON array string describing multiple servers
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-09-24 10:39:45 +02:00
Matthieu Gallien
2d08cdb503 remove broken system paellete detection within our custom style
remove custom binding between c++ native Qt API for system palette and
our QML styling code for colors detection

fixes many issues with dark mode using Windows native style

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-09-06 10:42:08 +02:00
Matthieu Gallien
9cecd59c6e use new QStyleHints::colorScheme feature to use light or dark mode
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-09-06 10:42:08 +02:00
Matthieu Gallien
274feb9587 remove deprecated code only usefull for very old Qt releases
we require Qt > 6.0 so any conditionnal code for older releases can be
deleted

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-08-12 11:14:26 +02:00
Camila Ayres
0f2554e3f1
Make sync status text easier to understand.
- Never display "please wait" to users.
- Only start displaying status starting at 1. e.g. "0 f 6 files" => "1 of 6 files"
- Improve text for FolderStatusDelegate::FolderSyncText.
- Reconciling => Syncing.
- Syncing => Sync.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-29 20:06:32 +02:00
Camila Ayres
bc05dc8a18
Use NEXTCLOUD_DEV to check if client is branded instead of checking for string.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-04 10:16:41 +02:00
Camila Ayres
4de91cba23
NextcloudDev is not a branded client.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-04 10:16:39 +02:00
Camila Ayres
3f9bf0ab9c
Add versionSuffix function to Theme.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-03 16:32:10 +02:00
Zhang Sheng
dcc4718c98 fix build failed
Signed-off-by: Zhang Sheng <zhangsheng@uniontech.com>
2024-06-12 15:54:03 +08:00
Matthieu Gallien
bebb8e1954 fix compilation issues on windows
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Claudio Cambra
52758a00b8 Fix QML coloring issues
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-04-26 09:05:12 +02:00
alex-z
bc91eac2e5 Improve Settings dialog design.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-10-23 12:45:24 +02:00
Claudio Cambra
6cf04d660b Remove OAuth authentication method as it is now unused
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-09-19 14:58:17 +08:00
Claudio Cambra
21656cce17
Replace all manual isntancesof adding trailing slash with use of utility method
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-08-04 17:40:42 +08:00
Matthieu Gallien
903c475d5a store in config file that we want to enable vfs when generating config
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2023-03-22 10:17:28 +01:00
rakekniven
c195513049 l10n: Added dot to end of sentence
Aligned end of sentences in about dialog.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2023-02-21 08:51:10 +01:00
Claudio Cambra
68c785e25c
Revert "Merge pull request #5366 from nextcloud/bugfix/remove-mono-icons-setting"
This reverts commit 5c42da4de5, reversing
changes made to e4b2449030.

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-01-27 12:23:11 +01:00
Claudio Cambra
0aee2bc2eb
Remove monoIcons-related functionality from theme
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-01-25 12:42:47 +01:00
alex-z
2bd1c272a6 Allow specifying the server force override URL and local sync folder path via command line.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-01-17 17:27:19 +01:00
Claudio Cambra
9fd09b125e Improve backup dark mode palette for Windows
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2022-12-30 13:04:09 +01:00
Claudio Cambra
ce57d3b3ab Declare all QRegularExpressions statically
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2022-12-20 18:38:24 +01:00
alex-z
ba9d3269e3 Use separate variable for cfg file name in CMAKE.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2022-11-07 11:05:27 +01:00
Claudio Cambra
9781e896a1 Improve the error box QML component
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
2022-09-29 12:14:37 +02:00