Commit Graph

13 Commits

Author SHA1 Message Date
Martchus 43435a1b6a Avoid warning about implicit conversion when compiling with clang 2024-05-18 13:06:39 +02:00
Martchus d363a5c9b0 Apply clang-format 2024-02-29 14:10:01 +01:00
Martchus bb2030c964 Avoid too big icons in certain cases
When setting the scale factor of the primary screen to e.g. 100 % and the
scale factor of the second screen to something higher like 200 % the icons
appear too big on buttons and tabs. This is because icons are apparently
just rendered with the required size and the scale factor should therefore
not be applied.

This change adds overloads to specify a scale factor manually and uses a
scale factor of 1.0 for icons. The icons do not look blurry afterwards but
are also not too big anymore in the mentioned case. So this is probably how
it is supposed to be done.
2024-02-22 00:59:42 +01:00
Martchus 44776c210e Allow associating a paint device with the renderer for device-pixel-ratio 2024-02-22 00:59:42 +01:00
Martchus 48827d29d5 Avoid warning about shadowing variable 2022-10-30 21:23:10 +01:00
Martchus 5e614118d3 Allow clearing overrides 2022-10-16 15:12:44 +02:00
Martchus 34aacf236b Allow specifying icon for an override directly 2022-10-07 00:34:27 +02:00
Martchus 0add8e8f91 Improve theme override
* Add caching
* Allow adding multiple icon names
2022-10-06 23:21:59 +02:00
Martchus 855b3af38b Add experimental theme override
See https://github.com/Martchus/syncthingtray/issues/121
2022-10-03 14:34:17 +02:00
Martchus 2fcc5debcd Add global renderer instance to allow accessing renderer of icon engine 2022-09-18 14:51:23 +02:00
Martchus 9b71eff21b Mark all renderer functions as const as they don't change the object 2021-10-15 22:57:19 +02:00
Martchus fbf820d538 Add a basic QIconEnginePlugin for ForkAwesome 2021-09-13 20:57:23 +02:00
Martchus 5e099fc14b Move files into sub directory to be able to add additional targets later 2021-09-13 20:50:14 +02:00