Review Request 125575: Make program logo non-pixelated on HiDPI

Christoph Cullmann cullmann at kde.org
Sun Oct 11 14:06:55 UTC 2015



> On Oct. 9, 2015, 6:42 p.m., David Edmundson wrote:
> > src/kaboutapplicationdialog.cpp, line 94
> > <https://git.reviewboard.kde.org/r/125575/diff/1/?file=410377#file410377line94>
> >
> >     This doesn't seem right. Sorry.
> >     
> >     setDevicePixelRatio should really only be done when loading/creating a pixmap that has actually taken the devicePixelRatio into account. 
> >     
> >     What your patch is doing is effectively saying; if I have a 32px logo draw me at 32 device pixels on the device no matter what the resolution of the device is. 
> >     
> >     So, it won't look pixelated, but it'll also only be quarter of the size on the screen than it will be on a "normal" monitor.
> 
> Christoph Cullmann wrote:
>     ok ;=) Have you some better idea? We could add support for QIcon and then load the image with different size? Or would that happen, too, if we have this 2x/4x naming scheme?

In any case, the approach is wrong, you are right, will think more about it.


- Christoph


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125575/#review86566
-----------------------------------------------------------


On Oct. 9, 2015, 6:07 p.m., Christoph Cullmann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125575/
> -----------------------------------------------------------
> 
> (Updated Oct. 9, 2015, 6:07 p.m.)
> 
> 
> Review request for KDE Frameworks and David Edmundson.
> 
> 
> Repository: kxmlgui
> 
> 
> Description
> -------
> 
> e.g. the KatePart logo is pixelated (look at help -> about editor component in kate).
> now it looks at least nice.
> 
> An other solution could be to create the pixmap in katepart in the setProgramLogo call, but that will then need adjustments at all places used in other applications, too.
> 
> 
> Diffs
> -----
> 
>   src/kaboutapplicationdialog.cpp f8bfe7b 
> 
> Diff: https://git.reviewboard.kde.org/r/125575/diff/
> 
> 
> Testing
> -------
> 
> Kate without that patch => pixelated logo
> Kate with that patch => nice logo ;)
> 
> 
> Thanks,
> 
> Christoph Cullmann
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151011/6d7484e7/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list