hotkeys - improve ui. apply icons

This commit is contained in:
ChunEon Park 2014-02-22 15:01:07 +09:00
parent cb7c6f085f
commit e442bc8d4c
10 changed files with 109 additions and 14 deletions

View File

@ -5,6 +5,90 @@ images {
image: "panes_right_arrow.png" COMP;
image: "panes_recover_arrow.png" COMP;
image: "hotkeys.png" COMP;
image: "logo_s.png" COMP;
image: "new.png" COMP;
image: "load.png" COMP;
image: "save.png" COMP;
image: "lines.png" COMP;
image: "setting.png" COMP;
image: "status.png" COMP;
}
group { name: "status";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "status.png";
}
}
}
}
group { name: "setting";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "setting.png";
}
}
}
}
group { name: "lines";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "lines.png";
}
}
}
}
group { name: "save";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "save.png";
}
}
}
}
group { name: "load";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "load.png";
}
}
}
}
group { name: "new";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "new.png";
}
}
}
}
group { name: "logo";
parts {
part { name: "img";
type: IMAGE;
description { state: "default" 0.0;
image.normal: "logo_s.png";
}
}
}
}
group { name: "hotkeys";

View File

@ -60,4 +60,11 @@ EXTRA_DIST = \
panes_right_arrow.png \
panes_recover_arrow.png \
hotkeys.png \
pm_fill.png
pm_fill.png \
logo_s.png \
new.png \
load.png \
save.png \
lines.png \
setting.png \
status.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 876 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

View File

@ -55,7 +55,7 @@ f12_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
}
static Evas_Object *
btn_create(Evas_Object *parent, const char *text, Evas_Smart_Cb cb, void *data)
btn_create(Evas_Object *parent, const char *text, Evas_Smart_Cb cb, void *data, const char *img_name)
{
Evas_Object *btn = elm_button_add(parent);
elm_object_style_set(btn, "anchor");
@ -66,6 +66,10 @@ btn_create(Evas_Object *parent, const char *text, Evas_Smart_Cb cb, void *data)
evas_object_smart_callback_add(btn, "clicked", cb, data);
evas_object_show(btn);
Evas_Object *img = elm_image_add(btn);
elm_image_file_set(img, EDJE_PATH, img_name);
elm_object_content_set(btn, img);
return btn;
}
@ -78,40 +82,40 @@ hotkeys_create(Evas_Object *parent, edit_data *ed)
Evas_Object *btn;
btn = btn_create(box, "F1: About", f1_cb, NULL);
btn = btn_create(box, "About", f1_cb, NULL, "logo");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F2: New", f2_cb, NULL);
btn = btn_create(box, "New", f2_cb, NULL, "new");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F3: Save", f3_cb, NULL);
btn = btn_create(box, "Save", f3_cb, NULL, "save");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F4: Load", f4_cb, NULL);
btn = btn_create(box, "Load", f4_cb, NULL, "load");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F5: Line Num", f5_cb, ed);
btn = btn_create(box, "Lines", f5_cb, ed, "lines");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F6: Status", f6_cb, NULL);
btn = btn_create(box, "Status", f6_cb, NULL, "status");
elm_box_pack_end(box, btn);
btn = btn_create(box, "F7: ---", NULL, NULL);
btn = btn_create(box, "---", NULL, NULL, NULL);
elm_box_pack_end(box, btn);
btn = btn_create(box, "F8: ---", NULL, NULL);
btn = btn_create(box, "---", NULL, NULL, NULL);
elm_box_pack_end(box, btn);
btn = btn_create(box, "F9: ---", NULL, NULL);
btn = btn_create(box, "---", NULL, NULL, NULL);
elm_box_pack_end(box, btn);
btn = btn_create(box, "F10: ---", NULL, NULL);
btn = btn_create(box, "---", NULL, NULL, NULL);
elm_box_pack_end(box, btn);
btn = btn_create(box, "F11: ---", NULL, NULL);
btn = btn_create(box, "---", NULL, NULL, NULL);
elm_box_pack_end(box, btn);
btn = btn_create(box, "F12: Setting", f12_cb, NULL);
btn = btn_create(box, "Setting", f12_cb, NULL, "setting");
elm_box_pack_end(box, btn);
return box;