UI: Popover Button Padding for Arrow #119181

Merged
Harley Acheson merged 2 commits from Harley/blender:PopoverButtonPadding into main 2024-03-07 22:02:05 +01:00
1 changed files with 2 additions and 1 deletions

View File

@ -2994,7 +2994,8 @@ static uiBut *ui_item_menu(uiLayout *layout,
}
uiTextIconPadFactor pad_factor = ui_text_pad_compact;
if (layout->root->type == UI_LAYOUT_HEADER) { /* Ugly! */
/* Ugly! Extra padding in specific circumstances. */
if (layout->root->type == UI_LAYOUT_HEADER || force_menu) {
if (icon == ICON_NONE && force_menu) {
/* pass */
}