From de41259b13da6a9f33251de8aa0caccf1a5a5512 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sat, 13 Apr 2024 16:50:47 -0700 Subject: [PATCH] UI: Slight Adjust Last Operation Changes Adjust Last Operation dialog gets a title with a line underneath and slight change to margins to better match other similar dialogs. A change agreed to in our last UI meeting. --- source/blender/windowmanager/intern/wm_operators.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/blender/windowmanager/intern/wm_operators.cc b/source/blender/windowmanager/intern/wm_operators.cc index c7d59d0a440..25033eb381f 100644 --- a/source/blender/windowmanager/intern/wm_operators.cc +++ b/source/blender/windowmanager/intern/wm_operators.cc @@ -1398,11 +1398,14 @@ static uiBlock *wm_block_create_redo(bContext *C, ARegion *region, void *arg_op) } } - uiLayout *col = uiLayoutColumn(layout, false); - uiTemplateOperatorPropertyButs( - C, col, op, UI_BUT_LABEL_ALIGN_NONE, UI_TEMPLATE_OP_PROPS_SHOW_TITLE); + uiItemL_ex(layout, WM_operatortype_name(op->type, op->ptr).c_str(), ICON_NONE, true, false); + uiItemS_ex(layout, 0.2f, LayoutSeparatorType::Line); + uiItemS_ex(layout, 0.5f); - UI_block_bounds_set_popup(block, 6 * UI_SCALE_FAC, nullptr); + uiLayout *col = uiLayoutColumn(layout, false); + uiTemplateOperatorPropertyButs(C, col, op, UI_BUT_LABEL_ALIGN_NONE, 0); + + UI_block_bounds_set_popup(block, 7 * UI_SCALE_FAC, nullptr); return block; } -- 2.30.2