Modify Selector Icon UI to circle
[platform/core/uifw/inputdelegator.git] / src / w-input-selector.cpp
index 542d2bb..4156397 100755 (executable)
@@ -178,13 +178,15 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
                string path = get_resource_path();
                if (!strcmp(part, "elm.icon.1")) {
-                       elm_object_style_set(btn, "anchor");
                        string path_ic;
                        if(!strcmp(first_input_type, "input_voice")) {
+                               elm_object_style_set(btn, "ime_button_stt");
                                path_ic = path + "images/w_mode_stt_ic.png";
                        } else if (!strcmp(first_input_type, "input_emoticon")) {
+                               elm_object_style_set(btn, "ime_button_emoticon");
                                path_ic = path + "images/Delta_w_mode_emoticon_ic.png";
                        } else if (!strcmp(first_input_type, "input_keyboard")) {
+                               elm_object_style_set(btn, "ime_button_keyboard");
                                path_ic = path + "images/w_mode_keyboard_ic.png";
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                        }
@@ -192,13 +194,15 @@ static Evas_Object * __ise_gl_2button_content_get(void *data, Evas_Object *obj,
                        elm_object_content_set(btn, ic);
                        evas_object_layer_set(btn, 32000);
                } else if (!strcmp(part, "elm.icon.2")){
-                       elm_object_style_set(btn, "anchor");
                        string path_ic;
                        if(!strcmp(second_input_type, "input_voice")) {
+                               elm_object_style_set(btn, "ime_button_stt");
                                path_ic = path + "images/w_mode_stt_ic.png";
                        } else if (!strcmp(second_input_type, "input_emoticon")) {
+                               elm_object_style_set(btn, "ime_button_emoticon");
                                path_ic = path + "images/Delta_w_mode_emoticon_ic.png";
                        } else if (!strcmp(second_input_type, "input_keyboard")) {
+                               elm_object_style_set(btn, "ime_button_keyboard");
                                path_ic = path + "images/w_mode_keyboard_ic.png";
                                evas_object_propagate_events_set(btn, EINA_FALSE);
                        }
@@ -253,21 +257,21 @@ static Evas_Object * __ise_gl_3button_content_get(void *data, Evas_Object *obj,
                elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
                string path = get_resource_path();
                if (!strcmp(part, "elm.icon.1")) {
-                       elm_object_style_set(btn, "anchor");
+                       elm_object_style_set(btn, "ime_button_stt");
                        string path_ic = path + "images/w_mode_stt_ic.png";
                        elm_image_file_set(ic, path_ic.c_str(), NULL);
                        elm_object_content_set(btn, ic);
                        evas_object_layer_set(btn, 32000);
 
                } else if (!strcmp(part, "elm.icon.2")){
-                       elm_object_style_set(btn, "anchor");
+                       elm_object_style_set(btn, "ime_button_emoticon");
                        string path_ic = path + "images/Delta_w_mode_emoticon_ic.png";
                        elm_image_file_set(ic, path_ic.c_str(), NULL);
                        elm_object_content_set(btn, ic);
                        evas_object_layer_set(btn, 32000);
 
                } else if (!strcmp(part, "elm.icon.3")){
-                       elm_object_style_set(btn, "anchor");
+                       elm_object_style_set(btn, "ime_button_keyboard");
                        string path_ic = path + "images/w_mode_keyboard_ic.png";
                        elm_image_file_set(ic, path_ic.c_str(), NULL);
                        elm_object_content_set(btn, ic);
@@ -575,13 +579,13 @@ void _create_genlist_items(void* user_data)
 
        Elm_Genlist_Item_Class * itc1 = elm_genlist_item_class_new();
        if(g_input_type_data.input_type_array_len == 2){
-               itc1->item_style = "2button";
+               itc1->item_style = "2button_flat";
                itc1->func.text_get = NULL;
                itc1->func.content_get = __ise_gl_2button_content_get;
                itc1->func.state_get = NULL;
                itc1->func.del = NULL;
        } else {
-               itc1->item_style = "3button";
+               itc1->item_style = "3button_flat";
                itc1->func.text_get = NULL;
                itc1->func.content_get = __ise_gl_3button_content_get;
                itc1->func.state_get = NULL;