UI: More Defaults for Search Placeholders #113792

Merged
Harley Acheson merged 5 commits from Harley/blender:SearchPlaceHolders into main 2024-01-23 17:16:00 +01:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 1563ebc32f - Show all commits

View File

@ -5932,6 +5932,9 @@ const char *ui_but_placeholder_get(uiBut *but)
else if (type && !STREQ(RNA_struct_identifier(type), "UnknownType")) {
placeholder = RNA_struct_ui_name(type);
}
else {
placeholder = RNA_property_ui_name(but->rnaprop);
}
}
else if (but->type == UI_BTYPE_TEXT && but->icon == ICON_VIEWZOOM) {
placeholder = CTX_IFACE_(BLT_I18NCONTEXT_ID_WINDOWMANAGER, "Search");