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 -1
View File
@@ -313,7 +313,7 @@ private:
bool fStickyMode;
bool fIgnoreHidden;
bool fTriggerEnabled;
bool fRedrawAfterSticky;
bool fHasSubmenus;
bool fAttachAborted;
};