summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-23 21:10:25 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-23 21:10:25 +0900
commit9bb9dba018904c33b9f9afe77002d461469d51e9 (patch)
treefe63b0ae77087eed56600491166e0e4aad96bc1c
parent858246e2ddd5d797485e6c33d18037c635b8c976 (diff)
ui: remove menu icon.
Unnecessary decoration that may cause user look it as a wrong display.
-rw-r--r--src/bin/ui.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 78c91bd..7dbabdf 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -21,7 +21,6 @@ static Evas_Object *o_wallpaper = NULL;
21static Evas_Object *o_title = NULL; 21static Evas_Object *o_title = NULL;
22static Evas_Object *o_byline = NULL; 22static Evas_Object *o_byline = NULL;
23static Evas_Object *o_menu_logo = NULL; 23static Evas_Object *o_menu_logo = NULL;
24static Evas_Object *o_menu_icon = NULL;
25static Evas_Object *o_menu_icon_sel = NULL; 24static Evas_Object *o_menu_icon_sel = NULL;
26static Evas_Object *o_menu_icon_sel2 = NULL; 25static Evas_Object *o_menu_icon_sel2 = NULL;
27static Evas_Object *o_menu_text_sel = NULL; 26static Evas_Object *o_menu_text_sel = NULL;
@@ -221,7 +220,6 @@ _ui_menu_show(Eina_Bool visibility)
221{ 220{
222 efl_gfx_entity_visible_set(o_menu_logo, visibility); 221 efl_gfx_entity_visible_set(o_menu_logo, visibility);
223 efl_gfx_entity_visible_set(o_menu_title, visibility); 222 efl_gfx_entity_visible_set(o_menu_title, visibility);
224 efl_gfx_entity_visible_set(o_menu_icon, visibility);
225 efl_gfx_entity_visible_set(o_menu_icon_sel, visibility); 223 efl_gfx_entity_visible_set(o_menu_icon_sel, visibility);
226 /* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */ 224 /* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */
227 efl_gfx_entity_visible_set(o_menu_icon_sel2, visibility); 225 efl_gfx_entity_visible_set(o_menu_icon_sel2, visibility);
@@ -455,13 +453,6 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
455 o_menu_logo = o; 453 o_menu_logo = o;
456 454
457 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas); 455 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
458 efl_gfx_entity_position_set(o, EINA_POSITION2D(win_w - 128, - 128));
459 efl_gfx_fill_set(o, EINA_RECT(0, 0, 256, 256));
460 efl_gfx_entity_size_set(o, EINA_SIZE2D(256, 256));
461 efl_gfx_entity_visible_set(o, EINA_TRUE);
462 o_menu_icon = o;
463
464 o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
465 efl_gfx_entity_position_set(o, EINA_POSITION2D(0, 0)); 456 efl_gfx_entity_position_set(o, EINA_POSITION2D(0, 0));
466 efl_file_simple_load(o, build_path("icon_sel.png"), NULL); 457 efl_file_simple_load(o, build_path("icon_sel.png"), NULL);
467 efl_gfx_entity_size_set(o, EINA_SIZE2D(48, 48)); 458 efl_gfx_entity_size_set(o, EINA_SIZE2D(48, 48));
@@ -631,10 +622,6 @@ ui_loop(void *data EINA_UNUSED)
631 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h)); 622 efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h));
632 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h)); 623 efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h));
633 efl_gfx_color_set(o, a, a, a, a); 624 efl_gfx_color_set(o, a, a, a, a);
634
635 o = o_menu_icon;
636 efl_file_simple_load(o, build_path(mi->icon), NULL);
637 efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2);
638 } 625 }
639 i++; 626 i++;
640 } 627 }