D7849: Fix the tray icon scaling on HiDPI screens

Piotr Kosinski noreply at phabricator.kde.org
Sat Sep 16 14:43:24 UTC 2017


pgkos created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  This patch fixes the problem with tray icon scaling on HiDPI screens - the icons are too small.
  
  The function `Units::roundToIconSize` returns an unscaled icon size, but we need a size scaled by the HiDPI factor (e.g. 2.0). Also, the arguments passed to this function must be in pixels (density-independent, for 96 dpi), but now they are multiplied by the HiDPI factor, so the function returns a wrong size.

REPOSITORY
  R120 Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D7849

AFFECTED FILES
  applets/systemtray/package/contents/ui/main.qml

To: pgkos
Cc: 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/20170916/35dea4d9/attachment.html>


More information about the Plasma-devel mailing list