background: Use our edi_about image for bg.

There was/is text. Will see feedback and react to that.
This commit is contained in:
Alastair Poole 2019-12-29 19:07:46 +00:00
parent 872984d88f
commit c4088de182
1 changed files with 17 additions and 3 deletions

View File

@ -1130,7 +1130,7 @@ edi_mainview_panel_add(Evas_Object *parent)
{
Edi_Mainview_Panel *panel;
Evas_Object *box, *sep, *scroll, *txt, *nf, *tabs, *tab, *bg, *pad, *scr, *tb;
Evas_Object *next, *prev, *ico_next, *ico_prev;
Evas_Object *img, *next, *prev, *ico_next, *ico_prev;
_main_win = parent;
panel = calloc(1, sizeof(*panel));
@ -1230,12 +1230,26 @@ edi_mainview_panel_add(Evas_Object *parent)
evas_object_show(scroll);
panel->scroll = scroll;
box = elm_box_add(parent);
evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(box);
img = elm_image_add(parent);
elm_image_file_set(img,PACKAGE_DATA_DIR "/images/about.png", NULL);
evas_object_size_hint_weight_set(img, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(img, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(img);
txt = elm_label_add(scroll);
elm_object_text_set(txt, "<hilight>Welcome</hilight><br><br>Click on any file to edit.");
evas_object_size_hint_weight_set(txt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_weight_set(txt, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(txt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(txt);
elm_object_content_set(scroll, txt);
elm_box_pack_end(box, img);
elm_object_content_set(scroll, box);
elm_object_focus_allow_set(txt, EINA_TRUE);
evas_object_smart_callback_add(txt, "focused",