Commit Graph

432 Commits

Author SHA1 Message Date
Martchus 19a621a357 Fix typos, improve comments 2024-06-22 22:12:48 +02:00
Martchus 8f78d14215 Fix re-connect when process status is considered and Syncthing restarted
When Syncthing restarts itself, its main process is not terminating (as its
main process is just a monitoring process). The "Consider process status …"
feature was relying on the process being stopped and started again as
trigger for trying to re-connect, though. To make it also work when
Syncthing restarts itself, this change checks the log for an exiting
message of the monitoring process and considers the process running again
when the GUI address is logged again.

This fixes https://github.com/Martchus/syncthingtray/issues/236.

Notifications are not (yet) suppressed. (Not sure how easy it is and how
much sense it makes.)
2024-06-20 01:22:45 +02:00
Martchus a33271c293 Update translations 2024-06-17 23:05:20 +02:00
Martchus 250f4bf97d Add option to configure presets with transparent background depending on palette
Implements https://github.com/Martchus/syncthingtray/issues/270
2024-06-17 22:37:34 +02:00
Martchus 8a51248791 Allow compilation of tray application and backend libs for web assembly
Make use of all Qt features conditional that are not supported on the
web assembly platform (mainly TLS support and QProcess).

Note that HTTPs is supposed to work nevertheless as long as the certificate
matches (with the usual corss-site scripting limitations).
2024-06-10 22:42:54 +02:00
Martchus 11da31b21f Ensure bundled OpenSSL libraries have the name expected by the Qt framework 2024-06-08 21:19:59 +02:00
Martchus 91dd27e4ad Log whether TLS support is available under Android 2024-06-08 21:05:32 +02:00
Martchus 5221549f43 Allow creating an APK for Android 2024-06-08 20:59:56 +02:00
Martchus f1762a4620 Allow enabling insecure TLS connections for testing 2024-06-08 20:57:17 +02:00
Martchus ef111fb0aa Improve dialog for editing ignore patterns 2024-06-07 00:45:26 +02:00
Martchus 062e1107f3 Update translations 2024-05-31 16:13:29 +02:00
Martchus 2ed7f122fe Add basic action to allow removing related ignore patterns
This is probably not a very useful action but a first step to manipulate
ignore patterns based on a selection in the file browser. It has not been
tested very well but the whole feature is behind a feature flag so that is
ok for now.
2024-05-31 16:13:05 +02:00
Martchus 78575c088c Fix very bad contrast of status text on selected view items with Windows styles 2024-05-26 00:55:11 +02:00
Martchus 29251fe422 Avoid ugly vertical lines in dir/dev view with Windows 11 style
This change techically affects all styles but it seems only the Windows 11
style draws these lines so noisily anyway.
2024-05-25 23:56:48 +02:00
Martchus f55d3431ff Update translations
Translations for experimental/WIP features are still unfinished.
2024-05-08 11:24:24 +02:00
Martchus 9e4208fc0d Add simple view for showing ignore patterns 2024-05-05 14:47:50 +02:00
Martchus 131b4d1649 Use explicit c'tor in all Qt Widgets GUI related classes 2024-04-12 02:35:18 +02:00
Martchus 97f6cfcf76 Remove unused include in `helper.h` 2024-04-12 02:29:24 +02:00
Martchus 15b60102a1 Workaround Qt bug in Windows 11 style
Pass a widget when invoking `QStyle::drawControl()`; the Windows 11 style
uses the widget unconditionally.

Considering the documentation explicitly states `The widget argument is
optional` and the default value for the function argument is `nullptr` this
is supposedly a bug in Qt.
2024-04-12 02:29:02 +02:00
Martchus cc599efbef Fix potential problems with code related to styling the tray menu 2024-04-09 11:35:23 +02:00
Martchus 35d03551c4 Update translations 2024-04-06 19:47:16 +02:00
Martchus 548251f538 Fix positioning issues with remote file browser 2024-04-06 19:38:54 +02:00
Martchus 93b5d66875 Allow browsing remote/global files 2024-04-05 01:30:00 +02:00
Martchus 0db27b14b0 Update translations 2024-02-29 14:12:02 +01:00
Martchus dee94844be Fix compilation with Qt < 6.6 2024-02-22 16:57:02 +01:00
Martchus 43caad8676 Ensure Fork Awesome icons are re-rendered on device pixel ratio change 2024-02-22 01:10:04 +01:00
Martchus da3ad3347d Fix remaining problems preventing unity builds to work
* Avoid multiple definitions of `centerObj()`; this was very bad anyway
* Include `c++utilities/tests/testutils.h` upfront so the formatting
  operators are included before CppUnit
