From 85e6b8a502d5173c28858f9dafd930427c94a071 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 4 Sep 2020 21:13:17 +0900 Subject: [PATCH] Apply rounded corner UI Change-Id: Ic01f525ee728b60561735f9d1089c841537bd3b2 Signed-off-by: Jihoon Kim --- im_setting_list/input_method_setting_list_ui.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/im_setting_list/input_method_setting_list_ui.cpp b/im_setting_list/input_method_setting_list_ui.cpp index 36e4db1..86bea57 100644 --- a/im_setting_list/input_method_setting_list_ui.cpp +++ b/im_setting_list/input_method_setting_list_ui.cpp @@ -522,6 +522,20 @@ static void gl_lang_changed(void *data, Evas_Object *obj, void *event_info) elm_genlist_realized_items_update(obj); } +static void gl_realized_cb(void *data, Evas_Object *obj, void *event_info) +{ + Elm_Object_Item *it = (Elm_Object_Item *)event_info; + Elm_Object_Item *first_item = elm_genlist_first_item_get(obj); + Elm_Object_Item *last_item = elm_genlist_last_item_get(obj); + + if (it == first_item) + elm_object_item_signal_emit(it, "elm,state,group,top", "elm"); + else if (it == last_item) + elm_object_item_signal_emit(it, "elm,state,group,bottom", "elm"); + else + elm_object_item_signal_emit(it, "elm,state,group,middle", "elm"); +} + static Evas_Object *im_setting_list_genlist_create(appdata *ad) { Evas_Object *genlist = elm_genlist_add(ad->naviframe); @@ -534,6 +548,7 @@ static Evas_Object *im_setting_list_genlist_create(appdata *ad) eext_rotary_object_event_activated_set(ad->main_circle_genlist, EINA_TRUE); #endif evas_object_smart_callback_add(genlist, "language,changed", gl_lang_changed, NULL); + evas_object_smart_callback_add(genlist, "realized", gl_realized_cb, NULL); evas_object_show(genlist); return genlist; } -- 2.7.4