D4959: [Folder View] Turn heading into a "hyperlink" and reduce hit area

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Mar 6 13:37:06 UTC 2017


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

REVISION SUMMARY
  I often end up accidentally opening the folder in a file manager because especially when FolderView is placed on a desktop, the hit area for the label spans the entire width and a significantly taller area than the label's text height actually is.
  
  There's also no visual cue that clicking the heading would do anything. Turn it into a "hyperlink" by underlining it on hover and using the PointingHandCursor.

TEST PLAN
  Tested with normal labels as well as super long ones (navigating through lots of sub folders) and the MouseArea position always covers just the label's text. It also underlines just fine on hover.
  
  F2749878: Screenshot_20170306_143636.png <https://phabricator.kde.org/F2749878>

REPOSITORY
  R119 Plasma Desktop

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

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

To: broulik, #plasma, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170306/bbe4b714/attachment-0001.html>


More information about the Plasma-devel mailing list