Commit Graph

131 Commits

Author SHA1 Message Date
Martchus 9e4208fc0d Add simple view for showing ignore patterns 2024-05-05 14:47:50 +02:00
Martchus 38eb689b69 Allow showing remote file browser from Plasmoid 2024-04-06 19:35:12 +02:00
Denis Shaposhnikov f596312047
Fix QT6 build with disabled SYSTEMD_SUPPORT (#244)
See https://github.com/Martchus/syncthingtray/issues/244
2024-04-05 22:31:46 +02:00
Martchus dff6bcab67 Apply change of `global.h` template 2024-02-22 19:43:14 +01:00
Martchus abf1ad6c5a Support option for metered networks in Plasmoid as well 2024-02-19 18:34:36 +01:00
Martchus 29fad4918b Fix typos via codespell 2024-02-15 18:45:05 +01:00
Martchus 0f1bcae534 Fix build with c++utilities change to add header for compile definitions
* Add include directory for testhelper library manually as using the
  imported target was not possibly
* Fix visibility when using libsyncthing in syncthingwidgets
* Update changed global headers along the way
2024-01-30 22:35:47 +01:00
Martchus 01fe57492c Add and update tab-stops explicitly where default order is wrong 2024-01-07 22:30:48 +01:00
Martchus dbd1e723d4 Fix building Plasmoid after Plasma 6 beta release 2023-11-30 20:10:45 +01:00
Martchus 71c1d794ab Fix AppStream validation tests 2023-11-14 02:15:28 +01:00
Martchus e5a55b1809 Avoid warnings about possibly mislabled slots 2023-11-14 00:06:34 +01:00
Martchus 85c180d625 Fix checks for Plasma 6
The alpha defines the macros

```
#define PLASMA_VERSION_MAJOR 5
#define PLASMA_VERSION_MINOR 27
#define PLASMA_VERSION_PATCH 80
```

so the current version checks (which were created based on the macros from
a development build) are not working. I have no clue how these numbers are
crafted so it is supposedly the easiest to just check for Qt 6 as Qt itself
uses a sane versioning system.
2023-11-13 23:32:44 +01:00
John Veness c2a0eee029 Change Directory to Folder in user-facing strings 2023-09-17 19:33:31 +01:00
Martchus 4a109eefb8 Add Plasmoid files not used in current build to excluded files
So these files are still considered for tidying and translations
2023-07-14 02:42:04 +02:00
Martchus 912dca1564 Port Plasmoid to Plasma 6
* Split QML part into distinct versions for Plasma 5 and 6 as there are too
  many differences and `#ifdef` is not possible
* Change API usage according to
  https://develop.kde.org/docs/plasma/widget/porting_kf6
* Port "contextualActions" to API documented on
  https://invent.kde.org/frameworks/plasma-framework/-/blob/master/src/plasma/applet.h
* Document testing
* Add FIXMEs/notes for remaining problems; there are likely many more,
  though
2023-07-13 01:01:02 +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
Martchus 13730ab933 Ignore "Forbidden" errors shortly after Syncthing start
Not sure why I'm getting

```
Fehler beim Abfragen der Syncthing-Konfiguration: Error transferring http://127.0.0.1:8384/rest/system/config - server replied: Forbidden
URL der Anfrage: http://127.0.0.1:8384/rest/system/config
```

one one of my setups but this kind of error can likely be ignored shortly
after the start similar to other types of errors.
2023-06-30 12:43:06 +02:00
Martchus 0c733837ce Fix showing directory errors in plasmoid 2023-04-26 20:30:23 +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 5a45a46450 Make `addPlasmoidSpecificNote()` static 2023-03-26 21:08:42 +02: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 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 31038135ad Show wizard on the first launch also for the plasmoid 2022-11-10 20:50:31 +01:00
Martchus 056a8049f7 Update info about Plasmoid-sizing for Plasma 5.26 2022-10-17 23:19:28 +02:00
Martchus b0e6c6d574 Add release info in Plasmoid AppStream template 2022-10-13 19:34:49 +02:00
Martchus 39464d0613 Use same indentation in Plasmomid AppStream template as in regular template 2022-10-13 19:34:24 +02:00
Martchus 66b33fd7d2 Add special AppStream template for Plasmoid
It needs to be an add-on extending the Plasma shell. As this is a special
case it makes sense to add a special template overriding the one from
c++utilities.
2022-10-13 00:06:04 +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 157aec85ea Let appstream screenshot URL point to raw images 2022-10-08 23:53:25 +02:00
Martchus 5fd07ee1c0 Allow opening wizard from Plasmoid 2022-10-08 23:42:29 +02:00
Martchus a0297f67ba Add setting to keep track whether it is the Plasmoid 2022-10-08 22:20:06 +02:00
Martchus d4720f464f Add appstream metadata body for Plasmoid 2022-10-08 22:11:06 +02:00
Martchus 4e19c98471 Add appstream file for Plasmoid 2022-10-08 21:56:46 +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 99a7bd1a01 Hide tab texts in Plasmoid by default to avoid problematic overflow behavior 2022-09-05 22:54:28 +02:00
Martchus 8ea158aa23 Fix auto-detection of dark color theme in Plasmoid
* Remove `0 &&` in condition for making `QPalette` from Plasma theme
* Set `WindowText`/`Window` of `QPalette` in legacy case so
  `isPaletteDark()` works
* Set the icon manager's palette from the beginning (and not only if the
  Plasma theme changes)
2022-09-05 22:18:41 +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 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 2139b204e3 Determine whether to use bright custom colors automatically 2022-07-16 19:28:31 +02:00
Martchus 8ec133e62d Make the Plasmoid's Fork Awesome icon coloring react to theme changes
* Make the Fork Awesome image provider URL a property and change its value
  if the Plasmoid's theme changes to cause Qt Quick to redraw images
* Turn caching of Image objects off so Qt Quick actually fetches the images
  again from the image provider
* Change the URL only back after returning to the event loop; otherwise Qt
  Quick apparently does not react to the property change
* See https://github.com/Martchus/syncthingtray/issues/126
2022-05-30 20:36:03 +02:00
Martchus be9d963a82 Add internal errors to menu/dialog even if the notification is disabled 2022-05-04 00:24:26 +02:00
Martchus db2740d36c Fix compilation against older Plasma versions 2022-03-02 12:22:57 +01:00
Martchus 3e38a9917e Use colors from Plasma theme in Plasmoid
One might configure a light color theme for applications and a dark theme
for Plasma (or vice versa) so this is an important difference, see
https://github.com/Martchus/syncthingtray/issues/126.
2022-02-02 22:38:36 +01:00
Martchus cb1071b3ad Improve Plasmoid to make it look more like official Plasmoids
* Use header (with integrated buttons when shown as part of the system tray
  Plasmoid)
* Use less space so it fits into the system tray plasmoid (at least on a
  full HD screen with 96 dpi)
* Show action for internal errors only if there are internal errors (like
  in the Qt Widgets based GUI)
* Port away from deprecated tab bar (which is not used in official
  Plasmoids anymore as well)
* Simplify code for ensuring the minimum size as configured (still does
  not work within the system tray Plasmoid)
2021-11-30 19:43:26 +01:00
Martchus 0651323da4 Use ForkAwesome consistently in Plasmoid as well 2021-10-15 22:18:30 +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
Hannah Rittich 2968898195 Allow finding of packages in namespaces 2021-10-03 02:07:18 +02:00
Martchus da470c4ddc Ignore Plasma deprecation warnings to still be able to treat warnings as errors
Not sure how to fix the errors because Plasma's own applets haven't been
ported yet.
2021-09-16 22:58:52 +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