Page MenuHome

Collapsed Menu Alignment
ClosedPublic

Authored by Harley Acheson (harley) on Tue, Jan 1, 10:50 PM.

Details

Summary

A previous patch of mine made it so popovers and enums had consistent look and widths:

https://developer.blender.org/D4086

Part of that involved changing the icon alignment so the icon placement would look the same in both types.

Unfortunately that caused one small issue. If you were to right-click on a header and select "Collapse Menus" you would see that the resulting small "hamburger" icon button is misaligned, as shown on the top of the following image.

This patch fixes that one problem without affecting anything else. With this the change to right alignment only happens for icon-only menus when the "force_menu" is also true (so will be adding a dropdown arrow). In other cases it can remain middle-aligned so the collapsed hamburger icon looks good again.

Diff Detail

Repository
rB Blender

Event Timeline

This revision is now accepted and ready to land.Fri, Jan 4, 3:28 PM
This revision was automatically updated to reflect the committed changes.