Commit Graph

6 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 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 546fb0ec56 Apply clang-format 2021-09-22 11:16:50 +02:00
Martchus da639c816a Deduce default color from current palette or style 2021-09-15 19:56:09 +02:00
Martchus fbf820d538 Add a basic QIconEnginePlugin for ForkAwesome 2021-09-13 20:57:23 +02:00