ui: remove menu icon.
authorHermet Park <hermetpark@gmail.com>
Mon, 23 Dec 2019 12:10:25 +0000 (21:10 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 23 Dec 2019 12:28:15 +0000 (21:28 +0900)
Unnecessary decoration that may cause user look it as a wrong display.

Change-Id: I3ad9606945a9085a5a2ab243c8e4b6dc25816a34

src/bin/ui.c

index ed9e792..21198fa 100644 (file)
@@ -21,7 +21,6 @@ static Evas_Object *o_wallpaper = NULL;
 static Evas_Object *o_title = NULL;
 static Evas_Object *o_byline = NULL;
 static Evas_Object *o_menu_logo = NULL;
-static Evas_Object *o_menu_icon = NULL;
 static Evas_Object *o_menu_icon_sel = NULL;
 static Evas_Object *o_menu_icon_sel2 = NULL;
 static Evas_Object *o_menu_text_sel = NULL;
@@ -221,7 +220,6 @@ _ui_menu_show(Eina_Bool visibility)
 {
    efl_gfx_entity_visible_set(o_menu_logo, visibility);
    efl_gfx_entity_visible_set(o_menu_title, visibility);
-   efl_gfx_entity_visible_set(o_menu_icon, visibility);
    efl_gfx_entity_visible_set(o_menu_icon_sel, visibility);
    /* FIXME: ask if it's ok o_menu_icon_sel2 == NULL */
    efl_gfx_entity_visible_set(o_menu_icon_sel2, visibility);
@@ -455,13 +453,6 @@ ui_setup(unsigned int ui_w, unsigned int ui_h)
    o_menu_logo = o;
 
    o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
-   efl_gfx_entity_position_set(o, EINA_POSITION2D(win_w - 128, - 128));
-   efl_gfx_fill_set(o, EINA_RECT(0, 0, 256, 256));
-   efl_gfx_entity_size_set(o, EINA_SIZE2D(256, 256));
-   efl_gfx_entity_visible_set(o, EINA_TRUE);
-   o_menu_icon = o;
-
-   o = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
    efl_gfx_entity_position_set(o, EINA_POSITION2D(0, 0));
    efl_file_simple_load(o, build_path("icon_sel.png"), NULL);
    efl_gfx_entity_size_set(o, EINA_SIZE2D(48, 48));
@@ -641,10 +632,6 @@ ui_loop(void *data EINA_UNUSED)
                   efl_gfx_entity_size_set(o, EINA_SIZE2D(w, h));
                   efl_gfx_fill_set(o, EINA_RECT(0, 0, w, h));
                   efl_gfx_color_set(o, a, a, a, a);
-
-                  o = o_menu_icon;
-                  efl_file_simple_load(o, build_path(mi->icon), NULL);
-                  efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2);
                }
              i++;
           }