forked from enlightenment/enventor
file_browser: Apply resource file icons.
Apply edc, image, sound, and font file icons.
This commit is contained in:
parent
a030df08d1
commit
037f9d4283
|
@ -39,6 +39,10 @@ images {
|
|||
image: "navi_play.png" COMP;
|
||||
image: "navi_stop.png" COMP;
|
||||
image: "refresh.png" COMP;
|
||||
image: "brows_logo.png" COMP;
|
||||
image: "brows_image.png" COMP;
|
||||
image: "brows_sound.png" COMP;
|
||||
image: "brows_font.png" COMP;
|
||||
}
|
||||
|
||||
#define ICON_GROUP(_group_name, _image_path) \
|
||||
|
@ -91,5 +95,9 @@ ICON_GROUP("navi_unknown", "navi_unknown.png")
|
|||
ICON_GROUP("navi_play", "navi_play.png")
|
||||
ICON_GROUP("navi_stop", "navi_stop.png")
|
||||
ICON_GROUP("refresh", "refresh.png")
|
||||
ICON_GROUP("brows_logo", "brows_logo.png")
|
||||
ICON_GROUP("brows_image", "brows_image.png")
|
||||
ICON_GROUP("brows_sound", "brows_sound.png")
|
||||
ICON_GROUP("brows_font", "brows_font.png")
|
||||
|
||||
#undef ICON_GROUP
|
||||
|
|
|
@ -87,4 +87,8 @@ EXTRA_DIST = \
|
|||
navi_play.png \
|
||||
navi_stop.png \
|
||||
bg_demo.png \
|
||||
refresh.png
|
||||
refresh.png \
|
||||
brows_logo.png \
|
||||
brows_image.png \
|
||||
brows_sound.png \
|
||||
brows_font.png
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 555 B |
Binary file not shown.
After Width: | Height: | Size: 472 B |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 503 B |
|
@ -95,8 +95,16 @@ gl_file_content_get_cb(void *data, Evas_Object *obj, const char *part)
|
|||
{
|
||||
Evas_Object *img = elm_image_add(obj);
|
||||
|
||||
if (ecore_file_is_dir(file->path))
|
||||
if (file->type == FILE_BROWSER_FILE_TYPE_DIR)
|
||||
elm_image_file_set(img, EDJE_PATH, "folder");
|
||||
else if (file->type == FILE_BROWSER_FILE_TYPE_EDC)
|
||||
elm_image_file_set(img, EDJE_PATH, "brows_logo");
|
||||
else if (file->type == FILE_BROWSER_FILE_TYPE_IMAGE)
|
||||
elm_image_file_set(img, EDJE_PATH, "brows_image");
|
||||
else if (file->type == FILE_BROWSER_FILE_TYPE_SOUND)
|
||||
elm_image_file_set(img, EDJE_PATH, "brows_sound");
|
||||
else if (file->type == FILE_BROWSER_FILE_TYPE_FONT)
|
||||
elm_image_file_set(img, EDJE_PATH, "brows_font");
|
||||
else
|
||||
elm_image_file_set(img, EDJE_PATH, "file");
|
||||
|
||||
|
|
Loading…
Reference in New Issue