nicolasfella created this revision.
nicolasfella added reviewers: VDG, mart.
Herald added a project: Kirigami.
Herald added a subscriber: plasma-devel.
nicolasfella requested review of this revision.

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

TEST PLAN
  Tested with patched plasma-phonebook and unpatched Itinerary on Desktop and 
mobile
  
  #TODO screenshot

REPOSITORY
  R169 Kirigami

BRANCH
  toolbarmenu

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

AFFECTED FILES
  src/controls/GlobalDrawer.qml
  src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml

To: nicolasfella, #vdg, mart
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, 
davidedmundson, mart, hein

Reply via email to