alias: "elm/button/base/text_only/style1";
alias: "elm/button/base/center";
alias: "elm/button/base/icon_and_text/center";
- alias: "elm/button/base/popup/contact";
+ alias: "elm/button/base/nocontents/search_button";
images {
image: "00_button_01_normal.png" COMP;
image: "00_button_01_normal_press.png" COMP;
to: "icon_rect";
}
fixed: 1 0;
- min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_AFTER_ICON_MIN_INC;
+ min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
description { state: "icononly" 0.0;
inherit: "default" 0.0;
to_y: "padding_right_bottom";
}
fixed: 1 0;
- min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_BEFORE_TEXT_MIN_INC;
+ min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
visible: 0;
}
}
to: "icon_rect";
}
fixed: 1 0;
- min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_AFTER_ICON_MIN_INC;
+ min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
description { state: "icononly" 0.0;
inherit: "default" 0.0;
to_y: "padding_right_bottom";
}
fixed: 1 0;
- min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_BEFORE_TEXT_MIN_INC;
+ min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
visible: 0;
}
}
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_popup_press.png";
+ image {
+ normal: "00_button_popup_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
image.normal: "00_button_popup_focus.png";
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
+ rel2 {
+ relative: 0.0 0.0;
+ }
min: BUTTON_POPUP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
description { state: "default" 0.0;
align: 1.0 0.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
+ rel1 {
+ relative: 1.0 1.0;
+ }
min: BUTTON_POPUP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_icon_text";
+ part { name: "padding_icon_text";
type: RECT;
scale: 1;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
- rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ to: "elm.swallow.content";
+ }
fixed: 1 0;
min: 0 0;
visible: 0;
part { name: "elm.swallow.content";
type: SWALLOW;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
description { state: "icononly" 0.0;
visible: 1;
min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.5 0.5;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
}
}
part { name: "elm.text";
type: TEXT;
mouse_events: 0;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_icon_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
size: 20;
min: 0 0;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
///////////////////////////////////////////////////////////////////////////////////////
#define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
- group { name: "elm/button/base/contacts"style_name; \
+ group { name: "elm/button/base/contacts/"style_name; \
alias: "elm/button/base/"style_name; \
images { \
image: image_normal COMP; \
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/icon_only/default";
+ group { name: "elm/button/base/default";
images {
- image: "00_button_03_normal.png" COMP;
- image: "00_button_03_press.png" COMP;
- image: "00_button_03_focus.png" COMP;
- image: "00_button_03_dim.png" COMP;
+ image: "00_button_01_normal.png" COMP;
+ image: "00_button_01_normal_press.png" COMP;
+ image: "00_button_01_normal_dim.png" COMP;
}
script {
public button_state = BUTTON_STATE_ENABLED;
mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 50 50;
- max: 50 50;
+ min: 16 38;
image {
- normal: "00_button_03_normal.png";
- border: 7 7 7 7;
+ normal: "00_button_01_normal.png";
+ border: 4 4 3 3;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_03_press.png";
+ image.normal: "00_button_01_normal_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_03_dim.png";
+ image.normal: "00_button_01_normal_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_03_focus.png";
+ image.normal: "00_button_01_normal_press.png";
}
}
part {
align: 0.0 0.0;
rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
- min: 5 5;
+ min: 2 2;
fixed: 1 1;
visible: 0;
}
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- align: 1.0 0.0;
+ align: 1.0 1.0;
rel1.relative: 1.0 1.0;
rel2.relative: 1.0 1.0;
- min: 5 5;
+ min: 2 2;
fixed: 1 1;
visible: 0;
}
}
+ part {
+ name: "padding_icon_text";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0; //when only icon or no icon is there
+ align: 0.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ fixed: 1 0;
+ min: 0 0;
+ color: 0 0 0 0;
+ }
+ description { state: "icononly" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "visible" 0.0; //when icon is visible
+ align: 0.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ fixed: 1 0;
+ min: 5 0;
+ color: 0 0 0 0;
+ }
+ }
part { name: "elm.swallow.content";
type: SWALLOW;
- mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
- max: 40 40;
visible: 0;
+ align: 0.0 0.5;
+ rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+ rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ fixed: 1 0;
+ }
+ description { state: "visible" 0.0;
+ fixed: 1 0;
+ visible: 1;
+ align: 0.0 0.5;
+ rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+ rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ }
+ description { state: "icononly" 0.0;
+ visible: 1;
+ min: 38 38;
+ rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
+ rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
+ align: 0.5 0.5;
+ aspect: 1.0 1.0;
+ aspect_preference: VERTICAL;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
+ rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
align: 0.5 0.5;
+ color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
+ text {
+ font: "SLP:style=Medium";
+ size: 24;
+ min: 0 0;
+ align: 0.5 0.5;
+ }
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
+ min: 90 34;
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
+ }
+ description { state: "disabled_visible" 0.0;
+ inherit: "default" 0.0;
+ color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
+ visible: 1;
+ min: 90 34;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ min: 0 0;
+ color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
}
}
- part { name: "over1";
+ part { name: "over2";
+ type: RECT;
mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
+ color: 0 0 0 0;
}
}
- part { name: "over2";
+ part { name: "over3";
+ type: RECT;
mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
color: 0 0 0 0;
}
}
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
color: 0 0 0 0;
visible: 0;
}
programs {
program { name: "button_click";
signal: "mouse,down,1";
- source: "over1";
+ source: "over2";
action: SIGNAL_EMIT "elm,action,press" "";
after: "button_click_anim";
}
program { name: "button_click_anim";
action: STATE_SET "clicked" 0.0;
target: "button_image";
+ after: "text_clicked";
}
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "button_image";
+ program { name: "text_clicked";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"elm.text", "clicked", 0.0);
+ }
}
- program { name: "button_unclick2";
+ program { name: "button_unpress";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ }
+ program { name: "button_mouseout_clicked";
+ signal: "mouse,up,1";
+ source: "over3";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (strcmp(st, "icononly"))
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
+ }
+ after: button_unpress;
+ }
+ program { name: "button_unclick3";
signal: "mouse,clicked,1";
- source: "over1";
+ source: "over2";
action: SIGNAL_EMIT "elm,action,click" "";
}
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "icononly"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"elm.text", "visible", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
+ }
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ else
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
+ }
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "padding_icon_text";
+ }
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
action: STATE_SET "disabled" 0.0;
target: "button_image";
target: "disabler";
- after : "state_set_disable";
+ after: "disable_text";
}
- program { name: "state_set_disable";
+ 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);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
action: STATE_SET "default" 0.0;
target: "button_image";
target: "disabler";
- after : "state_set_enable";
+ after: "enable_text";
}
- program { name: "state_set_enable";
+ 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);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
- 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: "focused";
//signal: "elm,action,focus";
//source: "elm";
action: STATE_SET "focused" 0.0;
target: "button_image";
+ target: "elm.text";
}
program { name: "unfocused";
//signal: "elm,action,unfocus";
//source: "elm";
action: STATE_SET "default" 0.0;
target: "button_image";
+ after: "unfocus_text";
+ }
+ program { name: "unfocus_text";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.text";
}
}
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/default";
+ group { name: "elm/button/base/hidden";
images {
- image: "00_button_01_normal.png" COMP;
- image: "00_button_01_normal_press.png" COMP;
- image: "00_button_01_normal_dim.png" COMP;
- }
+ image: "00_button_sweep.png" COMP;
+ image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
+ }
script {
public button_state = BUTTON_STATE_ENABLED;
}
mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 16 38;
+ min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
image {
- normal: "00_button_01_normal.png";
- border: 4 4 3 3;
+ normal: "00_button_sweep.png";
+ border: BUTTON_HIDDEN_BG_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_01_normal_press.png";
+ image.normal: "00_button_sweep_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_01_normal_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_01_normal_press.png";
+ image.normal: "00_button_sweep_press.png";
}
}
part {
align: 0.0 0.0;
rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
- min: 2 2;
+ min: BUTTON_HIDDEN_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
rel2.relative: 1.0 1.0;
- min: 2 2;
+ min: BUTTON_HIDDEN_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
part {
+ name: "icon_rect";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
+ fixed: 1 0;
+ rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
+ rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
+ align: 0.0 0.5;
+ color: 0 0 0 0;
+ }
+ }
+ part {
name: "padding_icon_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
- rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ rel1 { relative: 1.0 0.0; to: "icon_rect"; }
+ rel2 { relative: 1.0 1.0; to: "icon_rect"; }
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0; //when icon is visible
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
- rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ rel1 { relative: 1.0 0.0; to: "icon_rect"; }
+ rel2 { relative: 1.0 1.0; to: "icon_rect"; }
fixed: 1 0;
- min: 5 0;
+ min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
color: 0 0 0 0;
}
}
}
description { state: "icononly" 0.0;
visible: 1;
- min: 38 38;
- rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
- rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
+ min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
+ rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
+ rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
align: 0.5 0.5;
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
description { state: "default" 0.0;
visible: 0;
rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
+ rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
align: 0.5 0.5;
- color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
+ color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
- size: 24;
+ size: BUTTON_HIDDEN_FONT_SIZE_INC;
min: 0 0;
align: 0.5 0.5;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 90 34;
+ min: BUTTON_HIDDEN_TEXT_MIN_INC;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
min: 0 0;
- color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
+ color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
+ color: 0 0 0 128;
}
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
- color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
+ color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
visible: 1;
- min: 90 34;
+ min: BUTTON_HIDDEN_TEXT_MIN_INC;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
min: 0 0;
- color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
+ color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
}
}
part { name: "over2";
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/hidden";
+ group { name: "elm/button/base/picker/bar/default";
images {
- image: "00_button_sweep.png" COMP;
- image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
- }
+ image: "00_picker_btn_normal.png" COMP;
+ image: "00_picker_btn_press.png" COMP;
+ }
script {
public button_state = BUTTON_STATE_ENABLED;
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
+ min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
image {
- normal: "00_button_sweep.png";
- border: BUTTON_HIDDEN_BG_BORDER_INC;
+ normal: "00_picker_btn_normal.png";
+ border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_sweep_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_sweep_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: BUTTON_HIDDEN_PADDING_MIN_INC;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: BUTTON_HIDDEN_PADDING_MIN_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
- min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
+ min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
fixed: 1 0;
- rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
- align: 0.0 0.5;
- color: 0 0 0 0;
- }
- }
- part {
- name: "padding_icon_text";
- type: RECT;
- scale: 1;
- mouse_events: 0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_right_bottom";
+ }
+ align: 0.0 0.5;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "padding_icon_text";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0; //when icon is visible
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
- min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
+ min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
color: 0 0 0 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
- min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.5 0.5;
+ min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
type: TEXT;
mouse_events: 0;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
- color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_icon_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ color: 78 73 69 255;
text {
font: "SLP:style=Medium";
- size: BUTTON_HIDDEN_FONT_SIZE_INC;
- min: 0 0;
- align: 0.5 0.5;
+ size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
+ min: 1 0;
+ max: 0 0;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: BUTTON_HIDDEN_TEXT_MIN_INC;
+ min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
min: 0 0;
- color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
+ color: 255 255 255 255;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
- color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
+ color: 0 0 0 128;
visible: 1;
- min: BUTTON_HIDDEN_TEXT_MIN_INC;
+ min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
min: 0 0;
- color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
+ color: 255 255 255 255;
}
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/picker/bar/default";
+ group { name: "elm/button/base/picker/prev/text/default";
+ alias: "elm/button/base/picker/next/text/default";
images {
image: "00_picker_btn_normal.png" COMP;
image: "00_picker_btn_press.png" COMP;
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 46 42;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
image {
normal: "00_picker_btn_normal.png";
- border: 4 4 4 4;
+ border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 5 5;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 5 5;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
- min: 0 32;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
fixed: 1 0;
- rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
}
- part {
- name: "padding_icon_text";
+ part { name: "padding_icon_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0; //when icon is visible
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
- min: 5 0;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
color: 0 0 0 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
- min: 32 32;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.5 0.5;
- aspect: 1.0 1.0;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
+ aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
}
type: TEXT;
mouse_events: 0;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_icon_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: 78 73 69 255;
text {
font: "SLP:style=Medium";
- size: 20;
+ size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
min: 1 0;
- align: 0.5 0.5;
- max: 0 0;
+ max: 1 0;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 80 32;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
inherit: "default" 0.0;
color: 0 0 0 128;
visible: 1;
- min: 80 32;
+ min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/picker/prev/text/default";
- alias: "elm/button/base/picker/next/text/default";
- images {
- image: "00_picker_btn_normal.png" COMP;
- image: "00_picker_btn_press.png" COMP;
- }
+ group { name: "elm/button/base/contact";
+ alias: "elm/button/base/text_only/contact";
script {
public button_state = BUTTON_STATE_ENABLED;
}
parts {
part { name: "button_image";
+ type: RECT;
mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 46 42;
- image {
- normal: "00_picker_btn_normal.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
+ rel1 { to_x: "padding.left"; to_y: "elm.text"; }
+ rel2 { to_x: "padding.right"; to_y: "elm.text"; }
+ min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
+ color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
- }
- }
- part {
- name: "padding_left_top";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 10 5;
- fixed: 1 1;
- visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding.left";
type: RECT;
scale: 1;
- mouse_events: 0;
description { state: "default" 0.0;
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 10 5;
- fixed: 1 1;
visible: 0;
- }
- }
- part {
- name: "icon_rect";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 1;
- min: 0 32;
+ min: BUTTON_CONTACT_PADDING_MIN_INC;
fixed: 1 0;
- rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
- align: 0.0 0.5;
color: 0 0 0 0;
+ rel1.relative: 0 0;
+ rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
+ align: 1 0;
}
}
- part {
- name: "padding_icon_text";
+ part { name: "padding.right";
type: RECT;
scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0; //when only icon or no icon is there
- align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
- fixed: 1 0;
- min: 0 0;
- color: 0 0 0 0;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "visible" 0.0; //when icon is visible
- align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
- fixed: 1 0;
- min: 5 0;
- color: 0 0 0 0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
description { state: "default" 0.0;
visible: 0;
- align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- fixed: 1 0;
- }
- description { state: "visible" 0.0;
+ min: BUTTON_CONTACT_PADDING_MIN_INC;
fixed: 1 0;
- visible: 1;
- align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- description { state: "icononly" 0.0;
- visible: 1;
- min: 32 32;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.5 0.5;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
+ color: 0 0 0 0;
+ rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
+ rel2.relative: 1.0 1.0;
+ align: 0 0;
}
}
- part { name: "elm.text";
+ part { name: "elm.text";
type: TEXT;
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ fixed: 1 1;
align: 0.5 0.5;
- color: 78 73 69 255;
+ color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
- size: 20;
- min: 1 0;
- max: 1 0;
+ size: BUTTON_CONTACT_FONT_SIZE_INC;
+ min: 1 1;
align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 60 32;
+ min: 1 1;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 0 0;
- color: 255 255 255 255;
+ min: 1 1;
+ color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
- color: 0 0 0 128;
+ color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
visible: 1;
- min: 60 32;
+ min: 1 1;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 0 0;
- color: 255 255 255 255;
+ min: 1 1;
+ color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
+ }
+ }
+ part { name: "over1";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel2.relative: 1.0 0.5;
}
}
part { name: "over2";
- type: RECT;
mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
- color: 0 0 0 0;
+ rel1.to: "button_image";
+ rel2.to: "button_image";
}
}
part { name: "over3";
- type: RECT;
mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
+ rel1.to: "button_image";
+ rel2.to: "button_image";
color: 0 0 0 0;
}
}
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
+ rel1.to: "button_image";
+ rel2.to: "button_image";
color: 0 0 0 0;
visible: 0;
}
program { name: "button_click_anim";
action: STATE_SET "clicked" 0.0;
target: "button_image";
- after: "text_clicked";
- }
- program { name: "text_clicked";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
- }
+ target: "elm.text";
}
program { name: "button_unpress";
action: SIGNAL_EMIT "elm,action,unpress" "";
script {
new st[31];
new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (strcmp(st, "icononly"))
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
{
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
signal: "elm,state,text,visible";
source: "elm";
script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
if(get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
program { name: "text_hide";
signal: "elm,state,text,hidden";
source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
- }
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- target: "padding_icon_text";
+ target: "elm.text";
}
+
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
//source: "elm";
action: STATE_SET "default" 0.0;
target: "button_image";
- after: "unfocus_text";
- }
- program { name: "unfocus_text";
action: STATE_SET "visible" 0.0;
target: "elm.text";
}
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/contact";
- alias: "elm/button/base/text_only/contact";
- images {
- image: "00_message_button_add_recipient.png" COMP;
- image: "00_message_button_add_recipient_press.png" COMP;
- image: "00_message_button_add_recipient_focus.png" COMP;
- image: "00_message_button_add_recipient_dim.png" COMP;
- }
- script {
- public button_state = BUTTON_STATE_ENABLED;
+ group { name: "elm/button/base/naviframe/back_btn/default";
+ alias: "elm/button/base/naviframe/end_btn/default";
+ //TODO: Remove this alias later
+ alias: "elm/button/base/navigationbar_prev_btn/default";
+ alias: "elm/button/base/navigationbar_backbutton/default";
+ alias: "elm/button/base/navigationbar_end_btn/default";
+ images {
+ image: "00_winset_btn_prev.png" COMP;
+ image: "00_winset_btn_prev_press.png" COMP;
}
parts {
part { name: "button_image";
- type: RECT;
+ type: RECT;
mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- rel1 { to_x: "padding.left"; to_y: "elm.text"; }
- rel2 { to_x: "padding.right"; to_y: "elm.text"; }
- min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
- color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
+ min: BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC;
+ color: 0 0 0 0;
}
- description { state: "disabled" 0.0;
+ description {
+ state: "clicked" 0.0;
inherit: "default" 0.0;
}
- description { state: "focused" 0.0;
+ description {
+ state: "disabled" 0.0;
inherit: "default" 0.0;
}
}
- part { name: "padding.left";
+ part {name: "padding_right";
type: RECT;
- scale: 1;
+ mouse_events: 0;
description { state: "default" 0.0;
- visible: 0;
- min: BUTTON_CONTACT_PADDING_MIN_INC;
- fixed: 1 0;
- color: 0 0 0 0;
- rel1.relative: 0 0;
- rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
align: 1 0;
+ min: 1 0;
+ rel1 { relative: 1 0.2; }
+ rel2 { relative: 1 0.8; }
+ fixed: 1 0;
+ color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC;
}
}
- part { name: "padding.right";
+ part {name: "padding_before_right";
type: RECT;
- scale: 1;
+ mouse_events: 0;
description { state: "default" 0.0;
- visible: 0;
- min: BUTTON_CONTACT_PADDING_MIN_INC;
+ align: 1 0;
+ min: 1 0;
+ rel1 { relative: 0 0; to: "padding_right"; }
+ rel2 { relative: 0 1; to: "padding_right"; }
fixed: 1 0;
- color: 0 0 0 0;
- rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
- rel2.relative: 1.0 1.0;
- align: 0 0;
+ color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC;
}
}
- part { name: "elm.text";
- type: TEXT;
+ part { name: "button_center_part";
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
+ min: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
+ max: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
align: 0.5 0.5;
- color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
- text {
- font: "SLP:style=Medium";
- size: BUTTON_CONTACT_FONT_SIZE_INC;
- min: 1 1;
- align: 0.5 0.5;
+ rel2 { relative: 0 1; to_x: "padding_before_right"; }
+ image {
+ normal: "00_winset_btn_prev.png";
}
}
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
- visible: 1;
- min: 1 1;
- }
- description { state: "focused" 0.0;
+ description {
+ state: "clicked" 0.0;
inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
+ image.normal: "00_winset_btn_prev_press.png";
}
}
part { name: "over1";
- mouse_events: 0;
- description { state: "default" 0.0;
- rel2.relative: 1.0 0.5;
- }
- }
- part { name: "over2";
+ type: RECT;
mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
+ color: 0 0 0 0;
}
}
- part { name: "over3";
+ part { name: "over2";
mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
color: 0 0 0 0;
}
}
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
color: 0 0 0 0;
visible: 0;
}
programs {
program { name: "button_click";
signal: "mouse,down,1";
- source: "over2";
+ source: "over1";
action: SIGNAL_EMIT "elm,action,press" "";
after: "button_click_anim";
}
program { name: "button_click_anim";
action: STATE_SET "clicked" 0.0;
target: "button_image";
- target: "elm.text";
+ target: "button_center_part";
}
- program { name: "button_unpress";
+ program { name: "button_unclick";
+ signal: "mouse,up,1";
+ source: "over2";
action: SIGNAL_EMIT "elm,action,unpress" "";
+ after: "button_unclick_anim";
}
- program { name: "button_mouseout_clicked";
- signal: "mouse,up,1";
- source: "over3";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
- }
- after: button_unpress;
+ program { name: "button_unclick_anim";
+ action: STATE_SET "default" 0.0;
+ target: "button_image";
+ target: "button_center_part";
}
- program { name: "button_unclick3";
+ program { name: "button_unclick2";
signal: "mouse,clicked,1";
- source: "over2";
+ source: "over1";
action: SIGNAL_EMIT "elm,action,click" "";
}
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
-
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
action: STATE_SET "disabled" 0.0;
- target: "button_image";
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);
- set_int(button_state, BUTTON_STATE_DISABLED);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- 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);
- set_int(button_state, BUTTON_STATE_ENABLED);
- }
- }
- program { name: "focused";
- //signal: "elm,action,focus";
- //source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "button_image";
- target: "elm.text";
- }
- program { name: "unfocused";
- //signal: "elm,action,unfocus";
- //source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- }
- }
-
-///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/naviframe/back_btn/default";
- alias: "elm/button/base/naviframe/end_btn/default";
- //TODO: Remove this alias later
- alias: "elm/button/base/navigationbar_prev_btn/default";
- alias: "elm/button/base/navigationbar_backbutton/default";
- alias: "elm/button/base/navigationbar_end_btn/default";
- images {
- image: "00_winset_btn_prev.png" COMP;
- image: "00_winset_btn_prev_press.png" COMP;
- }
- parts {
- part { name: "button_image";
- type: RECT;
- mouse_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC;
- color: 0 0 0 0;
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- }
- description {
- state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part {name: "padding_right";
- type: RECT;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 1 0;
- min: 1 0;
- rel1 { relative: 1 0.2; }
- rel2 { relative: 1 0.8; }
- fixed: 1 0;
- color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC;
- }
- }
- part {name: "padding_before_right";
- type: RECT;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 1 0;
- min: 1 0;
- rel1 { relative: 0 0; to: "padding_right"; }
- rel2 { relative: 0 1; to: "padding_right"; }
- fixed: 1 0;
- color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC;
- }
- }
- part { name: "button_center_part";
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
- max: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
- align: 0.5 0.5;
- rel2 { relative: 0 1; to_x: "padding_before_right"; }
- image {
- normal: "00_winset_btn_prev.png";
- }
- }
- description {
- state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_winset_btn_prev_press.png";
- }
- }
- part { name: "over1";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "over2";
- mouse_events: 1;
- repeat_events: 1;
- 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: "button_click";
- signal: "mouse,down,1";
- source: "over1";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "button_click_anim";
- }
- program { name: "button_click_anim";
- action: STATE_SET "clicked" 0.0;
- target: "button_image";
- target: "button_center_part";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "button_center_part";
- }
- program { name: "button_unclick2";
- signal: "mouse,clicked,1";
- source: "over1";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- target: "button_image";
+ target: "button_image";
}
program { name: "enable";
signal: "elm,state,enabled";
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 46 42;
- max: 46 42;
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
+ max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
image {
normal: "00_picker_btn_normal.png";
- border: 4 4 4 4;
+ border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 5 5;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 5 5;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "left_arrow";
- type: IMAGE;
+ part { name: "left_arrow";
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- min: 20 20;
- max: 20 20;
- align: 0.5 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- image.normal: "00_picker_arrow_left.png";
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
+ max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ image {
+ normal: "00_picker_arrow_left.png";
+ }
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_arrow_left_press.png";
+ image {
+ normal: "00_picker_arrow_left_press.png";
+ }
}
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
signal: "mouse,up,1";
source: "over3";
script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 46 42;
- max: 46 42;
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
+ max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
image {
normal: "00_picker_btn_normal.png";
- border: 4 4 4 4;
+ border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_btn_press.png";
+ image {
+ normal: "00_picker_btn_press.png";
+ }
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 5 5;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 5 5;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "left_arrow";
- type: IMAGE;
+ part { name: "right_arrow";
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- min: 20 20;
- max: 20 20;
- align: 0.5 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top";}
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom";}
- image.normal: "00_picker_arrow_right.png";
+ min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
+ max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ image {
+ normal: "00_picker_arrow_right.png";
+ }
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_picker_arrow_right_press.png";
+ image {
+ normal: "00_picker_arrow_right_press.png";
+ }
}
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
signal: "mouse,up,1";
source: "over3";
script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
source: "elm";
action: STATE_SET "default" 0.0;
target: "button_image";
- target: "disabler";
- after: "enable_button";
- }
- program { name: "enable_button";
- script {
- set_int(button_state, BUTTON_STATE_ENABLED);
- }
- }
- program { name: "focused";
- //signal: "elm,action,focus";
- //source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "button_image";
- }
- program { name: "unfocused";
- //signal: "elm,action,unfocus";
- //source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- }
- }
- }
-
-//###############################################
-// Nocontents Search Button Styles //
-//###############################################
-
- group { name: "elm/button/base/nocontents/search_button";
- images {
- image: "00_button_03_normal.png" COMP;
- image: "00_button_03_press.png" COMP;
- image: "00_button_03_focus.png" COMP;
- }
- script {
- public button_state = BUTTON_STATE_ENABLED;
- }
- parts {
- part { name: "button_image";
- mouse_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- min: 16 50;
- image {
- normal: "00_button_03_normal.png";
- border: 7 7 7 7;
- border_scale: 1;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_03_press.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- image.normal: "00_button_03_focus.png";
- }
- }
- part {
- name: "padding_left_top";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 5 5;
- fixed: 1 1;
- visible: 0;
- }
- }
- part {
- name: "padding_right_bottom";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 5 5;
- fixed: 1 1;
- visible: 0;
- }
- }
- part {
- name: "icon_rect";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0;
- visible: 1;
- min: 0 0;
- fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.0 0.5;
- color: 0 0 0 0;
- }
- description { state: "visible" 0.0;
- visible: 1;
- min: 40 40;
- fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- align: 0.0 0.5;
- color: 0 0 0 0;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
- }
- }
- part {
- name: "padding_after_icon";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0; //when only icon or no icon is there
- align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
- fixed: 1 0;
- min: 0 0;
- color: 0 255 0 100;
- }
- description { state: "visible" 0.0;
- visible: 1;
- align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
- fixed: 1 0;
- min: 12 0;
- max: 12 0;
- color: 0 0 0 255;
- }
- description { state: "icononly" 0.0;
- inherit: "default" 0.0;
- }
- }
- part {
- name: "padding_before_text";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description { state: "default" 0.0; //when only icon or no icon is there
- align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
- fixed: 1 0;
- min: 12 0;
- max: 12 0;
- color: 0 0 0 0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- fixed: 1 0;
- }
- description { state: "visible" 0.0;
- fixed: 1 0;
- visible: 1;
- align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- description { state: "icononly" 0.0;
- visible: 1;
- min: 40 40;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
- color: 51 102 255 255;
- text {
- font: "SLP:style=Medium";
- size: 24;
- min: 0 0;
- max: 1 0;
- align: 0.5 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 90 40;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 0 0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- visible: 1;
- min: 90 40;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 0 0;
- color: 255 255 255 255;
- }
- }
- part { name: "over2";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "over3";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- 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: "button_click";
- signal: "mouse,down,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "button_click_anim";
- }
- program { name: "button_click_anim";
- action: STATE_SET "clicked" 0.0;
- target: "button_image";
- after: "text_clicked";
- }
- program { name: "text_clicked";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
- }
- }
- program { name: "button_unpress";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- }
- program { name: "button_mouseout_clicked";
- signal: "mouse,up,1";
- source: "over3";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
- }
- after: button_unpress;
- }
- program { name: "button_unclick3";
- signal: "mouse,clicked,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
- }
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- target: "icon_rect";
- target: "padding_after_icon";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "button_image";
- 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);
- set_int(button_state, BUTTON_STATE_DISABLED);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- 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);
+ target: "disabler";
+ after: "enable_button";
+ }
+ program { name: "enable_button";
+ script {
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
//source: "elm";
action: STATE_SET "focused" 0.0;
target: "button_image";
- target: "elm.text";
}
program { name: "unfocused";
//signal: "elm,action,unfocus";
//source: "elm";
action: STATE_SET "default" 0.0;
target: "button_image";
- after: "unfocus_text";
- }
- program { name: "unfocus_text";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
}
}
}
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
- min: 10 34;
image {
normal: "00_button_06_normal.png";
- border: 4 4 3 3;
+ border: BUTTON_TICKERNOTI_BG_BORDER_INC;
border_scale: 1;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_06_press.png";
+ image {
+ normal: "00_button_06_press.png";
+ }
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_06_dim.png";
+ image {
+ normal: "00_button_06_dim.png";
+ }
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_06_press.png";
+ image {
+ normal: "00_button_06_press.png";
+ }
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 5 5;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: BUTTON_TICKERNOTI_BG_MIN_INC;
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
+ }
+ description { state: "icononly" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
+ }
+ }
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
- min: 5 5;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
+ visible: 0;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
- color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
- min: 24 24;
- max: 24 24;
+ visible: 0;
+ min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
+ max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
- color: 0 0 0 0;
}
description { state: "icononly" 0.0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
min: 0 0;
- color: 0 255 0 100;
+ visible: 0;
}
description { state: "visible" 0.0;
- visible: 1;
+ visible: 0;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2 {
+ to: "icon_rect";
+ }
fixed: 1 0;
- min: 8 0;
- color: 0 0 0 0;
+ min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
description { state: "icononly" 0.0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
- min: 8 0;
- color: 0 0 0 0;
+ min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
+ visible: 0;
}
}
part { name: "elm.swallow.content";
type: SWALLOW;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
- min: 24 24;
- max: 24 24;
+ min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
+ max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_before_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_before_text";
+ to_y: "padding_right_bottom";
+ }
}
description { state: "icononly" 0.0;
- visible: 1;
- min: 30 20;
- max: 30 20;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
+ max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
align: 0.5 0.5;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
}
}
part { name: "elm.text";
type: TEXT;
mouse_events: 0;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
- color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_after_icon";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
text {
- font: "SLP:style=Roman";
- size: 20;
- min: 0 0;
- align: 0.5 0.5;
+ font: "SLP:style=Medium";
+ size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
+ min: 1 0;
+ max: 1 0;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 90 24;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 0 0;
- color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
+ color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
- color: BUTTON_TEXT_TICKERNOTI_DISABLED_COLOR_INC;
+ color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
visible: 1;
- min: 90 24;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
- min: 0 0;
- color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
+ color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
}
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ set_state(PART:"bg", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ set_state(PART:"bg", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ set_state(PART:"bg", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ set_state(PART:"bg", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
source: "elm";
action: STATE_SET "default" 0.0;
target: "elm.swallow.content";
- target: "icon_rect";
target: "padding_after_icon";
+ target: "icon_rect";
+ target: "bg";
}
program { name: "disable";
signal: "elm,state,disabled";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
size: CHECK_ONOFF_ON_FONT_SIZE_INC;
fit: 1 1;
align: 0.2 0.5;
- size_range: 12 18;
+ size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
min: 0 0;
}
}
size: 16;
align: 0.2 0.5;
fit: 1 1;
- size_range: 12 18;
+ size_range: 12 CHECK_ONOFF_ON_FONT_SIZE_INC;
min: 0 0;
}
}
size: CHECK_ONOFF_OFF_FONT_SIZE_INC;
fit: 1 1;
align: 0.2 0.5;
- size_range: 12 18;
+ size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
min: 0 0;
}
}
size: 16;
align: 0.2 0.5;
fit: 1 1;
- size_range: 12 18;
+ size_range: 12 CHECK_ONOFF_OFF_FONT_SIZE_INC;
min: 0 0;
}
}
////////////////////////////////////////////////////////////////////////////////
group { name: "elm/check/base/delete";
images {
- image: "00_button_delete.png" COMP;
- image: "00_button_delete_press.png" COMP;
- image: "00_button_delete_dim.png" COMP;
- image: "00_button_delete_text.png" COMP;
- image: "00_button_delete_text_press.png" COMP;
+ image: "00_button_icon_minus.png" COMP;
+ image: "00_button_icon_minus_press.png" COMP;
+ image: "00_button_edit.png" COMP;
+ image: "00_button_edit_press.png" COMP;
+ image: "00_button_edit_dim.png" COMP;
}
script {
public button_state = 0; //0:enabled, 1: disabled
}
parts {
- part {
- name: "bg";
- mouse_events: 1;
+ part { name: "bg1";
scale: 1;
- type: IMAGE;
description { state: "default" 0.0;
align: 1.0 0.5;
- min: 40 40;
- max: 40 40;
- rel1.relative: 1.0 0.0;
- fixed: 1 0;
- image.normal: "00_button_delete.png";
+ rel1 {
+ to: "bg2";
+ }
+ rel2 {
+ to: "bg2";
+ }
+ image {
+ normal: "00_button_edit.png";
+ border: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_BORDER_INC;
+ border_scale: 1;
+ }
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_delete_press.png";
+ image {
+ normal: "00_button_edit_press.png";
+ }
}
description { state: "intermediate" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_delete_dim.png";
- }
- }
- part {
- name: "clipper";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 40 40;
- max: 40 40;
- color: 255 255 255 255;
- }
- description { state: "on" 0.0;
- align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
- color: 255 255 255 255;
+ image {
+ normal: "00_button_edit_dim.png";
+ }
}
}
- part {
- name: "bg_expand";
- mouse_events: 0;
+ part { name: "bg2";
scale: 1;
- type: IMAGE;
- clip_to: "clipper";
description { state: "default" 0.0;
- align: 0.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
- fixed: 1 0;
- }
- description { state: "clicked" 0.0;
- align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
- fixed: 1 0;
- image.normal: "00_button_delete_text_press.png";
- }
- description { state: "intermediate" 0.0;
- align: 0.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 0 0; to_x: "bg"; }
- rel2 { relative: 0 1; to_x: "bg"; }
- fixed: 1 0;
- }
- description { state: "on" 0.0;
align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
- fixed: 1 0;
- }
- }
- part { name: "check";
- type: TEXT;
- mouse_events: 0;
- scale:1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.8 0.5;
- min: 0 0;
- text {
- font: "SLP:style=Medium";
- size: 20;
- min: 0 0;
- align: 0.5 0.5;
- text: "";
+ min: CHECK_STYLE_DELETE_BUTTON_BG_IMAGE_MIN_MAX_WIDTH_INC;
+ max: CHECK_STYLE_DELETE_BUTTON_BG_IMAGE_MIN_MAX_WIDTH_INC;
+ rel1 {
+ relative: 1.0 0.0;
}
- }
- description { state: "visible" 0.0;
- visible: 1;
- align: 0.8 0.5;
- min: 75 40;
- max: 75 40;
- color: CHECK_DELETE_TEXT_DELETE_NORMAL_COLOR_INC;
- text {
- font: "SLP:style=Medium";
- size: 20;
- min: 1 0;
- align: 0.0 0.5;
- text: "Delete";
- }
- }
- description { state: "visible_pressed" 0.0;
- inherit: "visible" 0.0;
- color: CHECK_DELETE_TEXT_DELETE_PRESS_COLOR_INC;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- description { state: "default" 0.0;
fixed: 1 0;
- visible: 0;
- color: 255 255 255 255;
- align: 0.0 0.5;
- rel1.to_x: "bg";
- rel1.relative: 1.0 0.0;
- rel1.offset: 1 1;
- rel2.to_x: "bg";
- rel2.relative: 1.0 1.0;
- rel2.offset: 2 -2;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 128 128 128 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 128 128 128 128;
- fixed: 1 1;
- visible: 1;
- aspect: 1.0 1.0;
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
- rel2 { relative: 1.0 0.5; offset: -2 -2; }
- color: 255 255 255 255;
- align: 0.0 0.5;
- text {
- style: "check_label_textblock_style";
- min: 0 0;
- }
- color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
- }
- }
- part { name: "events1";
- type: RECT;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to_x: "elm.text";
- align: 0.0 0.5;
- }
- description { state: "visible" 0.0;
- color: 0 0 0 0;
- rel1.to: "bg_expand";
- rel2.to_x: "elm.text";
- align: 0.0 0.5;
- }
- }
- part { name: "events2";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to_x: "elm.text";
- align: 0.0 0.5;
- }
- description { state: "visible" 0.0;
- color: 0 0 0 0;
- rel1.to: "bg_expand";
- rel2.to_x: "elm.text";
- align: 0.0 0.5;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- rel2.to_x: "elm.text";
- 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: "events1";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible_pressed"))
- set_state(PART:"check", "visible", 0.0);
- }
- after: "toggle";
- }
- program { name: "toggle";
- action: SIGNAL_EMIT "elm,action,check,toggle" "";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"bg", st, 30, vl);
- if (!strcmp(st, "on")) {
- emit("elm,action,check,toggle", "");
- }
- }
- }
- program { name: "click_down";
- signal: "mouse,down,1";
- source: "events2";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible"))
- {
- set_state(PART:"bg_expand", "clicked", 0.0);
- set_state(PART:"check", "visible_pressed", 0.0);
- }
- else
- set_state(PART:"bg", "clicked", 0.0);
- }
- }
- program { name: "check_normal";
- signal: "mouse,up,1";
- source: "events2";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible_pressed"))
- {
- set_state(PART:"bg_expand", "on", 0.0);
- set_state(PART:"check", "visible", 0.0);
+ image {
+ normal: "00_button_icon_minus.png";
}
- get_state(PART:"bg_expand", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"bg", "default", 0.0);
- }
- }
- program { name: "check_on";
- signal: "elm,state,check,on";
- source: "elm";
- action: STATE_SET "on" 0.0;
- target: "clipper";
- after: "start_expand";
- }
- program { name: "start_expand";
- action: STATE_SET "intermediate" 0.0;
- target: "bg";
- target: "bg_expand";
- after: "expand";
- }
- program { name: "expand";
- action: STATE_SET "on" 0.0;
- target: "bg_expand";
- target: "bg";
- transition: ACCELERATE 0.1;
- after: "check_visible";
- }
- program { name: "check_visible";
- action: STATE_SET "visible" 0.0;
- target: "check";
- target: "events1";
- target: "events2";
- }
- program { name: "check_off";
- signal: "elm,state,check,off";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "check";
- after: "contract";
- }
- program { name: "contract";
- action: STATE_SET "intermediate" 0.0;
- target: "bg_expand";
- transition: ACCELERATE 0.1;
- after: "normal_bg";
- }
- program { name: "normal_bg";
- script {
- if(get_int(button_state) !=1)
- set_state(PART:"bg", "default", 0.0);
- else
- set_state(PART:"bg", "disabled", 0.0);
- }
- after: "bg_default";
- }
- program { name: "bg_default";
- action: STATE_SET "default" 0.0;
- target: "bg_expand";
- target: "clipper";
- target: "events1";
- target: "events2";
- }
- 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: "disabler";
- target: "bg";
- 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);
- set_int(button_state, 1);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- target: "bg";
- 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);
- set_int(button_state, 0);
- }
- }
- }
- }
-
- group { name: "elm/check/base/delete/extended";
- images {
- image: "00_button_delete.png" COMP;
- image: "00_button_delete_press.png" COMP;
- image: "00_button_delete_dim.png" COMP;
- image: "00_button_delete_text.png" COMP;
- image: "00_button_delete_text_press.png" COMP;
- }
- script {
- public button_state = 0; //0:enabled, 1: disabled
- }
- parts {
- part {
- name: "bg";
- mouse_events: 1;
- scale: 1;
- type: IMAGE;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 40 40;
- max: 40 40;
- rel1.relative: 1.0 0.0;
- fixed: 1 0;
- image.normal: "00_button_delete.png";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_delete_press.png";
+ image {
+ normal: "00_button_icon_minus_press.png";
+ }
}
description { state: "intermediate" 0.0;
inherit: "default" 0.0;
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image.normal: "00_button_delete_dim.png";
+ image {
+ normal: "00_button_icon_minus.png";
+ }
}
}
- part {
- name: "clipper";
+ part { name: "clipper";
type: RECT;
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
align: 1.0 0.5;
- min: 40 40;
- max: 40 40;
+ min: CHECK_STYLE_DELETE_BUTTON_BG_IMAGE_MIN_MAX_WIDTH_INC;
+ max: CHECK_STYLE_DELETE_BUTTON_BG_IMAGE_MIN_MAX_WIDTH_INC;
color: 255 255 255 255;
}
description { state: "on" 0.0;
align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
+ min: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
+ max: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
color: 255 255 255 255;
}
}
- part {
- name: "bg_expand";
+ part { name: "bg_expand";
mouse_events: 0;
scale: 1;
- type: IMAGE;
clip_to: "clipper";
description { state: "default" 0.0;
align: 0.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
+ min: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
+ max: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
+ image {
+ normal: "00_button_edit.png";
+ border: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_BORDER_INC;
+ border_scale: 1;
+ }
+ rel1 {
+ relative: 1 0;
+ to_x: "bg2";
+ }
+ rel2 {
+ to_x: "bg2";
+ }
fixed: 1 0;
}
description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
- fixed: 1 0;
- image.normal: "00_button_delete_text_press.png";
+ image {
+ normal: "00_button_edit_press.png";
+ }
}
description { state: "intermediate" 0.0;
- align: 0.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 0 0; to_x: "bg"; }
- rel2 { relative: 0 1; to_x: "bg"; }
- fixed: 1 0;
+ inherit: "default" 0.0;
+ rel1 {
+ relative: 0 0;
+ to_x: "bg2";
+ }
+ rel2 {
+ relative: 0 1;
+ to_x: "bg2";
+ }
}
description { state: "on" 0.0;
+ inherit: "default" 0.0;
align: 1.0 0.5;
- min: 117 40;
- max: 117 40;
- image.normal: "00_button_delete_text.png";
- image.border: 32 16 0 0;
- image.border_scale: 1;
- rel1 { relative: 1 0; to_x: "bg"; }
- rel2 { relative: 1 1; to_x: "bg"; }
- fixed: 1 0;
}
}
part { name: "check";
type: TEXT;
mouse_events: 0;
- scale:1;
+ scale: 1;
description { state: "default" 0.0;
visible: 0;
- align: 0.8 0.5;
+ align: 1.0 0.5;
min: 0 0;
text {
font: "SLP:style=Medium";
- size: 20;
+ size: CHECK_STYLE_DELETE_BUTTON_TEXT_FONT_SIZE_INC;
min: 0 0;
- align: 0.5 0.5;
text: "";
}
}
description { state: "visible" 0.0;
- visible: 1;
- align: 0.8 0.5;
- min: 75 40;
- max: 75 40;
+ align: 1.0 0.5;
+ min: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
+ max: CHECK_STYLE_DELETE_BUTTON_BG_EXPAND_IMAGE_MIN_MAX_WIDTH_INC;
color: CHECK_DELETE_TEXT_DELETE_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
- size: 20;
+ size: CHECK_STYLE_DELETE_BUTTON_TEXT_FONT_SIZE_INC;
min: 1 0;
- align: 0.0 0.5;
text: "Delete";
}
}
visible: 0;
color: 255 255 255 255;
align: 0.0 0.5;
- rel1.to_x: "bg";
- rel1.relative: 1.0 0.0;
- rel1.offset: 1 1;
- rel2.to_x: "bg";
- rel2.relative: 1.0 1.0;
- rel2.offset: 2 -2;
+ rel1 {
+ to_x: "bg2";
+ relative: 1.0 0.0;
+ offset: 1 1;
+ }
+ rel2 {
+ to_x: "bg2";
+ relative: 1.0 1.0;
+ offset: 2 -2;
+ }
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
description { state: "default" 0.0;
visible: 0;
fixed: 1 1;
- rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
- rel2 { relative: 1.0 0.5; offset: -2 -2; }
+ rel1 {
+ relative: 1.0 0.5;
+ offset: 1 1;
+ to_x: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 0.5;
+ offset: -2 -2;
+ }
color: 255 255 255 255;
align: 0.0 0.5;
text {
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to_x: "elm.text";
+ rel1 {
+ to: "bg2";
+ }
+ rel2 {
+ to_x: "elm.text";
+ }
align: 0.0 0.5;
- fixed: 1 0;
- min: 60 75;
}
description { state: "visible" 0.0;
color: 0 0 0 0;
- rel1.to: "bg_expand";
- rel2.to_x: "elm.text";
+ rel1 {
+ to: "bg_expand";
+ }
+ rel2 {
+ to_x: "elm.text";
+ }
align: 0.0 0.5;
- fixed: 1 0;
- min: 60 75;
}
}
part { name: "events2";
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to_x: "elm.text";
+ rel1 {
+ to: "bg2";
+ }
+ rel2 {
+ to_x: "elm.text";
+ }
align: 0.0 0.5;
- fixed: 1 0;
- min: 60 75;
}
description { state: "visible" 0.0;
color: 0 0 0 0;
- rel1.to: "bg_expand";
- rel2.to_x: "elm.text";
+ rel1 {
+ to: "bg_expand";
+ }
+ rel2 {
+ to_x: "elm.text";
+ }
align: 0.0 0.5;
- fixed: 1 0;
- min: 60 75;
}
}
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
- rel2.to_x: "elm.text";
+ rel2 {
+ to_x: "elm.text";
+ }
color: 0 0 0 0;
visible: 0;
}
new Float:vl;
get_state(PART:"check", st, 30, vl);
if (!strcmp(st, "visible_pressed"))
- set_state(PART:"check", "visible", 0.0);
+ set_state(PART:"check", "visible", 0.0);
}
after: "toggle";
}
script {
new st[31];
new Float:vl;
- get_state(PART:"bg", st, 30, vl);
+ get_state(PART:"bg2", st, 30, vl);
if (!strcmp(st, "on")) {
- emit("elm,action,check,toggle", "");
+ emit("elm,action,check,toggle", "");
}
}
}
new Float:vl;
get_state(PART:"check", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"bg_expand", "clicked", 0.0);
- set_state(PART:"check", "visible_pressed", 0.0);
+ {
+ set_state(PART:"bg_expand", "clicked", 0.0);
+ set_state(PART:"check", "visible_pressed", 0.0);
+ }
+ else {
+ set_state(PART:"bg2", "clicked", 0.0);
+ set_state(PART:"bg1", "clicked", 0.0);
}
- else
- set_state(PART:"bg", "clicked", 0.0);
}
}
program { name: "check_normal";
new Float:vl;
get_state(PART:"check", st, 30, vl);
if (!strcmp(st, "visible_pressed"))
- {
- set_state(PART:"bg_expand", "on", 0.0);
- set_state(PART:"check", "visible", 0.0);
- }
+ {
+ set_state(PART:"bg_expand", "on", 0.0);
+ set_state(PART:"check", "visible", 0.0);
+ }
get_state(PART:"bg_expand", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"bg", "default", 0.0);
+ if (!strcmp(st, "default")) {
+ set_state(PART:"bg2", "default", 0.0);
+ set_state(PART:"bg1", "default", 0.0);
+ }
}
}
program { name: "check_on";
after: "start_expand";
}
program { name: "start_expand";
- action: STATE_SET "intermediate" 0.0;
- target: "bg";
+ action: STATE_SET "intermediate" 0.0;
+ target: "bg2";
+ target: "bg1";
target: "bg_expand";
after: "expand";
}
program { name: "expand";
action: STATE_SET "on" 0.0;
target: "bg_expand";
- target: "bg";
+ target: "bg2";
+ target: "bg1";
transition: ACCELERATE 0.1;
after: "check_visible";
}
program { name: "check_visible";
- action: STATE_SET "visible" 0.0;
+ action: STATE_SET "visible" 0.0;
target: "check";
target: "events1";
target: "events2";
program { name: "check_off";
signal: "elm,state,check,off";
source: "elm";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default" 0.0;
target: "check";
after: "contract";
}
program { name: "contract";
- action: STATE_SET "intermediate" 0.0;
+ action: STATE_SET "intermediate" 0.0;
target: "bg_expand";
transition: ACCELERATE 0.1;
after: "normal_bg";
}
program { name: "normal_bg";
script {
- if(get_int(button_state) !=1)
- set_state(PART:"bg", "default", 0.0);
- else
- set_state(PART:"bg", "disabled", 0.0);
+ if (get_int(button_state) !=1) {
+ set_state(PART:"bg2", "default", 0.0);
+ set_state(PART:"bg1", "default", 0.0);
+ }
+ else {
+ set_state(PART:"bg2", "disabled", 0.0);
+ set_state(PART:"bg1", "disabled", 0.0);
+ }
}
after: "bg_default";
}
program { name: "bg_default";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default" 0.0;
target: "bg_expand";
target: "clipper";
target: "events1";
program { name: "text_show";
signal: "elm,state,text,visible";
source: "elm";
- action: STATE_SET "visible" 0.0;
+ 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;
+ 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;
+ 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;
+ action: STATE_SET "default" 0.0;
target: "elm.swallow.content";
}
program { name: "disable";
source: "elm";
action: STATE_SET "disabled" 0.0;
target: "disabler";
- target: "bg";
+ target: "bg2";
+ target: "bg1";
after: "disable_text";
}
program { name: "disable_text";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ 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);
+ set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
else
- set_state(PART:"elm.swallow.content", "disabled", 0.0);
+ set_state(PART:"elm.swallow.content", "disabled", 0.0);
set_int(button_state, 1);
}
}
source: "elm";
action: STATE_SET "default" 0.0;
target: "disabler";
- target: "bg";
+ target: "bg2";
+ target: "bg1";
after: "enable_text";
}
program { name: "enable_text";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
-
+ 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);
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
else
- set_state(PART:"elm.swallow.content", "default", 0.0);
+ set_state(PART:"elm.swallow.content", "default", 0.0);
set_int(button_state, 0);
}
}