Visually align shortcuts in menus

In a menu, we use the right side both for submenu arrows and shortcuts.
As a result, when an entry has both a shortcut and a submenu, its
shortcut is not aligned with others, and this does not look so nice.

The spacing for the arrow appears only if there is a submenu in any of
the items in the parent menu.

Change-Id: If91fdcdad36abb0141fb05d1f59141f89540c1db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/355
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Ryan Leavengood <[email protected]>
This commit is contained in:
Ryan Leavengood
2020-02-04 23:06:54 +00:00
parent dcf9675793
commit e10de1ecf5
5 changed files with 27 additions and 12 deletions
+1
View File
@@ -56,6 +56,7 @@ public:
void SetSuperItem(BMenuItem* item);
void InvokeItem(BMenuItem* item, bool now = false);
void QuitTracking(bool thisMenuOnly = true);
bool HasSubmenus() { return fMenu->fHasSubmenus; }
static status_t CreateBitmaps();
static void DeleteBitmaps();