UI: Line Under Title for Properties Dialogs #118051

Merged
Harley Acheson merged 2 commits from Harley/blender:PropsDialogRule into main 2024-02-13 20:37:54 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}