Commit Graph

1836 Commits

Author SHA1 Message Date
Martchus 8aefad41ab Allow compiling the Syncthing library interface with MSVC
I haven't tested linking and execution yet; it would probably require to
use e.g. `mingw-w64-ucrt-x86_64-go` from MSYS2 (instead of
`mingw-w64-x86_64-go` where the stdlib clashes).
2023-12-30 19:23:56 +01:00
Martchus bf884ba4cb Make commands for compiling Syncthing itself more portable
* Use CMake's command mode to set environment variables
* Only make use of `CMAKE_RANLIB` if set
* Avoid using the compiler/tools/flags from CMake via cgo when building
  with MSVC as this doesn't work; this is problematic because stdlibs will
  not necassarily match but this way we can at least compile the static
  library
2023-12-30 19:19:53 +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 97b4ccfd4d Document the command-line interface 2023-12-24 17:15:39 +01:00
Martchus 26f468471a Revert "Use `QWizard::AeroStyle` also with Qt 6.7's `windows11` style"
This reverts commit 8cac56c246 and extends
the related comment as the new Windows 11 style actually supports custom
palettes and then wizard's aero style breaks in the same way as with
Fusion.
2023-12-23 23:51:44 +01:00
Martchus 549be45b55 Mock setting the autostart path in the wizard test
This test would keep the autostart disabled but override an existing
autostart entry (see https://github.com/Martchus/syncthingtray/issues/221).
With this change it will no longer override an existing entry. Reading and
writing the autostart entry is now mocked and properly checked.
2023-12-22 17:33:21 +01:00
Martchus e2c1f4ebe4 Fix rendering issues with Syncthing icon with Qt 6.7.0beta1
It looks like Qt Svg supports masking as of 6.7 which revealed a bug in the
code for making Syncthing icons. The mask for the emblem area was also
accidentally applied in case no emblem is shown. This change adds the mask
only when an emblem is shown.
2023-12-21 18:50:30 +01:00
Martchus 51e266fbac Fix compilation with Qt 6.7.0beta1
Fix the wrong placement of the `-->`; not sure why this was not detected as
invalid XML before.
2023-12-21 18:24:50 +01:00
Martchus 8cac56c246 Use `QWizard::AeroStyle` also with Qt 6.7's `windows11` style
This is likely going to work as the `windows11` style seems to be a
continuation of the `windowsvista` so let's give it a try.
2023-12-15 15:50:08 +01:00
Martchus 14bdc91388 Bump patch version 2023-12-15 15:47:07 +01:00
Martchus 53db52d41f Update release date 2023-12-11 21:21:37 +01:00
Martchus 81e9221cfb Update translations 2023-12-11 21:21:37 +01:00
Martchus 11218ee4d5 Extend README sections about configuration
This should clear up questions that have recently been asked in the forum
and GitHub issues.
2023-12-11 21:21:37 +01:00
Martchus 257874778b Add remark about Windows 7 support in the README 2023-12-11 20:02:30 +01:00
Martchus bb4d3847be Update libsyncthing to 1.27.1 2023-12-11 10:51:27 +01:00
Martchus efa6775369 Update lookup of Syncthing config dir for Unix platforms
* Adapt to Syncthing commit b5082f6af8b0a70afd3bc42977dad26920e72b68
* See https://github.com/Martchus/syncthingtray/issues/216
  and https://github.com/syncthing/syncthing/issues/9178
2023-12-10 12:39:53 +01:00
Martchus 9665a18b4f Update release date 2023-12-10 12:19:05 +01:00
Martchus 34fe529859 Bump patch version 2023-12-10 12:18:32 +01:00
Martchus c3a426a264 Fix compatibility with Qt 5 in web view code 2023-12-05 12:34:22 +01:00
Martchus d327daa9d4 Update release date 2023-12-05 11:48:52 +01:00
Martchus a125ac46e4 Update translations 2023-12-05 11:48:27 +01:00
Martchus 53bc7de0c7 Update libsyncthing to v1.27.0 2023-12-05 11:21:56 +01:00
Martchus 134aa448f7 Always customize scrollbars in built-in web view
* Use colors from palette; with this the custom scrollbars should always
  be a plus (and not only when the Breeze style is used)
* React to palette changes at runtime
2023-12-03 21:15:29 +01:00
Martchus 01dceb588a Allow configuring web view console logging via environment variable 2023-12-03 21:02:34 +01:00
Martchus 2ceb9a31b0 Fix clazy warning about usage of `arg()` 2023-12-03 18:56:43 +01:00
Martchus 6d81d33174 Style scroll bars of built-in web view according to Breeze style if used
* The code is disabled under many platforms where the Breeze style is
  unlikely to be used anyways.
* The code is disabled if Qt is older than 6.1 because only then the name
  of the current style can be determined.
2023-12-02 19:19:18 +01:00
Martchus a6f0c2f5e1 Improve logging JavaScript messages of built-in web view
* Don't show configuration warning when enabled
* Log messages of all levels and log level when using Qt WebEngine
2023-12-02 19:07:00 +01:00
Martchus dbd1e723d4 Fix building Plasmoid after Plasma 6 beta release 2023-11-30 20:10:45 +01:00
Martchus eaf8d6d164 Mention PLASMA_ENABLE_QML_DEBUG in the Plasmoid testing docs
This variable might be useful and now seems to be supported by
`plasmawindowed`, see
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3237.
2023-11-26 17:06:06 +01:00
Martchus 29043b2904 Set X-Plasma-API-Minimum-Version for Plasma 6 version of Plasmoid
This seems to be required as of
https://invent.kde.org/plasma/libplasma/-/merge_requests/977
and other Plasmoids set it to 6.0 as well, e.g.
https://invent.kde.org/plasma/plasma-nm/-/blob/master/applet/metadata.json.
2023-11-26 16:57:52 +01:00
Martchus becf6e873b Enable timeout for long-polling requests by default
This setting does work quite well in my testing so far and it can help with
the issue of the connection becoming stale (see
https://github.com/Martchus/syncthingtray/issues/209).
2023-11-25 23:31:42 +01:00
Martchus d1a1c80ed5 Fix install path of KIO plugin 2023-11-22 00:39:46 +01:00
Martchus 57354eca0d Bump patch version 2023-11-22 00:39:24 +01:00
Martchus e80200f7df Fix weird highlighting behavior of list items in Plasma 6 version of Plasmoid
* Simplify `TopLevelItem` to what is actually needed to make it easier to
  understand
* Use `onEntered` instead of `onContainsMouseChanged` which apparently
  works better (with `onContainsMouseChanged` the selection/highlighting
  did not always work reliably)
2023-11-21 23:31:03 +01:00
Martchus fe20167e5b Avoid duplicated CMake code to determine KF version for KIO plugin 2023-11-21 22:19:24 +01:00
Martchus e0bdc7e33c Update section about High-DPI scaling on Plasmoid 2023-11-21 22:02:24 +01:00
Martchus 4370c842da Update release date 2023-11-21 21:51:22 +01:00
Martchus 16ebd3beba Consider KDE integrations working under KDE 6
Of course there might still be breaking changes until the final release but
so far it looks good enough.
2023-11-20 23:49:47 +01:00
Martchus a92067fc7b Update documentation for testing KIO plugin for KF6 2023-11-20 23:37:05 +01:00
Martchus 0fb7929b0f Port meta-data handling of KIO plugin to KF6 2023-11-20 23:26:38 +01:00
Martchus b78c774898 Improve Plasma 6 version of Plasmoid 2023-11-20 20:30:29 +01:00
Martchus c721e0a5cf State minimum required Windows 10 version 2023-11-18 21:42:50 +01:00
Martchus 243c0446bd Update outdated README section about DPI awareness under Windows 2023-11-18 21:25:30 +01:00
Martchus 6962037584 Add remark about Plasma 6
Porting to Plasma 6 seems more difficult than anticipated so let's be clear
that only Plasma 5 is supported. Reference the porting guide for future
reference; maybe it makes sense to look into this again in the future.
2023-11-17 01:35:02 +01:00
Martchus e697c4e2a7 Update libsyncthing to v1.26.1 2023-11-15 14:21:22 +01:00
Martchus 71c1d794ab Fix AppStream validation tests 2023-11-14 02:15:28 +01:00
Martchus 08b2c872d6 Improve Plasmoid testing script and documentation 2023-11-14 01:52:12 +01:00
Martchus 237b4d0e50 Port Plasma 6 version of Plasmoid to changes in alpha release of Plasma 2023-11-14 01:50:24 +01:00
Martchus e5a55b1809 Avoid warnings about possibly mislabled slots 2023-11-14 00:06:34 +01:00
Martchus 2c35fa8290 Adapt setup of QT_PLUGIN_PATH in Plasmoid test script to Plasma 6 2023-11-13 23:57:16 +01:00