UI: Line Under Title for Properties Dialogs #118051
|
@ -2285,8 +2285,6 @@ static void outliner_orphans_purge_ui(bContext * /*C*/, wmOperator *op)
|
|||
}
|
||||
LibQueryUnusedIDsData &data = *static_cast<LibQueryUnusedIDsData *>(op->customdata);
|
||||
|
||||
uiItemS_ex(layout, 0.5f);
|
||||
|
||||
std::string unused_message = "";
|
||||
unused_message_gen(unused_message, data.num_local);
|
||||
uiLayout *column = uiLayoutColumn(layout, true);
|
||||
|
|
|
@ -1543,6 +1543,11 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_
|
|||
/* Title. */
|
||||
if (!data->title.empty()) {
|
||||
uiItemL_ex(layout, data->title.c_str(), ICON_NONE, true, false);
|
||||
|
||||
/* Line under the title if there are properties but no message body. */
|
||||
if (data->include_properties && message_lines.size() == 0) {
|
||||
uiItemS_ex(layout, 0.2f, LayoutSeparatorType::Line);
|
||||
};
|
||||
}
|
||||
|
||||
/* Message lines. */
|
||||
|
@ -1551,6 +1556,7 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_
|
|||
}
|
||||
|
||||
if (data->include_properties) {
|
||||
uiItemS_ex(layout, 0.5f);
|
||||
uiTemplateOperatorPropertyButs(C, layout, op, UI_BUT_LABEL_ALIGN_SPLIT_COLUMN, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue