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:
@@ -313,7 +313,7 @@ private:
|
||||
bool fStickyMode;
|
||||
bool fIgnoreHidden;
|
||||
bool fTriggerEnabled;
|
||||
bool fRedrawAfterSticky;
|
||||
bool fHasSubmenus;
|
||||
bool fAttachAborted;
|
||||
};
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ private:
|
||||
rgb_color _HighColor();
|
||||
|
||||
void _DrawMarkSymbol();
|
||||
void _DrawShortcutSymbol();
|
||||
void _DrawShortcutSymbol(bool);
|
||||
void _DrawSubmenuSymbol();
|
||||
void _DrawControlChar(char shortcut, BPoint where);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user