D10487: Fix tray icon size scaling when changing the panel size (fix bug 360333)
Piotr Kosinski
noreply at phabricator.kde.org
Wed Feb 14 09:28:34 UTC 2018
pgkos added a comment.
I have returned to the previous version, as the version which used units.smallSpacing looked awful.
Yes, it uses magic constant 0.85, but it really looks much better. I have patched the digital clock height too, so it perfectly matches the height of the tray icons.
I think that this constant should be placed inside the Units class. More, I also think this constant should be configurable by the user (for example, in the panel settings -> more settings...).
This code has the benefit that it **does not change the appearance at the default panel height at all** compared to the version without this patch. I have tested this on both small HD screens and 4K HiDPI screens (with screen scaling factor == 2.0), using KDE Neon git unstable live USB stick.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D10487
To: pgkos, #plasma_workspaces, davidedmundson
Cc: ngraham, davidedmundson, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180214/7e9c18ab/attachment.html>
More information about the Plasma-devel
mailing list