2024-01-30 23:11:00 +01:00
Martchus 4265a94a63 Apply clang-format 2024-01-27 02:56:53 +01:00
Martchus afe9cb2135 Add actions/shortcuts to desktop file
* Remove the old approach to specify actions as it is lacking the `Actions`
  key and doesn't allow customizing the executable name
* Add actions for most important use cases
2024-01-27 02:56:33 +01:00
Martchus 5667aad412 Support Syncthing's shell completion
Syncthing added shell completion in v1.27.3-rc.1 (commit
78db3af8c5e8bd08a9773b0c4da233a52ed4cfe6). This change integrates
that shell completion with Syncthing Tray's long existing completion (which
only supports Bash so far).
2024-01-26 01:48:47 +01:00
Martchus 13ddb6dba5 Apply clang-format 2024-01-15 21:32:38 +01:00
Martchus 25971b6fd5 Update resource paths in UI file after folder structure has changed 2024-01-07 22:35:01 +01:00
Martchus 01fe57492c Add and update tab-stops explicitly where default order is wrong 2024-01-07 22:30:48 +01:00
Martchus 939594aea6 Update translations 2024-01-02 15:22:15 +01:00
Martchus c36b3223f1 Fix displaying issues with Windows 11 style
* Set content margins to take shadow effects into account
* Fix behavior when showing the QMenu not as `Qt::Popup`
    * Prevent polishing as it would wrongly override our window flags
    * Use the background color from the application's palette as the
      background color from the QMenu itself is changed by the Windows 11
      style
2023-12-25 00:48:29 +01:00
Martchus 71c1d794ab Fix AppStream validation tests 2023-11-14 02:15:28 +01:00
Martchus 59ec061580 Remove useless braces 2023-11-10 14:33:17 +01:00
Martchus 04a8905a83 Allow opening Syncthing directly when clicking on tray icon
This might be useful if minimalism is desired or to avoid positioning
issues on Wayland.
2023-11-10 14:33:03 +01:00
Martchus 9360bf8bc8 Fix grammar mistakes in German translation after replacing "Verzeichnis" with "Ordner" 2023-11-10 13:17:16 +01:00
Martchus 784630104d Save position and size of window after is has been moved/resized
* Remember new size after user resized the window
* Remember new position after user repositioned window and using explicit
  coordinates has been configured in the appearance settings
2023-10-06 21:03:40 +02:00
Martchus cdfa769c84 Disable resizing/moving for popups under X11 as it is not working
At least it wasn't working with KWin and leading to the popup not closing
correctly anymore.
2023-10-06 17:55:51 +02:00
Martchus a9cc948099 Allow resizing/moving tray widget
This might be useful on Wayland where positioning the popup is otherwise
not possible at all. Combined with a session restoration mechanism this
might actually be a feasible workaround. The user just needed to position
the popup once wherever it is wanted to show up and then the compositor
could remember that position.

Especially the resizing would also be useful on other platforms (and is by
the way also already possible when using the Plasmoid showing it as part of
the system tray Plasmoid).
2023-10-06 17:05:40 +02:00
Martchus 230532d15e Do the directory/folder replacement also in German translation 2023-09-18 22:34:30 +02:00
John Veness c2a0eee029 Change Directory to Folder in user-facing strings 2023-09-17 19:33:31 +01:00
Martchus abf1dd0748 Rename `SyncthingDeviceModel::IsOwnDevice` in accordance with recent UI changes 2023-09-16 23:09:48 +02:00
Martchus 5fa69e4f5a Rename `SyncthingDevStatus::OwnDevice` in accordance with UI change 2023-09-16 22:28:35 +02:00
Martchus e4bbe852bd Avoid CMake deprecation warning by bumping version 2023-07-23 21:05:22 +02:00
Martchus 8f481b0168 Update translations 2023-07-04 19:38:52 +02:00
Martchus 5b5b2811da Update translations 2023-07-03 00:56:45 +02:00
Martchus 4effd6045b Dynamically retranslate some aspects of the UI
There are still many places missing but this is a first step.
2023-07-03 00:56:19 +02:00