UI: Line Under Title for Properties Dialogs
When a popup dialog includes properties, add a line under the title. Pull Request: https://projects.blender.org/blender/blender/pulls/118051
This commit is contained in:
committed by
Harley Acheson
parent
3f5310cc59
commit
8fee7c5fc7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user