Commit Graph

20 Commits

Author SHA1 Message Date
Martchus 159d91bfdc Avoid warnings about implicit conversions/promotions when compiling with Clang 2024-05-19 22:31:20 +02:00
Martchus 96578c335d Avoid warning about double promotion when compiling with clang 2024-05-18 13:08:42 +02:00
Martchus 3fc7fbd542 Improve comment in web page code 2024-04-08 18:10:06 +02:00
Martchus 21144421de Fix showing external links via built-in web view
Pass profile to new web page (that is being created when a `target="blank"`
link is clicked) to avoid running into `Can not adopt content from a
different WebEngineProfile.`.
2024-04-08 18:07:27 +02:00
Martchus 57e3ad67ea Avoid inconsistent use of config defs in syncthingwidgets for unity builds
Otherwise unity builds fail due to macro redefinitions. It doesn't really
matter what name is used in the web view files anyway (as it just changes
some environment variables used for debugging).
2024-01-30 22:56:19 +01:00
Martchus c3a426a264 Fix compatibility with Qt 5 in web view code 2023-12-05 12:34:22 +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 b8b7986086 Fix build error with Qt < 5.14 2023-06-20 11:09:46 +02:00
Martchus 1d221120fe Apply clang-format 2023-03-31 22:46:48 +02:00
Martchus 3fd45accde Allow configuring custom command for launching Chromium-based browser 2023-03-31 22:46:25 +02:00
Martchus 7c93c21356 Document `chromiumBasedBrowserBinaries()` 2023-03-28 22:43:59 +02:00
Martchus 033cd21d83 Improve lookup of Chromium-based browser binary
* Consider Edge and Chrome as well
* Read the binary path from the "Application Registration" under Windows
  (see https://learn.microsoft.com/en-us/windows/win32/shell/app-registration)
2023-03-28 22:32:03 +02:00
Martchus db657bb1aa Use QByteArrayLiteral for such literals 2023-03-28 17:20:59 +02:00
Martchus 71a4f188eb Add window icon in error dialog of `openBrowserInAppMode()` 2023-03-28 00:05:03 +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 96e92f13a3 Avoid relying on symlink for include directories
Symlinks aren't working very well with Git under Windows so better avoid
them.
2023-02-27 18:27:33 +01:00