music control - fix aspect keeping of album art image

This commit is contained in:
Carsten Haitzler 2019-01-23 15:36:45 +00:00
parent 4097a9d2f6
commit 3f744cedfb
2 changed files with 6 additions and 3 deletions

2
TODO
View File

@ -13,7 +13,6 @@ TODO:
* efm: thumbs for videos with movie posters like rage
* efm: show symlink info in icon
* efm: fuse support (mtp, sshfs, cifs/smb etc.)
* music-control: fix aspect ratio of album cover image
* shot: add manual cropping ability
* shot: add simple free draw, box, line and text on top of shot before save
* bz5: add icon set for actions/states per bt device (pair.unpair, etc.)
@ -21,3 +20,4 @@ TODO:
and downloads when received via obex bt (~/Downloads/...)
DONE:
* music-control: fix aspect ratio of album cover image

View File

@ -55,8 +55,11 @@ _metadata_update(E_Music_Control_Instance *inst)
}
if (inst->ctxt->meta_cover)
{
img = evas_object_image_filled_add(evas_object_evas_get(inst->content_popup));
evas_object_image_file_set(img, inst->ctxt->meta_cover, NULL);
img = e_icon_add(evas_object_evas_get(inst->content_popup));
e_icon_scale_size_set(img, 512);
e_icon_scale_up_set(img, EINA_TRUE);
e_icon_fill_inside_set(img, EINA_FALSE);
e_icon_file_set(img, inst->ctxt->meta_cover);
edje_object_part_swallow(inst->content_popup, "cover_swallow", img);
e_comp_object_util_del_list_append(inst->popup->comp_object, img);
}