Version: unspecified (using Devel) OS: Linux Get rid of hardcoded icon sizes Reproducible: Always Actual Results: In the systemsettings->application appearance->icons->advanced dialog you can determine the size (in pixel) of some icons. Expected Results: The icon sizes should not be hardcoded. This is important for use cases (see Bug 272266) where you use different screen (font) resolutions. Example: The widget style "Skulpture" calculates the icon sizes for the icons in QMenu/KMenu depending of the font (dpi) sizes. If you use bigger fonts for your menu, the icons are displayed bigger. However, elements that are part of kdeui (for example the toolbar buttons) use the fixed pixel sizes of systemsettings. But it should adopt to the current font (dpi) size. Maybe in systemsettings there could be values like "very small", "small", "normal", "big" ... instead of pixel sizes, and these could be adopted to the dpi? Or the icon size options could even be removed and the decision is left to QStyle? Could this be a feature for KDE 5? This is a spin-off bug of Bug 272266
With the current Qt SVG render capabilities, it is unfortunately not possible to generate the pixmaps directly from the SVG files, so only pixmaps can be scaled. The big problem here is that icon scaling results in very low quality icons because the icons get blurry. This is the reason why icon themes come in discrete pre-generated sizes and the user is able to pick a size which she prefers. Skulpture simply ignores the Small and Large (=Dialog) icon size set in System Settings, which is wrong IMHO, but there were no such settings when I wrote it. To resolve this issue, we either need better SVG support (including filters for the shadows etc.), or a completely new icon format that supports hinted scaling similar to fonts. Indeed KDE 5 material. What this bug probably should be about is a much worse situation in some KDE components, mostly very old code and Kickoff: Hardcoded icon sizes, where the user has NO way to change them at all. Some bugs are already reported, but there might be more cases where applications or KDE components request hardcoded sizes.
I'd like to see this fixed too.
(In reply to Christoph Feck from comment #1) > To resolve this issue, we either need better SVG support (including filters > for the shadows etc.), or a completely new icon format that supports hinted > scaling similar to fonts. Indeed KDE 5 material. It's rather surprising that Scalable Vector Graphics can't be scaled using their vectorial nature. Is there any progress about this, now that we are already in KDE 5?
Actually, the Breeze icons are SVG files. They simply omit the features QtSVG does not support.
Current KDE versions use SVG icons that scale nicely. Closing.