UI: Improve search layout #112422

Open
Leon Schittek wants to merge 17 commits from lone_noel/blender:ui-search-box-layout into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 4 deletions
Showing only changes of commit e135d248ca - Show all commits

View File

@ -5478,7 +5478,7 @@ void ui_draw_menu_item(const uiFontStyle *fstyle,
int *r_xmax)
{
uiWidgetType *wt = widget_type(use_unpadded ? UI_WTYPE_MENU_ITEM_UNPADDED : UI_WTYPE_MENU_ITEM);
const rcti _rect = *rect;
const int row_height = BLI_rcti_size_y(rect);
int max_hint_width = INT_MAX;
int padding = 0.25f * row_height;
@ -5492,9 +5492,6 @@ void ui_draw_menu_item(const uiFontStyle *fstyle,
wt->draw(&wt->wcol, back_rect, &STATE_INFO_NULL, 0, zoom);
}
/* Draw first, in case UI_WTYPE_MENU_ITEM padding will be added, rect = back_rect. */
const rcti _rect = *rect;
UI_fontstyle_set(fstyle);
/* text location offset */