ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=61b79e7ed63eadb979511050df002515eddfc57a
commit 61b79e7ed63eadb979511050df002515eddfc57a Author: Al Poole <[email protected]> Date: Sat Aug 26 16:13:27 2017 +0100 mainview: unrecognise mime popup UI improvements. Summary: See http://www.enlightenment.org/ss/e-599c3eeac02540.00312412.jpg Reviewers: ajwillia.ms Reviewed By: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D5121 --- src/bin/mainview/edi_mainview_panel.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/bin/mainview/edi_mainview_panel.c b/src/bin/mainview/edi_mainview_panel.c index f37e401..8c7229e 100644 --- a/src/bin/mainview/edi_mainview_panel.c +++ b/src/bin/mainview/edi_mainview_panel.c @@ -392,15 +392,36 @@ _edi_popup_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED, static void _edi_mainview_panel_mime_content_safe_popup(void) { - Evas_Object *popup, *label, *button; + Evas_Object *popup, *box, *table, *label, *button, *icon, *sep; popup = elm_popup_add(_main_win); elm_object_part_text_set(popup, "title,text", "Unrecognized file type"); + + table = elm_table_add(popup); + icon = elm_icon_add(table); + elm_icon_standard_set(icon, "dialog-warning"); + evas_object_size_hint_min_set(icon, 48 * elm_config_scale_get(), 48 * elm_config_scale_get()); + evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_show(icon); + elm_table_pack(table, icon, 0, 0, 1, 1); + + box = elm_box_add(popup); label = elm_label_add(popup); - elm_object_text_set(label, "To force open, select this file in the file browser, and use \"open as\" menu options."); + elm_object_text_set(label, "To force open, select this file in the file browser, <br>and use \"open as\" menu options."); evas_object_show(label); - elm_object_content_set(popup, label); + elm_box_pack_end(box, label); + + sep = elm_separator_add(box); + elm_separator_horizontal_set(sep, EINA_TRUE); + evas_object_show(sep); + elm_box_pack_end(box, sep); + elm_table_pack(table, box, 1, 0, 1, 1); + evas_object_show(box); + + elm_object_content_set(popup, table); + evas_object_show(table); button = elm_button_add(popup); elm_object_text_set(button, "OK"); --
