Bug 154335

Summary: Scale icons (with SVG sources) smoothly
Product: [Plasma] plasma4 Reporter: Simon St James <kdedevel>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Current icons scaling vs optimal

Description Simon St James 2007-12-19 18:21:49 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Just registering this wish quickly.  If an icon (a .desktop file for an application, say) has an SVG source for its graphic, then it would be nice if, when the icon is scaled up, the image were re-rendered at the new size from the SVG source.  Screenshot to follow: note the pixelation of the KBugBuster icon on the desktop (left)  versus the clarity that could be obtained if we re-rendered the SVG at the new size (right).
Comment 1 Simon St James 2007-12-19 18:22:50 UTC
Created attachment 22625 [details]
Current icons scaling vs optimal

Current icon scaling vs what could be achieved.
Comment 2 Marco Martin 2007-12-19 18:59:15 UTC
maybe it's an issue of KIconLoader?
Comment 3 Aaron J. Seigo 2007-12-19 19:28:56 UTC
yes. the relevant call in plasma is to QIcon::pixmap which results in a call to KIconLoader with the size handed in. plasma has nothing to do with any of this.

there is also code in KIconLoader that hits the svg file, but due to various bugs in Qt right now, it's disabled for most (all?) code paths.

p.s. i wish these types of conversations would happen on panel-devel rather than on b.k.o. if it does result in a useful conclusion that is "we need to work on this" then we can file a BR.