<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added reviewers: VDG, mart.<br />Herald added a project: Kirigami.<br />Herald added a subscriber: plasma-devel.<br />nicolasfella 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/D24469">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The global drawer is usually used to implement one of two patterns: As navigation or as a menu. For both cases a drawer is a suboptimal experience on the desktop, where it just looks and feels alien.</p>

<p>In the navigation case this is usually addressed by making the drawer always open, e.g. seen in Discover or KDE Connect.<br />
In the menu case (e.g. seen in plasma-phonebook or Itinerary) this is not ideal since the actions are not that much important.</p>

<p>This patch adds a property to the global drawer that allows to morph the drawers menu content into a hamburger menu in the toolbar so it behaves more like other menus seen on the desktop.</p>

<p>This is opt-in for two reasons: 1) We don't want to break the navigation pattern 2) it limits the flexibility of the GlobalDrawer, as custom Items cannot be represented.</p>

<p>If the isMenu property is set the drawer handle is hidden on the desktop and the toolbar contains a similar looking, but differently behaving hamburger button.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested with patched plasma-phonebook and unpatched Itinerary on Desktop and mobile</p>

<p>#TODO screenshot</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R169 Kirigami</div></div></div><br /><div><strong>BRANCH</strong><div><div>toolbarmenu</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24469">https://phabricator.kde.org/D24469</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/controls/GlobalDrawer.qml<br />
src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml</div></div></div><br /><div><strong>To: </strong>nicolasfella, VDG, mart<br /><strong>Cc: </strong>plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, davidedmundson, mart, hein<br /></div>