UI: move modal operator text from headers to status bar.

Python API is context.workspace.status_text_set()
This commit is contained in:
2018-06-26 17:19:25 +02:00
parent c817a89e73
commit df02675e21
40 changed files with 210 additions and 217 deletions

View File

@@ -4296,9 +4296,18 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C)
}
void uiTemplateCursorKeymap(uiLayout *layout, struct bContext *C)
void uiTemplateInputStatus(uiLayout *layout, struct bContext *C)
{
wmWindow *win = CTX_wm_window(C);
WorkSpace *workspace = CTX_wm_workspace(C);
/* Workspace status text has priority. */
if (workspace->status_text) {
uiItemL(layout, workspace->status_text, ICON_NONE);
return;
}
/* Otherwise should cursor keymap status. */
for (int i = 0; i < 3; i++) {
uiLayout *box = uiLayoutRow(layout, true);
for (int j = 0; j < 2; j++) {