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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user