[UI] Radio button's style updated. 37/123137/5
authorMichal Skorupinski <m.skorupinsk@samsung.com>
Tue, 4 Apr 2017 10:58:08 +0000 (12:58 +0200)
committerKiseok Chang <kiso.chang@samsung.com>
Tue, 11 Apr 2017 07:11:41 +0000 (00:11 -0700)
Change-Id: I6ae722e427648499ecae0203bf45f12d66171f55
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
res/widget/radio.edc
src/view/common/view_generic_popup.c

index ff7b4fe..42e49b0 100644 (file)
 #define RADIO_FONT_SIZE 32
 
 styles {
-   style { name: "style.network.radio.text";
-      base: "font=BreezeSans:style=Light font_size=32 align=left color=#747474FF wrap=none";
-      tag:  "br" "";
-   }
+       style { name: "style.network.radio.text";
+               base: "font=BreezeSans:style=Light font_size=32 align=left color=#747474FF wrap=none";
+               tag:  "br" "";
+       }
 }
 
 group { name: "elm/radio/base/style.network";
-   images {
-      image: "btn_radio_on_nor.png" COMP;
-      image: "btn_radio_on_foc.png" COMP;
-      image: "btn_radio_on_dis.png" COMP;
-      image: "btn_radio_off_nor.png" COMP;
-      image: "btn_radio_off_foc.png" COMP;
-      image: "btn_radio_off_dis.png" COMP;
-   }
-   data.item: "focus_highlight" "on";
-   script {
-      public is_focus = 0;
-      public is_checkd = 0;
-      public set_focus() {
-         set_int(is_focus, 1);
-      }
-      public unset_focus() {
-         set_int(is_focus, 0);
-      }
-      public set_check_set() {
-         set_state(PART:"bg", "invisible", 0.0);
-         if (get_int(is_focus)) {
-            set_state(PART:"radio", "highlight", 0.0);
-         }
-         else {
-            set_state(PART:"radio", "visible", 0.0);
-         }
-      }
-      public set_check_unset() {
-         set_state(PART:"radio", "default", 0.0);
-         if (get_int(is_focus)) {
-            set_state(PART:"bg", "highlight", 0.0);
-         }
-         else {
-            set_state(PART:"bg", "default", 0.0);
-         }
-      }
-   }
-   parts {
-      part { name: "bg";
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            rel2.relative: 0.0 1.0;
-            align: 0.0 0.5;
-            min: RADIO_SIZE;
-            max: RADIO_SIZE;
-            aspect: 1.0 1.0;
-            aspect_preference: VERTICAL;
-            image.normal: "btn_radio_off_nor.png";
-         }
-         description { state: "invisible" 0.0;
-            inherit: "default" 0.0;
-            visible: 0;
-         }
-         description { state: "highlight" 0.0;
-            inherit: "default" 0.0;
-            image.normal: "btn_radio_off_foc.png";
-         }
-         description { state: "disabled" 0.0;
-            inherit: "default" 0.0;
-            color: 255 255 255 51;
-         }
-      }
-      part { name: "radio";
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            rel1.to: "bg";
-            rel2.to: "bg";
-            image.normal: "btn_radio_on_nor.png";
-            visible: 0;
-         }
-         description { state: "highlight" 0.0;
-            inherit: "default" 0.0;
-            image.normal: "btn_radio_on_foc.png";
-            visible: 1;
-         }
-         description { state: "visible" 0.0;
-            inherit: "default" 0.0;
-            visible: 1;
-         }
-      }
-      part { name: "elm.swallow.content";
-         type: SWALLOW;
-         scale: 1;
-         description { state: "default" 0.0;
-            fixed: 1 0;
-            visible: 0;
-            align: 0.0 0.5;
-            max: 0 0;
-            rel1.to_x: "bg";
-            rel1.relative: 1.0 0.0;
-            rel1.offset: 1 1;
-            rel2.to_x: "bg";
-            rel2.offset: 1 -2;
-         }
-         description { state: "visible" 0.0;
-            inherit: "default" 0.0;
-            visible: 1;
-            aspect: 1.0 1.0;
-            min: RADIO_SIZE;
-         }
-         description { state: "disabled" 0.0;
-            inherit: "default" 0.0;
-            color: 255 255 255 128;
-         }
-         description { state: "disabled_visible" 0.0;
-            inherit: "default" 0.0;
-            color: 255 255 255 128;
-            visible: 1;
-            aspect: 1.0 1.0;
-         }
-      }
-      part { name, "padding.left";
-         type, SPACER;
-         scale, 1;
-         description { state: "default" 0.0;
-            rel1.to_x: "elm.swallow.content";
-            rel1.relative: 1.0 0.0;
-            rel2.to_x: "elm.swallow.content";
-            rel2.relative: 1.0 1.0;
-            min, 26 0;
-            fixed, 1 0;
-         }
-      }
-      part { name: "elm.text";
-         type: TEXTBLOCK;
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            visible: 0;
-            rel1.to_x: "padding.left";
-            rel1.relative: 1.0 0.0;
-            rel1.offset: 1 1;
-            rel2.offset: -2 -2;
-            text {
-               style, "style.network.radio.text";
-               align: -1.0 0.5;
-            }
-         }
-         description { state: "visible" 0.0;
-            inherit: "default" 0.0;
-            visible: 1;
-            text.min: 1 1;
-            text.ellipsis: -1;
-         }
-         description { state: "disabled" 0.0;
-            inherit: "default" 0.0;
-            color: 0 0 0 128;
-            color3: 0 0 0 0;
-         }
-         description { state: "disabled_visible" 0.0;
-            inherit: "default" 0.0;
-            color: 0 0 0 128;
-            color3: 0 0 0 0;
-            visible: 1;
-            text.min: 1 1;
-            text.ellipsis: -1;
-         }
-      }
-      part { name: "events";
-         type: RECT;
-         description { state: "default" 0.0;
-            color: 0 0 0 0;
-         }
-      }
-      part { name: "disabler";
-         type: RECT;
-         description { state: "default" 0.0;
-            color: 0 0 0 0;
-            visible: 0;
-         }
-         description { state: "disabled" 0.0;
-            inherit: "default" 0.0;
-            visible: 1;
-         }
-      }
-   }
-   programs {
-      program { name: "click";
-         signal: "mouse,clicked,1";
-         source: "events";
-         action: SIGNAL_EMIT "elm,action,radio,toggle" "";
-      }
-      program { name: "radio_on";
-         signal: "elm,state,radio,on";
-         source: "elm";
-         script{
-            set_check_set();
-         }
-      }
-      program { name: "radio_off";
-         signal: "elm,state,radio,off";
-         source: "elm";
-         script{
-            set_check_unset();
-         }
-      }
-      program { name: "text_show";
-         signal: "elm,state,text,visible";
-         source: "elm";
-         action:  STATE_SET "visible" 0.0;
-         target: "elm.text";
-      }
-      program { name: "text_hide";
-         signal: "elm,state,text,hidden";
-         source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
-      }
-      program { name: "icon_show";
-         signal: "elm,state,icon,visible";
-         source: "elm";
-         action:  STATE_SET "visible" 0.0;
-         target: "elm.swallow.content";
-      }
-      program { name: "icon_hide";
-         signal: "elm,state,icon,hidden";
-         source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.swallow.content";
-      }
-      program { name: "disable";
-         signal: "elm,state,disabled";
-         source: "elm";
-         action: STATE_SET "disabled" 0.0;
-         target: "bg";
-         target: "bg";
-         target: "disabler";
-         after: "disable_text";
-      }
-      program { name: "disable_text";
-         script {
-            new st[31];
-            new Float:vl;
-            get_state(PART:"elm.text", st, 30, vl);
-            if (!strcmp(st, "visible"))
-               set_state(PART:"elm.text", "disabled_visible", 0.0);
-            else
-               set_state(PART:"elm.text", "disabled", 0.0);
-            get_state(PART:"elm.swallow.content", st, 30, vl);
-            if (!strcmp(st, "visible"))
-               set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
-            else
-               set_state(PART:"elm.swallow.content", "disabled", 0.0);
-         }
-      }
-      program { name: "enable";
-         signal: "elm,state,enabled";
-         source: "elm";
-         action: STATE_SET "default" 0.0;
-         target: "disabler";
-         after:  "enable_text";
-      }
-      program { name: "enable_text";
-         script {
-            new st[31];
-            new Float:vl;
-            get_state(PART:"elm.text", st, 30, vl);
-            if (!strcmp(st, "disabled_visible"))
-               set_state(PART:"elm.text", "visible", 0.0);
-            else
-               set_state(PART:"elm.text", "default", 0.0);
-            get_state(PART:"elm.swallow.content", st, 30, vl);
-            if (!strcmp(st, "visible"))
-               set_state(PART:"elm.swallow.content", "visible", 0.0);
-            else
-               set_state(PART:"elm.swallow.content", "default", 0.0);
-         }
-      }
-      program { name: "focused";
-        signal: "elm,action,focus"; source: "elm";
-        script {
-            set_focus();
-        }
-        after: "enable_focus";
-      }
-      program { name: "enable_focus";
-         script {
-            new st[31];
-            new Float:vl;
-            get_state(PART:"bg", st, 30, vl);
-            if (!strcmp(st, "default"))
-               set_state(PART:"bg", "highlight", 0.0);
+       images {
+               image: "btn_radio_on_nor.png" COMP;
+               image: "btn_radio_on_foc.png" COMP;
+               image: "btn_radio_on_dis.png" COMP;
+               image: "btn_radio_off_nor.png" COMP;
+               image: "btn_radio_off_foc.png" COMP;
+               image: "btn_radio_off_dis.png" COMP;
+       }
+       data.item: "focus_highlight" "on";
+       script {
+               public is_focus = 0;
+               public is_checkd = 0;
+               public set_focus() {
+                       set_int(is_focus, 1);
+               }
+               public unset_focus() {
+                       set_int(is_focus, 0);
+               }
+               public set_check_set() {
+                       set_state(PART:"bg", "invisible", 0.0);
+                       if (get_int(is_focus)) {
+                               set_state(PART:"radio", "highlight", 0.0);
+                       }
+                       else {
+                               set_state(PART:"radio", "visible", 0.0);
+                       }
+               }
+               public set_check_unset() {
+                       set_state(PART:"radio", "default", 0.0);
+                       if (get_int(is_focus)) {
+                               set_state(PART:"bg", "highlight", 0.0);
+                       }
+                       else {
+                               set_state(PART:"bg", "default", 0.0);
+                       }
+               }
+       }
+       parts {
+               part { name: "bg";
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               rel2.relative: 0.0 1.0;
+                               align: 0.0 0.5;
+                               min: RADIO_SIZE;
+                               max: RADIO_SIZE;
+                               aspect: 1.0 1.0;
+                               aspect_preference: VERTICAL;
+                               image.normal: "btn_radio_off_nor.png";
+                       }
+                       description { state: "invisible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 0;
+                       }
+                       description { state: "highlight" 0.0;
+                               inherit: "default" 0.0;
+                               image.normal: "btn_radio_off_foc.png";
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 51;
+                       }
+               }
+               part { name: "radio";
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               rel1.to: "bg";
+                               rel2.to: "bg";
+                               image.normal: "btn_radio_on_nor.png";
+                               visible: 0;
+                       }
+                       description { state: "highlight" 0.0;
+                               inherit: "default" 0.0;
+                               image.normal: "btn_radio_on_foc.png";
+                               visible: 1;
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                       }
+               }
+               part { name: "elm.swallow.content";
+                       type: SWALLOW;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               fixed: 1 0;
+                               visible: 0;
+                               align: 0.0 0.5;
+                               max: 0 0;
+                               rel1.to_x: "bg";
+                               rel1.relative: 1.0 0.0;
+                               rel1.offset: 1 1;
+                               rel2.to_x: "bg";
+                               rel2.offset: 1 -2;
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                               aspect: 1.0 1.0;
+                               min: RADIO_SIZE;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 128;
+                       }
+                       description { state: "disabled_visible" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 128;
+                               visible: 1;
+                               aspect: 1.0 1.0;
+                       }
+               }
+               part { name, "padding.left";
+                       type, RECT;
+                       scale, 1;
+                       description { state: "default" 0.0;
+                               rel1.to_x: "elm.swallow.content";
+                               rel1.relative: 1.0 0.0;
+                               rel2.to_x: "elm.swallow.content";
+                               rel2.relative: 1.0 1.0;
+                               min, 26 0;
+                               fixed, 1 0;
+                               color: 0 0 255 64;
+                       }
+               }
+               part { name: "elm.text";
+                       type: TEXTBLOCK;
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               visible: 0;
+                               rel1.to_x: "padding.left";
+                               rel1.relative: 1.0 0.0;
+                               rel1.offset: 1 1;
+                               rel2.offset: -2 -2;
+                               text {
+                                       style, "style.network.radio.text";
+                                       align: -1.0 0.5;
+                               }
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                               text.min: 1 1;
+                               text.ellipsis: -1;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 0 0 0 128;
+                               color3: 0 0 0 0;
+                       }
+                       description { state: "disabled_visible" 0.0;
+                               inherit: "default" 0.0;
+                               color: 0 0 0 128;
+                               color3: 0 0 0 0;
+                               visible: 1;
+                               text.min: 1 1;
+                               text.ellipsis: -1;
+                       }
+               }
+               part { name: "events";
+                       type: RECT;
+                       description { state: "default" 0.0;
+                               color: 0 0 0 0;
+                       }
+               }
+               part { name: "disabler";
+                       type: RECT;
+                       description { state: "default" 0.0;
+                               color: 0 0 0 0;
+                               visible: 0;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                       }
+               }
+       }
+       programs {
+               program { name: "click";
+                       signal: "mouse,clicked,1";
+                       source: "events";
+                       action: SIGNAL_EMIT "elm,action,radio,toggle" "";
+               }
+               program { name: "radio_on";
+                       signal: "elm,state,radio,on";
+                       source: "elm";
+                       script{
+                               set_check_set();
+                       }
+               }
+               program { name: "radio_off";
+                       signal: "elm,state,radio,off";
+                       source: "elm";
+                       script{
+                               set_check_unset();
+                       }
+               }
+               program { name: "text_show";
+                       signal: "elm,state,text,visible";
+                       source: "elm";
+                       action:  STATE_SET "visible" 0.0;
+                       target: "elm.text";
+               }
+               program { name: "text_hide";
+                       signal: "elm,state,text,hidden";
+                       source: "elm";
+                       action:  STATE_SET "default" 0.0;
+                       target: "elm.text";
+               }
+               program { name: "icon_show";
+                       signal: "elm,state,icon,visible";
+                       source: "elm";
+                       action:  STATE_SET "visible" 0.0;
+                       target: "elm.swallow.content";
+               }
+               program { name: "icon_hide";
+                       signal: "elm,state,icon,hidden";
+                       source: "elm";
+                       action:  STATE_SET "default" 0.0;
+                       target: "elm.swallow.content";
+               }
+               program { name: "disable";
+                       signal: "elm,state,disabled";
+                       source: "elm";
+                       action: STATE_SET "disabled" 0.0;
+                       target: "bg";
+                       target: "bg";
+                       target: "disabler";
+                       after: "disable_text";
+               }
+               program { name: "disable_text";
+                       script {
+                               new st[31];
+                               new Float:vl;
+                               get_state(PART:"elm.text", st, 30, vl);
+                               if (!strcmp(st, "visible"))
+                                       set_state(PART:"elm.text", "disabled_visible", 0.0);
+                               else
+                                       set_state(PART:"elm.text", "disabled", 0.0);
+                               get_state(PART:"elm.swallow.content", st, 30, vl);
+                               if (!strcmp(st, "visible"))
+                                       set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
+                               else
+                                       set_state(PART:"elm.swallow.content", "disabled", 0.0);
+                       }
+               }
+               program { name: "enable";
+                       signal: "elm,state,enabled";
+                       source: "elm";
+                       action: STATE_SET "default" 0.0;
+                       target: "disabler";
+                       after:  "enable_text";
+               }
+               program { name: "enable_text";
+                       script {
+                               new st[31];
+                               new Float:vl;
+                               get_state(PART:"elm.text", st, 30, vl);
+                               if (!strcmp(st, "disabled_visible"))
+                                       set_state(PART:"elm.text", "visible", 0.0);
+                               else
+                                       set_state(PART:"elm.text", "default", 0.0);
+                               get_state(PART:"elm.swallow.content", st, 30, vl);
+                               if (!strcmp(st, "visible"))
+                                       set_state(PART:"elm.swallow.content", "visible", 0.0);
+                               else
+                                       set_state(PART:"elm.swallow.content", "default", 0.0);
+                       }
+               }
+               program { name: "focused";
+                 signal: "elm,action,focus"; source: "elm";
+                 script {
+                               set_focus();
+                 }
+                 after: "enable_focus";
+               }
+               program { name: "enable_focus";
+                       script {
+                               new st[31];
+                               new Float:vl;
+                               get_state(PART:"bg", st, 30, vl);
+                               if (!strcmp(st, "default"))
+                                       set_state(PART:"bg", "highlight", 0.0);
 
-            get_state(PART:"radio", st, 30, vl);
-            if (!strcmp(st, "visible")) {
-               set_state(PART:"radio", "highlight", 0.0);
-               set_state(PART:"bg", "invisible", 0.0);
-            }
-         }
-      }
-      program { name: "unfocused";
-         signal: "elm,action,unfocus"; source: "elm";
-         script {
-            unset_focus();
-         }
-         after: "disable_focus";
-      }
-      program { name: "disable_focus";
-         script {
-         new st[31];
-         new Float:vl;
-         get_state(PART:"bg", st, 30, vl);
-         if (!strcmp(st, "highlight"))
-            set_state(PART:"bg", "default", 0.0);
+                               get_state(PART:"radio", st, 30, vl);
+                               if (!strcmp(st, "visible")) {
+                                       set_state(PART:"radio", "highlight", 0.0);
+                                       set_state(PART:"bg", "invisible", 0.0);
+                               }
+                       }
+               }
+               program { name: "unfocused";
+                       signal: "elm,action,unfocus"; source: "elm";
+                       script {
+                               unset_focus();
+                       }
+                       after: "disable_focus";
+               }
+               program { name: "disable_focus";
+                       script {
+                       new st[31];
+                       new Float:vl;
+                       get_state(PART:"bg", st, 30, vl);
+                       if (!strcmp(st, "highlight"))
+                               set_state(PART:"bg", "default", 0.0);
 
-         get_state(PART:"radio", st, 30, vl);
-         if (!strcmp(st, "highlight"))
-            set_state(PART:"radio", "visible", 0.0);
-         }
-      }
-   }
+                       get_state(PART:"radio", st, 30, vl);
+                       if (!strcmp(st, "highlight"))
+                               set_state(PART:"radio", "visible", 0.0);
+                       }
+               }
+       }
+}
+
+#define ON_NORMAL "4.0/ic_tizen_settings_list_check.png"
+#define ON_FOCUSED "4.0/ic_tizen_settings_list_check_selected.png"
+#define ON_DISABLED "4.0/ic_tizen_settings_list_check.png"
+#define OFF_NORMAL "4.0/ic_tizen_settings_list_check.png"
+#define OFF_FOCUSED "4.0/ic_tizen_settings_list_check_selected.png"
+#define OFF_DISABLED "4.0/ic_tizen_settings_list_check.png"
+
+group { name: "elm/radio/base/style.popup.list";
+       inherit: "elm/radio/base/style.network";
+       images {
+               image: ON_NORMAL COMP;
+               image: ON_FOCUSED COMP;
+               image: ON_DISABLED COMP;
+               image: OFF_NORMAL COMP;
+               image: OFF_FOCUSED COMP;
+               image: OFF_DISABLED COMP;
+       }
+       parts {
+               part {
+                       name: "bg";
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               rel1.relative: 0.8 0.0;
+                               rel1.offset: -10 0;
+                               rel2.relative: 1.0 1.0;
+                               rel2.offset: -10 0;
+                               align: 1.0 0.5;
+                               min: RADIO_SIZE;
+                               max: RADIO_SIZE;
+                               aspect: 1.0 1.0;
+                               aspect_preference: VERTICAL;
+                               image.normal: OFF_NORMAL;
+                               visible: 0;
+                       }
+                       description { state: "invisible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 0;
+                       }
+                       description { state: "highlight" 0.0;
+                               inherit: "default" 0.0;
+                               image.normal: OFF_FOCUSED;
+                               visible: 1;
+                               color: 0 0 255 255;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 51;
+                       }
+               }
+               part { name: "radio";
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               rel1.to: "bg";
+                               rel2.to: "bg";
+                               image.normal: ON_NORMAL;
+                               visible: 0;
+                       }
+                       description { state: "highlight" 0.0;
+                               inherit: "default" 0.0;
+                               image.normal: ON_FOCUSED;
+                               color: 0 0 255 255;
+                               visible: 1;
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                       }
+               }
+               part { name: "elm.swallow.content";
+                       type: SWALLOW;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               fixed: 1 0;
+                               visible: 0;
+                               align: 0.0 0.5;
+                               max: 0 0;
+                               rel1.to_x: "";
+                               rel1.relative: 1.0 0.0;
+                               rel1.offset: 1 1;
+                               rel2.to_x: "";
+                               rel2.offset: 1 -2;
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                               aspect: 1.0 1.0;
+                               min: RADIO_SIZE;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 128;
+                       }
+                       description { state: "disabled_visible" 0.0;
+                               inherit: "default" 0.0;
+                               color: 255 255 255 128;
+                               visible: 1;
+                               aspect: 1.0 1.0;
+                       }
+               }
+               part { name, "padding.left";
+                       type, SPACER;
+                       scale, 1;
+                       description { state: "default" 0.0;
+                               rel1.to_x: "";
+                               rel1.relative: 0.0 0.0;
+                               rel2.to_x: "";
+                               rel2.relative: 1.0 1.0;
+                               min, 0 0;
+                               fixed, 0 0;
+                       }
+               }
+               part { name: "elm.text";
+                       type: TEXTBLOCK;
+                       mouse_events: 0;
+                       scale: 1;
+                       description { state: "default" 0.0;
+                               visible: 0;
+                               rel1.to_x: "";
+                               rel1.relative: 0.0 0.0;
+                               rel1.offset: 10 0;
+                               rel2.offset: 0 0;
+                               text {
+                                       style, "style.network.radio.text";
+                                       align: -1.0 0.5;
+                               }
+                       }
+                       description { state: "visible" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                               text.min: 1 1;
+                               text.ellipsis: -1;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               color: 0 0 0 128;
+                               color3: 0 0 0 0;
+                       }
+                       description { state: "disabled_visible" 0.0;
+                               inherit: "default" 0.0;
+                               color: 0 0 0 128;
+                               color3: 0 0 0 0;
+                               visible: 1;
+                               text.min: 1 1;
+                               text.ellipsis: -1;
+                       }
+               }
+               part { name: "events";
+                       type: RECT;
+                       description { state: "default" 0.0;
+                               color: 0 0 0 0;
+                       }
+               }
+               part { name: "disabler";
+                       type: RECT;
+                       description { state: "default" 0.0;
+                               color: 0 0 0 0;
+                               visible: 0;
+                       }
+                       description { state: "disabled" 0.0;
+                               inherit: "default" 0.0;
+                               visible: 1;
+                       }
+               }
+       }
 }
index d6cb47e..a0baba7 100644 (file)
@@ -236,7 +236,7 @@ static bool _fill_items(struct _priv *priv, Evas_Object *popup, int item_count,
 
        int i;
        for (i = 0; i < item_count; i++) {
-               radio = utils_add_radio(priv->box, NULL, NULL, item_text[i % item_count]);
+               radio = utils_add_radio(priv->box, NULL, "style.popup.list", item_text[i % item_count]);
                evas_object_size_hint_min_set(radio, 300, 50);
                evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
                evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL);