diff options
author | Yevgeny Makarov <jenkm> | 2019-08-27 13:29:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-27 13:32:42 +0300 |
commit | 9169d401757c448e7c5e6850914123dd3de2afed (patch) | |
tree | 7ccfebf4e1b17724ed4039580be94e2642fe64c0 /source/blender/windowmanager/intern | |
parent | 1a40f089ea7a59cb45cbf8986e0516d0c8ab2632 (diff) |
UI: tweak warning messages style and layout in save/close dialog
Differential Revision: https://developer.blender.org/D5589
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 9cf14f6d1d6..3751c76c571 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -3074,6 +3074,12 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C, struct ARegi BKE_reports_init(&reports, RPT_STORE); uint modified_images_count = ED_image_save_all_modified_info(C, &reports); + LISTBASE_FOREACH (Report *, report, &reports.list) { + uiLayout *row = uiLayoutRow(layout, false); + uiLayoutSetRedAlert(row, true); + uiItemL(row, report->message, ICON_CANCEL); + } + if (modified_images_count > 0) { char message[64]; BLI_snprintf(message, @@ -3099,13 +3105,9 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C, struct ARegi ""); } - LISTBASE_FOREACH (Report *, report, &reports.list) { - uiItemL(layout, report->message, ICON_ERROR); - } - BKE_reports_clear(&reports); - uiItemL(layout, "", ICON_NONE); + uiItemS_ex(layout, 3.0f); /* Buttons */ #ifdef _WIN32 |