Commit Graph

13 Commits

Author SHA1 Message Date
Martchus ef08f63715 Apply change of `global.h` template 2024-02-22 19:42:43 +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 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 0c342a5055 Fix compilation against Qt 5.6 2021-10-06 01:00:23 +02:00
Martchus ebbce53c0d Apply cmake-format 2021-10-03 23:06:33 +02:00
Hannah Rittich b8e9f786b7 Allow to find packages in namespaces 2021-10-03 19:22:55 +02:00
Martchus 546fb0ec56 Apply clang-format 2021-09-22 11:16:50 +02:00
Martchus cbcf98696f Ensure non-static icon engine plugin does not miss font of static qtforkawesome 2021-09-16 18:42:45 +02:00
Martchus cc1c8b35f8 Rename the class for the icon engine plugin so it is less likely to cause name conflicts
There might be some global objects created just based on the class name
without the namespace.
2021-09-16 18:35:05 +02:00
Martchus da639c816a Deduce default color from current palette or style 2021-09-15 19:56:09 +02:00
Martchus d83eb91df0 Support config suffix when building icon engine 2021-09-13 22:01:17 +02:00
Martchus fbf820d538 Add a basic QIconEnginePlugin for ForkAwesome 2021-09-13 20:57:23 +02:00