Commit Graph

8 Commits

Author SHA1 Message Date
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 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 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 5e099fc14b Move files into sub directory to be able to add additional targets later 2021-09-13 20:50:14 +02:00