#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;
+ }
+ }
+ }
}