Commit Graph

10769 Commits

Author SHA1 Message Date
Jyrki Gadinger
992ca67528 align status icon display with e.g. Talk more
- status icons have now a white background/border
- "Invisible"/"Offline" icons are now hidden
- UserModel.status property is now available in QML too when needed

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-19 12:10:47 +00:00
Jyrki Gadinger
fa6e4efbd9 use colour from Style instead of palette for icons
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-19 12:10:47 +00:00
Jyrki Gadinger
fa5d3bc2f6 explicitly set colours for header items
the _Universal_ theme notably sets [`icon.color` on `Button`s][0] and
also the [`color` on `Label`s][1], ignoring what's set through the
`palette` property ...

[0]: 215619d71b/src/quickcontrols/universal/Button.qml (L23)
[1]: 215619d71b/src/quickcontrols/universal/Label.qml (L12)

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-19 12:10:47 +00:00
Jyrki Gadinger
6898f86aeb gui: fix dark mode change on Windows 10 with universal style
The _Universal_ QML style has a theme that uses the colour scheme from
the system.  This can be set by either configuring
`qtquickcontrols2.conf` or setting the environment variable
`QT_QUICK_CONTROLS_UNIVERSAL_THEME=System`.

Unfortunately, due to [QTBUG-128825], setting the theme in the
configuration file/environment variable results in the dark/light mode
setting only be set during startup, not during runtime.  Not ideal, but
still better than not having a broken dark mode theme at all.

Fixes #7991

[QTBUG-128825]: https://bugreports.qt.io/browse/QTBUG-128825

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-18 07:54:44 +00:00
Claudio Cambra
b26d74146b gui/macOS: Avoid UB in edge cases where there is no matching account state for a domain
Do not assume existence of an account for a given domain identifier --
users can modify the config in unexpected ways

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-14 14:44:41 +00:00
Matthieu Gallien
1c90fb08e0 ensure user receiving an encrypted share maintain proper state
will make sure the client internal database keeps proper encryption
information

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-13 12:35:24 +01:00
Claudio Cambra
3f3c3cddb3 gui/macOS: Do not log account detail-related messages that were not sent on dead file provider socket
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 12:34:40 +01:00
Sandro Knauß
1f0fd81316 Fix build without WebEngine=OFF.
Signed-off-by: Sandro Knauß <hefee@debian.org>
2025-03-13 11:26:24 +00:00
Camila Ayres
a3ae0441c3
Add option to disable virtual files syncing on Windows.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-03-13 12:15:46 +01:00
Jyrki Gadinger
f526c972ca display reshares in sharing dialog
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-13 11:08:07 +00:00
Claudio Cambra
394f20bffd gui/tray: Hide resume sync for all/pause sync for all menu item if there are no configured sync folders
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 10:31:45 +00:00
Claudio Cambra
5e71d6c026 gui: Expose if there are any configured sync folders in systray class to QML
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 10:31:45 +00:00
Claudio Cambra
04cc424610 gui/wizard: Display macOS-specific VFS information where relevant in advanced setup page
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
db1f1a8638 gui/wizard: Add orientation message for macOS VFS users using virtual files
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
4f37465b2f gui/wizard: When selecting VFS sync with macOS File Provider, do not set up local folder unexpectedly
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
ad99ccef60 gui/wizard: Correctly handle vfs enablement state on account config finish when using macOS File Provider module
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
d43b816c0b gui/wizard: Do not check vfs path availability with macOS File Provider module
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
c1b39fdab1 gui/wizard: Present virtual files checkbox if using macOS File Provider module
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
bad94dbf10 gui/wizard: When asking about virtual files, do not notify user if using macOS File Provider module
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Claudio Cambra
23a90120e2 gui/macOS: Do not automatically configure file provider domains for new accounts
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-13 11:29:11 +01:00
Matthieu Gallien
d530ce3dc3 avoid showing warnings for excluded files to not confuse users
if a file name is invalid, the files will be ignored

if a file is excluded because of selective sync, the file will be
ignored

if a file is ignored for those both reasons, avoid showing a very
visible warning to the user

will limit too many warnings and notifications being shown

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-12 15:12:50 +01:00
Matthieu Gallien
33834b83c6 ensure invalid file names are reported for files that are not ignored
we currently notify invalid file names for files that the sync engine
will not upload because they are ignored for other reasons (selective
sync for example)

