[WorldClock] Show select all checkbox on delete view 20/143520/1
authorKamil Lipiszko <k.lipiszko@samsung.com>
Thu, 10 Aug 2017 07:48:52 +0000 (09:48 +0200)
committerKamil Lipiszko <k.lipiszko@samsung.com>
Thu, 10 Aug 2017 07:48:52 +0000 (09:48 +0200)
This patch fixes displaying issue of switch in detele city list item.
Additionally aligns switch widget in delete alarm and city item so it is
in the same line as select all switch.

Change-Id: Idebf862dc257b8cdcac42b3863e1ff437fe0b930

clock/res/edje/WorldClockDeleteReorderList.edc
clock/res/edje/alarm.edc
clock/src/View/WorldClockDeleteItemsView.cpp

index fdfbbab..3a0b837 100644 (file)
@@ -191,8 +191,8 @@ collections {
                        spacer { "padding.right"; scale;
                                desc { "default";
                                        fixed: 1 0;
-                                       min: 32 0;
-                                       max: 32 -1;
+                                       min: 3 0;
+                                       max: 3 -1;
                                        align: 1.0 0.5;
                                        rel1.to: "base";
                                        rel2.to: "base";
index e1381e9..b590e1c 100644 (file)
@@ -362,7 +362,7 @@ collections {
                        swallow { "onoff"; scale;
                                desc { "default";
                                        fixed: 1 1;
-                                       align: 0.5 0.5;
+                                       align: 0.4 0.5;
                                        min: 50 50;
                                        max: 50 50;
                                        rel1.to: "area.onoff.right";
index 03ea43c..e3c0ace 100644 (file)
@@ -281,7 +281,7 @@ void WorldClockDeleteItemsView::CreateSelectAll()
 
        all_selected_ = false;
 
-       itc->item_style = "select_all";
+       itc->item_style = "type1";
 
        itc->func.text_get = [](void *data, Evas_Object *obj, const char *part) -> char* {
                if (!strcmp(part, "elm.text")) {
@@ -291,7 +291,7 @@ void WorldClockDeleteItemsView::CreateSelectAll()
        };
        itc->func.content_get = [](void *data, Evas_Object *obj, const char *part) -> Evas_Object* {
                WorldClockDeleteItemsView *view = static_cast<WorldClockDeleteItemsView *>(data);
-               if (!strcmp(part, "sw.check")) {
+               if (!strcmp(part, "elm.swallow.end")) {
                        view->select_all_checkbox_ = elm_check_add(obj);
                        elm_check_state_set(view->select_all_checkbox_, view->all_selected_);
                        evas_object_propagate_events_set(view->select_all_checkbox_, EINA_FALSE);