D14234: [Folder View] Improve file name text rendering

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Jul 19 16:10:03 BST 2018


broulik created this revision.
broulik added reviewers: Plasma, hein, davidedmundson, ngraham.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  `GridView` pads out its delegate to ensure a uniform grid. This, however, causes items to be placed on fractional pixels, leading to blurry rendering and uneven hinting.
  Instead of adjusting padding calculation to return whole pixels, which will again cause a gap at the right side of the screen, since there's 20 icons in a row, slightly shift the delegate contents to move them back to whole pixels.
  Moreover, `DropShadow` renders the entire item with a drop shadow, so keeping the `Label` visible results in two labels ontop of each other leading to bolder text.

TEST PLAN
  - Verified with gamma ray that the `Label` is now placed at integer scene coordinates
  - Font rendering does look a lot nicer, especially in second and lines further down
  - Verified that in software rendering Label renders fine just without a shadow
  - Verified that label hides when renaming file
  - Verified gap at the right of the screen is virtually unchanged

REPOSITORY
  R119 Plasma Desktop

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

AFFECTED FILES
  containments/desktop/package/contents/ui/FolderItemDelegate.qml

To: broulik, #plasma, hein, davidedmundson, ngraham
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180719/6d942446/attachment.html>


More information about the Plasma-devel mailing list