let's first check if the file is ignored and only if the file would be
uploaded, we can check the file name validity

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-12 15:12:50 +01:00
Jyrki Gadinger
79c9851208 fix setups that use basic auth
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-11 08:43:41 +00:00
Matthieu Gallien
809642791d remove unused capture of this in one lambda
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-07 09:33:28 +00:00
Jyrki Gadinger
2257d189e4 always set a user if we got asked for one
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-06 09:35:31 +01:00
Jyrki Gadinger
54d4930f44 make use of the new x-nc-skip-trashbin header
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-06 08:22:55 +00:00
Claudio Cambra
497ab39ea3 gui/macOS: Fix emitted signal in file provider sync status GUI component
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-06 08:12:49 +00:00
Camila Ayres
dfff06eb16 Remove aditional text when error occurs.
Additional text was not user friendly since Sparkle throws an error when no new update is available.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-03-06 09:10:14 +01:00
Jyrki Gadinger
6449eda361 Revert "gui: do not allow MainWindow to be resized"
This reverts commit 0963856a94.

turns out it's fine on Sonoma, whereas it breaks on Sequoia (the window
now gets stuck below the menubar) -- maybe I'll open up a QTBUG later if
I can reproduce this with a minimal example

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-04 10:12:57 +00:00
Jyrki Gadinger
e879eaddc0 gui: do not allow MainWindow to be resized
previously macOS let you resize the activity window, resulting in
strange visual artifacts...

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-03 18:12:08 +00:00
Claudio Cambra
0a241a3354 gui/tray: Make bottom buttons in user status selector smaller
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:18:32 +00:00
Claudio Cambra
284a403037 gui/tray: Do not add custom styling to status message text field in user status
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:18:32 +00:00
Claudio Cambra
6719461318 gui/tray: Add hacky workaround to avoid icon and text for menu items in tray header being too close
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:18:32 +00:00
Claudio Cambra
0668730f09 gui/tray: Let menu handle sizing of child menu items in tray window header
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:18:32 +00:00
Claudio Cambra
d7e0923227 gui/tray: Use standard native buttons for bottom buttons in user status selector page
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:18:31 +00:00
Claudio Cambra
6e179afd3d gui/macOS: Use attached tooltip properties rather than creating a new tooltip in request sync button
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:11:48 +00:00
Claudio Cambra
5cea713ab9 gui/macOS: Add tooltip explaining the "request sync" action in the File Provider settings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:11:48 +00:00
Claudio Cambra
3dcc438b71 gui/macOS: Reimplement sync button more subtly within the sync status component
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:11:47 +00:00
Claudio Cambra
9a76d2d203 gui/macOS: Remove "Advanced" settings from File Provider settings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 16:11:47 +00:00
Matthieu Gallien
2c58577b87 when deleting a remote locked file, provide needed lock headers
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-03 16:07:07 +00:00
Claudio Cambra
476c2da02d gui/tray: Remove unused thumbnailjob class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 13:25:56 +00:00
Claudio Cambra
0ccf0087e4 gui/tray: Do not generate JPEG images in async image response for macOS
We are seeing libjpeg related crashes in our packaged version for macOS.
Until we are able to resolve this in the packaging, do not generate
JPEG-based images

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-03-03 12:36:57 +00:00
Pablo Ariño Muñoz
29459e8049 carried out suggested improvements
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-28 15:22:36 +00:00
Pablo Ariño Muñoz
7a4af3ea8e Changed properties to designer file and hiding interval selector when notify push is available
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-28 15:22:36 +00:00
Pablo Ariño Muñoz
0c1b9b9510 Changed critical free space to 512MB and free space to 1GB in code and documentation
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-27 03:49:02 +00:00
Pablo Ariño Muñoz
ce38a28a20 fixed formatting mistakes and removed unnecessary include
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-26 11:59:47 +00:00
Pablo Ariño Muñoz
078efeb8b5 Simplified the code, removed checkbox and moved section further down
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-26 11:59:47 +00:00
Pablo Ariño Muñoz
200b8a76ec Fixed link by changing it from .ui to .cpp
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-26 11:59:47 +00:00
Pablo Ariño Muñoz
a087da79f0 Added an option to customize the server poll interval in the Advanced Settings
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-26 11:59:46 +00:00
Jyrki Gadinger
a292cd3903 do not display encrypt action for external folders
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-02-25 10:45:41 +00:00