mirror of
https://review.haiku-os.org/haiku
synced 2025-02-12 08:39:18 +01:00
This is to make BMenuBar and BMenu margins the same. The hardcoded menu item margin numbers come from this math on what the BMenu and BMenuBar item margins respectively used to be a long time ago: 14 - 8 = 6 // for left margin (14 + 20) - (8 + 8) = 18 // for left + right margin We have since updated these margins so they need to be recalculated. Use BPrivate::MenuPrivate to get the new margin deltas. IconMenuItem and ModelMenuItem classes are used by Tracker add-ons and those can be in the menu bar as well. Change-Id: Ie4147c31e6b19764cb36b9c414f7e91c47b7d9bd Reviewed-on: https://review.haiku-os.org/c/haiku/+/8905 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>