Commit Graph

425 Commits

Author SHA1 Message Date
Martchus 8d9b6d845d WIP: Avoid re-configuring built-in icons all the time
It is quite slow and it should be fine doing it only once one
the first configuration
2022-07-18 23:14:26 +02:00
Martchus 885323e367 Add OptionPageWidget with `paletteChanged()` signal 2022-07-16 18:44:47 +02:00
Martchus 0f7a4eb059 Add function to determine whether palette is dark 2022-07-16 18:44:47 +02:00
Martchus 6e5a9419be Bump minor version 2022-07-16 18:44:47 +02:00
Martchus b5af7fed34 Update translations 2022-06-09 21:08:38 +02:00
Martchus 29b2267711 Fix invalid use of freed object in settings dialog test 2022-06-09 21:01:58 +02:00
Martchus 9dd375abe9 Avoid creating 2nd instance of Qt-`OptionCategory` when invoking `showCategory()` 2022-06-09 20:24:12 +02:00
Martchus d4e35c28a3 Fix typo 2022-06-09 20:19:27 +02:00
Martchus 13d2049524 Fix invalid test; `SettingsDialog` takes ownership of `OptionCategory` 2022-06-09 20:10:11 +02:00
Martchus 38b748e04b Increment patch version 2022-06-09 20:08:42 +02:00
Martchus 752c8cdc71 Link builds using static Qt also against Wayland shell integration plugins
These are required; the Wayland integration plugin alone is not sufficient.
2022-05-02 20:15:07 +02:00
Martchus b709ab887f Default-initialize FONTCONFIG_PATH if not set
Fixes font loading in some environments
2022-05-02 00:55:07 +02:00
Martchus 6564932b64 Fix applying selected custom font 2022-05-01 21:57:59 +02:00
Martchus 8a4b865c28 Improve linking against static Qt plugins
* Detect a static Qt build and link against Qt plugins automatically in
  that case (without the necassity to set `STATIC_LINKAGE`)
* Add offscreen support on UNIX platforms as it is useful for testing on
  headless systems
* Add wayland support if available
* Populate `QT_TEST_LIBRARIES` in case we're not building an app because
  the plugins are still required when building tests
2022-04-28 21:42:33 +02:00
Martchus 605dca019c Add stalebot config 2022-04-12 01:03:31 +02:00
Martchus 6e57980c2b Add copyright notice 2022-04-05 20:10:18 +02:00
Martchus cbac69cc2d Clarify that license is "GPL-2-or-later" 2022-03-15 21:31:25 +01:00
Martchus 6640d16557 Add properties to PaletteEditor and ColorButton 2022-03-08 00:37:47 +01:00
Martchus de3379d9b7 Ensure the "Confirm" button is always the default one to confirming via enter works
Not sure why this ceased to work in some environments but this change fixes
it. It is still possible to abort via ESC.
2022-01-26 01:00:47 +01:00
Martchus 1e1fe4ae07 Update translations 2021-12-07 13:39:00 +01:00
Martchus b3896eb65e Check for relative paths also under install prefix
In the "normal" case none of the other variables are set
and thus relative paths (e.g. for the plugin directory)
cannot be resolved. This should still work when
CMAKE_FIND_ROOT_PATH is set beause we still check within
the other locations.
2021-11-04 23:22:26 +01:00
Martchus 1c0d6f166c Infer type of midRef's 3rd argument to be equivalent to the 2nd arg type 2021-11-04 00:15:24 +01:00
Martchus d771646af3 Set `Qt::AA_EnableHighDpiScaling` only before QGuiApplication is constructed
Otherwise it is too late anyways and Qt might print a warning.
2021-11-04 00:10:13 +01:00
Martchus a2482ef37c Avoid several warnings when building against Qt 6 2021-11-04 00:06:15 +01:00
Martchus 2fb056e0b5 Add file for zh_CN translation to project file 2021-10-07 18:27:43 +02:00
Martchus 660a5cec69 Bump patch version 2021-10-07 18:23:27 +02:00
Martchus 3c17897a98
Merge pull request #6 from coxde/zh_CN
Add zh_CN translation
2021-10-06 20:15:32 +02:00
Your Name 808e0dd399 Add zh_CN translation 2021-10-07 01:47:20 +08:00
Martchus 684e94e162 Apply cmake-format 2021-10-03 23:06:52 +02:00
Martchus da3d406ed0
Merge pull request #5 from hrittich/upstream-patches
Allow to find packages in namespaces
2021-10-02 22:22:45 +02:00
Hannah Rittich 73a5439381 Allow to find packages in namespaces 2021-10-02 21:51:00 +02:00
Martchus a1a1984075 Update translations 2021-10-02 19:46:36 +02:00
Martchus 9b559b153c Fix TLS support for static builds when using Qt 6.2.0 or newer
This Qt release "pluginized" the backends for TLS support so we need to
make sure to link against at least one TLS plugin since all of my
applications which use Qt Network expect TLS to work.
2021-10-02 19:39:51 +02:00
Martchus b51ac8c322 Improve comments for configuring Qt style plugins 2021-10-02 19:28:54 +02:00
Martchus 836801fb39 Allow saving/loading the color palette config to/from an external file 2021-09-17 00:22:32 +02:00
Martchus b16caee532 Fix palette editor
* Fix missing signal connection; when renaming slots the auto-connections
  were lost
* Remove handlers which aren't used anyways
2021-09-16 23:23:10 +02:00
Martchus 7c7704e4e5 Add `#include <QtWebEngineWidgetsVersion>` to `webviewincludes.h.in`
Used in Syncthing Tray to distinguish between Qt 5 and Qt 6.
2021-08-07 18:30:01 +02:00
Martchus f4b344bd2b Update translations 2021-07-03 19:17:19 +02:00
Martchus 67e3d8b4af Apply cmake-format 2021-07-03 19:14:24 +02:00
Martchus 7765e6f062 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:14:13 +02:00
Martchus 4e5068900f Do not use a tool window for about dialog
* With the Lightly style (and its default color palette) the about dialog
  background is otherwise transparent
* The frame doesn't look that nice anymore under Windows 10 anyways
2021-04-13 21:52:40 +02:00
Martchus 7792012916 Avoid error with CMake < 3.12 2021-04-06 18:11:21 +02:00
Martchus 144cec5562 Apply clang-format 2021-04-06 17:50:22 +02:00
Martchus 0c07bdb10c Consider window frame size within centerWidgetAvoidingOverflow() 2021-03-24 21:24:15 +01:00
Martchus 3da940fe5b Add function to center a widget avoiding overflow 2021-03-24 14:42:56 +01:00
Martchus 55341a7305 Prevent memory leaks found via valgrind 2021-03-23 16:46:55 +01:00
Martchus abb9f5790a Add qstringFromStdStringView() 2021-03-20 21:02:37 +01:00
Martchus 25062fcf01 Fix/silence warnings 2021-03-20 21:02:00 +01:00
Martchus 4cadb04b44 Apply CMake format 2021-03-20 21:01:24 +01:00
Martchus 5960c21558 Fix finding linguist tools macro when cross compiling with Qt 5
When cross compiling with Qt 5 the QT_HOST_PATH variable might
be set as well but the module might not be installed within the
host path. So let's do the usual lookup first and fallback to
QT_HOST_PATH only if that doesn't work.
2021-01-06 23:44:09 +01:00