Commit Graph

418 Commits

Author SHA1 Message Date
Martchus e9135d735a Update translations 2023-04-29 21:08:29 +02:00
Martchus c9cd81311d Improve startup/shutdown behavior; add `--replace` CLI option
* Make functions in `main.cpp` static as they are not used by
  other units
* Delete the `TrayIcon` via an extra parent object that is
  deleted before the `QNetworkAccessManager` is deleted; otherwise
  the destruction of `SyncthingConnection` (which aborts pending
  replies) might access dangling `QNetworkReply` objects
* Improve error handling in `SingleInstance` code
* Allow to replace the current instance via the new `--replace`
  argument; this may be useful when creating an installer/updater
2023-04-29 21:07:30 +02:00
Martchus 58b8a4e540 Allow showing Syncthing UI in Chromium-based browser in "app mode"
See https://github.com/Martchus/syncthingtray/issues/178
2023-03-27 20:28:52 +02:00
Martchus 9566623651 Apply Qt settings during runtime
It is no longer required to restart the application to change settings like
the widget style and palette.
2023-03-26 21:32:53 +02:00
Martchus 70e94bcd3c Re-evaluate the default icon theme when the color palette changes
So far the Plasmoid is not covered. It would likely not be very useful
anyways because under GNU/Linux the default icon theme can be determined
from the system and thus the "fallback" default this change is about is not
effective.
2023-03-23 22:43:59 +01:00
Martchus a15c176b18 Remove symlink for README 2023-02-27 22:16:41 +01:00
Martchus b5d81eefc6 Avoid remaining symlinks for testfiles 2023-02-27 22:14:35 +01:00
Martchus 1b72e61c86 Allow to use a window without titlebar
This might look better than a popup on Windows 11 because we'd still get
the round window corners.
2023-02-18 21:27:09 +01:00
Martchus 5bf8a4e25a Update translations 2023-02-17 19:23:01 +01:00
Martchus 10c656cc5e Show error when settings cannot be restored or saved
* State the error type and location of the relevant file
* Help debugging problems related to settings
2023-02-17 19:20:10 +01:00
Martchus 243160d43a Don't hide `--show-wizard` argument anymore; it is no longer experimental 2023-02-11 17:37:49 +01:00
Martchus c7f6da6a17 Update translations 2023-01-30 16:29:29 +01:00
Martchus 4d96f791b6 Apply clang-format 2023-01-28 20:19:43 +01:00
Martchus 802937264b Simplify code by removing dialog parent 2023-01-28 18:35:50 +01:00
Martchus a40ccb0265 Fix broken download icon
* Use version for light theme as fallback
* Add to list of required icons used for bundling icon themes
2023-01-28 17:40:46 +01:00
Martchus e9eeb76578 Fix displaying QR-code in wizard when built-in launcher is used
In this case the connection from the setup detection is not the correct
one. The connection used to apply the settings should generally be used for
querying the QR-code.
2023-01-09 16:01:37 +01:00
Martchus 7d8c6e7114 Update translations 2022-12-10 12:07:45 +01:00
Martchus 4fc3777a9e Paint tray menu background as normal widget when shown as normal window 2022-12-10 12:07:06 +01:00
Martchus 24a9e63005 Apply clang-format 2022-12-10 12:06:07 +01:00
Martchus 66d485305b Avoid reference to concrete font (Noto Sans) 2022-12-06 21:36:14 +01:00
Martchus e3f230546d Adapt hack for context menu positioning issues to work in windowed mode 2022-11-29 23:41:18 +01:00
Martchus 6c89b2dc0a Allow disabling positioning at fallback coordinates
This just turns the "Otherwise assume …" label into a checkbox allowing to
disable the fallback behavior completely.
2022-11-29 23:33:28 +01:00
Martchus 71c56edfd8 Allow showing Syncthing Tray as normal application/window
* Remove experimental pinning feature again and instead allow using a
  normal window
    * Pinning made it inconvenient to close the (frameless) window again
    * Pinning required hiding/showing the window which didn't look very
      nice (and setting flags directly via `QWindow` didn't work as well)
* As normal application/window positioning issues on Wayland are less
  problematic (and those aren't going to be fixed any time soon, if at all)
2022-11-29 23:06:15 +01:00
Martchus f6845cd5c0 Use `quickwizard` icon consistently 2022-10-30 21:40:42 +01:00
Martchus 4357c4b5f6 Avoid warning about shadowing 2022-10-30 21:26:12 +01:00
Martchus 74580d382b Allow testing systemd integration with a test unit file 2022-10-22 13:01:25 +02:00
Martchus cd53a623f1 Prevent AppStream validation message `asv-content-rating-missing`
See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 21:01:06 +02:00
Martchus 2f41fc9337 Update translations 2022-10-11 19:33:15 +02:00
Martchus 65c12ba4f8 Revert accidental changes to `traywidget.ui` 2022-10-09 12:20:30 +02:00
Martchus 157aec85ea Let appstream screenshot URL point to raw images 2022-10-08 23:53:25 +02:00
Martchus 836f51d6f6 Update translations 2022-10-08 23:43:08 +02:00
Martchus 3d8f66fe8e Update screenshots in appstream file 2022-10-08 22:03:00 +02:00
Martchus 127cd71856 Avoid re-positioning when pinning 2022-10-07 23:22:15 +02:00
Martchus ace27f9e9c Fix saving pinned state persistently 2022-10-07 23:15:25 +02:00
Martchus 0086873684 Update translations 2022-10-07 22:59:46 +02:00
Martchus 9220d66add Allow pinning tray menu (still experimental) 2022-10-07 22:59:17 +02:00
Martchus d82bc710fd Allow using system icons instead of ForkAwesome icons
* Allow using icons from freedesktop.org icon theme for most ForkAwesome
  icons if available
* Let's not use it for the nested list of details in the models for now
* See https://github.com/Martchus/syncthingtray/issues/121
2022-10-07 00:20:50 +02:00
Martchus a45bd8e60e Update translations 2022-10-04 10:53:14 +02:00
Martchus 4896261ef9 Allow opening launcher settings from wizard in case of an error to check logs 2022-10-02 20:33:07 +02:00
Martchus b0d1197cb7 Implement launcher and systemd configuration in wizard 2022-10-02 19:24:26 +02:00
Martchus bd5b93d311 Implement completion of wizard
Applying settings is still only implemented for one of the cases.
2022-10-01 22:25:33 +02:00
Martchus 442aee992a Unify code for showing wizard 2022-10-01 20:25:21 +02:00
Martchus f290dec65c Develop wizard further 2022-10-01 18:11:48 +02:00
Martchus 2e961c489d Update translations 2022-09-05 22:02:01 +02:00
Martchus 66948336d5 Allow to disable tab texts (to shown only icons anymore)
When configuring a smaller size for the Qt Widgets based UI it might be
preferred to show only the icons instead of having the tab buttons
overflow.
2022-09-05 21:56:22 +02:00
Martchus 3bbbab035c Update translations 2022-08-25 22:33:59 +02:00
Martchus 9d28fbbefc Ensure icons in wizard's welcome page are present
* Provide icons for command link buttons because it looks rather bad when
  some of them are missing in the user's icon theme and are therefore not
  displayed at all
* Add icons to lists for bundling icons
2022-08-25 21:35:22 +02:00
Martchus 01f722c690 Unify code for about dialog image and attribution
It is the same for all components so define it at one place.
2022-08-25 20:35:02 +02:00
Martchus 800cbcc286 Add hidden flag to enable WIP features
Supposed to be used for the wizard while it is WIP.
2022-08-22 21:59:34 +02:00
Martchus 2e14d9d62c Update translations 2022-08-06 21:22:20 +02:00
Martchus 394af9bce7 Improve first launch message in preparation for adding a setup wizard 2022-08-06 21:08:55 +02:00
Martchus 04a4fe89ec Use `addSubArguments()` to set GUI sub arguments 2022-08-06 19:14:18 +02:00
Martchus 788a5b2947 Allow opening dir in file browser if path contains tilde
See https://github.com/Martchus/syncthingtray/issues/148
2022-08-02 20:15:24 +02:00
Martchus a49da56829 Update translations 2022-07-16 19:37:00 +02:00
Martchus 2139b204e3 Determine whether to use bright custom colors automatically 2022-07-16 19:28:31 +02:00
Martchus bfb7af18fe Avoid conflict between Syncthing's CLI `--help` arg and own `--help` arg 2022-06-26 11:27:46 +02:00
Martchus 6ae9015605 Update translations 2022-06-26 02:25:36 +02:00
Martchus a0923f8c1a Allow running Syncthing's CLI via Syncthing Tray when bundling libsyncthing 2022-06-26 02:25:23 +02:00
Martchus b709106d90 Use ConfigValueArgument and auto-syntax 2022-06-17 21:52:59 +02:00
Martchus dea8e5ae68 Fix single instance behavior if multiple users use syncthingtray in parallel
Create a distinct server for each user so they don't interfere with each
other. Otherwise the instance of the second user tries to connect to the
instance started by the first user which fails and therefore breaks the
single instance behavior for the second user.
2022-06-17 21:46:06 +02:00
Martchus 3bcbd2285d Allow avoiding a second tray icon via `--single-instance`
See https://github.com/Martchus/syncthingtray/issues/142
2022-06-16 17:37:49 +02:00
Martchus a90e79b78f Enable virtual terminal processing or disable ANSI escape codes
See https://github.com/Martchus/syncthingtray/issues/132
2022-06-07 16:52:17 +02:00
Martchus eb94cfb3ed Improve screenshot-related section headings in README
* Don't put customized icons under Plasma section; it is not
  Plasma-specific
* Rename "Under Plasma 5" to "Plasmoid" to be more specific
2022-06-06 18:27:09 +02:00
Martchus fb1cef929e Update translations 2022-05-23 23:01:42 +02:00
Nicholas D Steeves fd5c59222a
Merge PNG and SVG icon from Syncthing v1.20.1
From https://github.com/syncthing/syncthing.git

git checkout v1.20.1 -- LICENSE assets/logo-256.png \
  assets/logo-only.svg

mv LICENSE LICENSE.MPL-2.0
[resurrect Syncthing Tray LICENSE in magit]

mv assets/logo-256.png \
  tray/resources/icons/hicolor/256x256/apps/syncthingtray.png

cp -a assets/logo-only.svg \
  tray/resources/icons/hicolor/scalable/apps/syncthingtray.svg
[the upstream copy was identical to Syncthing tray's copy]

mv assets/logo-only.svg \
  widgets/resources/icons/hicolor/scalable/app/syncthingtray.svg
2022-05-18 16:10:43 -04:00
Martchus be9d963a82 Add internal errors to menu/dialog even if the notification is disabled 2022-05-04 00:24:26 +02:00
Martchus 5eb5a6dc60 Update translations 2022-05-03 23:27:29 +02:00
Martchus 28aa9a516c Have directory ID still accessible in recent changes despite showing name
Show it as tool tip and allow copying it via the context menu
2022-04-09 14:52:00 +02:00
[G3NSVRV] 1244b8a8cf
Update dark-palette.ini
eye friendly
2022-03-27 22:41:47 -03:00
Martchus e749097110 Update translations 2022-03-20 17:02:06 +01:00
Martchus 3d5286bf26 Avoid mixing different icon types in context menu 2022-03-20 17:01:48 +01:00
Martchus 825ee28300 Adapt to breaking change in Qt 6.2.3 2022-02-07 17:27:02 +01:00
Martchus 0243068a20 Remove "Letzte" in "Letzte Änderungen" as it takes too much space 2021-12-03 22:00:05 +01:00
Martchus 3d2930cb1d Use `file-text` icon for log as it looks more in-line with the other icons 2021-11-13 22:49:45 +01:00
Martchus e81166cd79 Fix several warnings when building against Qt 6 2021-11-04 00:16:27 +01:00
Martchus 5b9b69625b Remove surplus brace in about dialog 2021-11-04 00:04:41 +01:00
Martchus c1f3e57a9c Use ForkAwesome icons in consistency with Syncthing's official GUI
* Use single cog for settings (instead of cogs)
* Use "refresh" for re-scanning all dirs (instead of search)
2021-11-02 18:01:00 +01:00
Martchus 5ef0523458 Remove icons which are no longer needed 2021-10-16 21:28:59 +02:00
Martchus 4dc9f08639 Update translations 2021-10-15 22:21:40 +02:00
Martchus 9e3cd95b13 Apply clang-format 2021-10-15 22:18:54 +02:00
Martchus 7b6121cb05 Use ForkAwesome icons more consistently in tray widget
Mixing ForkAwesome icons too much with the regular icon theme doesn't look
good (depending on the theme) so let's prefer ForkAwesome icons within the
tray widget which already uses ForkAwesome in some places like certain
buttons and models. This makes it also look more in-line with Syncthing's
web UI. For context menus and dialogs let's prefer system icons because
there are hardly any ForkAwesome icons used/required so far and it is maybe
nicer to be in-line with the system here.
2021-10-15 00:23:22 +02:00
Martchus 3bf50fb414 Use Syncthing icon from ForkAwesome for buttons/menus
This should look more consistent than abusing the state-specific "idling"
icon.
2021-10-10 20:44:22 +02:00
Martchus 77f0a8d5ae Update translations 2021-10-09 01:15:49 +02:00
Martchus 0b801bc505 Make internal errors also accessible when starting with `--windowed`
* Show the button for the internal errors dialog in the tray widget like it
  is done when the `UNIFY_TRAY_MENUS` config is activated
2021-10-09 01:14:54 +02:00
Martchus c3182ff256 Apply cmake-format 2021-10-07 18:28:13 +02:00
Martchus 8f59dc12d3
Merge pull request #114 from coxde/zh_CN
Add zh_CN translation
2021-10-06 20:19:15 +02:00
Julianne420 ddefa35daa Add zh_CN translation 2021-10-07 01:20:24 +08:00
Martchus cf99b656f0 Link against the qtforkawesomeiconengine plugin when it is a static library
This should fix the AppImage build where my own libraries (including
plugins) are built as static libraries but static linkage is not generally
enabled.
2021-10-06 17:19:15 +02:00
Martchus 52217814f1 Apply cmake-format 2021-10-03 23:07:12 +02:00
Hannah Rittich 2968898195 Allow finding of packages in namespaces 2021-10-03 02:07:18 +02:00
Martchus 4517ea41b6 Update translations 2021-10-02 20:31:56 +02:00
Martchus 44d69cd3bf Remove the dark stylesheet as it is not working well and a different palette is enough 2021-09-17 22:23:29 +02:00
Martchus dde61bb783 Document workaround for missing support for Windows 10 dark mode 2021-09-17 22:22:32 +02:00
Martchus b7a8a73f2a Import static icon engine plugin 2021-09-16 21:33:46 +02:00
Martchus a8c22e4168 Remove no longer used "view-barcode" icon 2021-09-15 20:38:21 +02:00
Martchus f384d2a496 Use "qrcode" icon from ForkAwesome
It fits better than "view-barcode" from the icon theme. This also tests
using ForkAwesome icons via the custom icon engine. Unfortunately this
does not seem to work within the Plasmoid so far.
2021-09-15 20:37:21 +02:00
Martchus 66448a0774 Adapt to changes in qtforkawesome 2021-09-11 16:45:09 +02:00
Martchus 43fcb9f71b Migrate to ForkAwesome
* FontAwesome uses a propritary build system so let's move to its fork
  ForkAwesome similar to Syncthing
    * See https://github.com/syncthing/syncthing/pull/5237
* Bundle the font file instead of having the SVGs directly within
  Syncthing Tray's own repository
2021-09-11 02:20:38 +02:00
Martchus a1fddfcb07 Apply clang-format/cmake-format 2021-08-03 14:06:17 +02:00
Martchus 0ef3b80447 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:29:49 +02:00