<table><tr><td style="">ratijastk created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ratijastk requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19745">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>System tray widget had the following UX problem:<br />
Icons are laid out in a Flow QML layout, using minimal amount of<br />
space, thus not filling the height/width of the task bar. In other<br />
words: user can only click directly on an icon, not over or under it.</p>

<p>Consider the following scenario:</p>

<p>Given icon size X and task bar of height 1.5 * X located at the bottom;<br />
User moves pointer down to the limit and tries to click the icon.<br />
Expected outcome: applet is activated.<br />
Actual outcome: nothing happens, because icon (together with mouse<br />
area) floats slightly above the bottom.</p>

<p>Which is inconvenient, especially when most other widgets tend to fill<br />
up the space.</p>

<p>This patch fixes aforementioned problem by refactoring layouts using<br />
modern GridLayout, RowLayout et al., so that icons are arranged in<br />
rows and columns based on their number, and each one fills up its<br />
cell. I also made a handful of minor internal refactorings and fixes.<br />
Unfortunately, due to tight coupling, almost all files needed changes<br />
anyway.</p>

<p>Special note on 'CompactApplet.location': it didn't seem to affect<br />
anything at all, so removed it.</p>

<p>At the end of the day no visual changes should be noticeable. Layout<br />
works in both vertical and horizontal form-factor an all four sides of<br />
the desktop.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Please, check whether 'LayoutMirroring' works properly.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19745">https://phabricator.kde.org/D19745</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/systemtray/CMakeLists.txt<br />
applets/systemtray/package/contents/applet/CompactApplet.qml<br />
applets/systemtray/package/contents/ui/ConfigEntries.qml<br />
applets/systemtray/package/contents/ui/ExpandedRepresentation.qml<br />
applets/systemtray/package/contents/ui/HiddenItemsView.qml<br />
applets/systemtray/package/contents/ui/PlasmoidPopupsContainer.qml<br />
applets/systemtray/package/contents/ui/StatusNotifierItemModel.qml<br />
applets/systemtray/package/contents/ui/items/AbstractItem.qml<br />
applets/systemtray/package/contents/ui/items/PlasmoidItem.qml<br />
applets/systemtray/package/contents/ui/items/StatusNotifierItem.qml<br />
applets/systemtray/package/contents/ui/main.qml</div></div></div><br /><div><strong>To: </strong>ratijastk<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>