2011-08-02 07:07:53 -07:00
|
|
|
group { name: "elm/button/base/default";
|
2012-03-05 15:51:56 -08:00
|
|
|
alias: "elm/button/base/popup_button/default";
|
2011-08-02 07:07:53 -07:00
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
min: 12 12;
|
2011-08-02 07:07:53 -07:00
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
image.middle: SOLID;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2012-05-02 18:19:05 -07:00
|
|
|
part { name: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
fixed: 1 0;
|
|
|
|
visible: 0;
|
|
|
|
align: 0.0 0.5;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 2 2;
|
|
|
|
rel2.offset: 1 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 0.0 1.0;
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
fixed: 1 0;
|
|
|
|
visible: 1;
|
|
|
|
aspect: 1.0 1.0;
|
|
|
|
// aspect_preference: VERTICAL;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel2.offset: 2 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
description { state: "icononly" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
fixed: 0 0;
|
|
|
|
visible: 1;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
// aspect: 1.0 1.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 1.0 1.0;
|
|
|
|
// aspect_preference: VERTICAL;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "elm.text";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
visible: 0;
|
2012-05-02 18:19:05 -07:00
|
|
|
rel1.to_x: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
rel1.relative: 1.0 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 0 2;
|
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
color: 224 224 224 255;
|
|
|
|
color3: 0 0 0 64;
|
|
|
|
text {
|
|
|
|
font: "Sans,Edje-Vera";
|
|
|
|
size: 10;
|
|
|
|
min: 0 0;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
color: 0 0 0 128;
|
|
|
|
color3: 0 0 0 0;
|
|
|
|
visible: 1;
|
|
|
|
text.min: 1 1;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
fill.smooth : 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
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;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: SIGNAL_EMIT "elm,action,unpress" "";
|
|
|
|
after: "button_unclick_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_pressed_anim";
|
|
|
|
signal: "elm,anim,activate";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
after: "button_unpressed_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unpressed_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
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;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "icononly"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-11-28 20:56:08 -08:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
|
|
|
if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
|
|
|
|
set_state(PART:"elm.text", "disabled_visible", 0.0);
|
|
|
|
else
|
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "text_hide";
|
|
|
|
signal: "elm,state,text,hidden";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "visible"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
2011-11-28 20:56:08 -08:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
|
|
|
if (!strcmp(st, "default") || (!strcmp(st, "visible")))
|
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
|
|
|
else
|
|
|
|
set_state(PART:"elm.text", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "icon_hide";
|
|
|
|
signal: "elm,state,icon,hidden";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2012-05-02 18:19:05 -07:00
|
|
|
target: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"button_image", "disabled", 0.0);
|
|
|
|
set_state(PART:"over1", "disabled", 0.0);
|
|
|
|
set_state(PART:"over2", "disabled", 0.0);
|
|
|
|
set_state(PART:"disabler", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
2011-11-28 20:56:08 -08:00
|
|
|
if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
|
|
|
|
set_state(PART:"elm.text", "disabled_visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"elm.text", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"button_image", "visible", 0.0);
|
|
|
|
set_state(PART:"over1", "visible", 0.0);
|
|
|
|
set_state(PART:"over2", "visible", 0.0);
|
|
|
|
set_state(PART:"disabler", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
2011-11-28 20:56:08 -08:00
|
|
|
if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
|
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 02:47:05 -07:00
|
|
|
|
2011-08-02 07:07:53 -07:00
|
|
|
group { name: "elm/button/base/hoversel_vertical/default";
|
|
|
|
alias: "elm/button/base/hoversel_vertical/entry";
|
|
|
|
alias: "elm/button/base/hoversel_horizontal/default";
|
|
|
|
alias: "elm/button/base/hoversel_horizontal/entry";
|
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "updown.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
image.middle: SOLID;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
|
|
|
image.middle: SOLID;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "arrow";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image.normal: "updown.png";
|
|
|
|
aspect: 0.6666666666 0.6666666666;
|
|
|
|
aspect_preference: VERTICAL;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 3 4;
|
|
|
|
rel2.offset: 3 -4;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 0.0 1.0;
|
|
|
|
align: 0.0 0.5;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2012-05-02 18:19:05 -07:00
|
|
|
part { name: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
fixed: 1 0;
|
|
|
|
visible: 0;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
rel1 {
|
|
|
|
to_x: "arrow";
|
2012-06-20 20:51:00 -07:00
|
|
|
offset: 1 2;
|
2011-08-02 07:07:53 -07:00
|
|
|
relative: 1.0 0.0;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
to_x: "arrow";
|
2012-06-20 20:51:00 -07:00
|
|
|
offset: 0 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
relative: 1.0 1.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2012-07-12 04:11:21 -07:00
|
|
|
fixed: 1 0;
|
2011-08-02 07:07:53 -07:00
|
|
|
visible: 1;
|
|
|
|
aspect: 1.0 1.0;
|
2012-07-12 04:11:21 -07:00
|
|
|
// aspect_preference: VERTICAL;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.offset: 2 -5;
|
|
|
|
}
|
|
|
|
description { state: "icononly" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
fixed: 0 0;
|
|
|
|
visible: 1;
|
|
|
|
align: 0.5 0.5;
|
2012-07-12 04:11:21 -07:00
|
|
|
// aspect: 1.0 1.0;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel1 {
|
|
|
|
to_x: "button_image";
|
2012-06-20 20:51:00 -07:00
|
|
|
offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
relative: 1.0 1.0;
|
|
|
|
}
|
2012-07-12 04:11:21 -07:00
|
|
|
// aspect_preference: VERTICAL;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "elm.text";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
visible: 0;
|
2012-05-02 18:19:05 -07:00
|
|
|
rel1.to_x: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
rel1.relative: 1.0 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 0 2;
|
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
color: 224 224 224 255;
|
|
|
|
color3: 0 0 0 64;
|
|
|
|
text {
|
|
|
|
font: "Sans,Edje-Vera";
|
|
|
|
size: 10;
|
|
|
|
min: 0 0;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
text.min: 1 1;
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 0 0 0 128;
|
|
|
|
color3: 0 0 0 0;
|
|
|
|
}
|
|
|
|
description { state: "disabled_visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 0 0 0 128;
|
|
|
|
color3: 0 0 0 0;
|
|
|
|
visible: 1;
|
|
|
|
text.min: 1 1;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
|
|
|
}
|
|
|
|
fill.smooth : 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "disabler";
|
|
|
|
type: RECT;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 0 0 0 0;
|
|
|
|
visible: 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
name: "button_click";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,up,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;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "icononly"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "text_hide";
|
|
|
|
signal: "elm,state,text,hidden";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "visible"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
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"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "icon_hide";
|
|
|
|
signal: "elm,state,icon,hidden";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2012-05-02 18:19:05 -07:00
|
|
|
target: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
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);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2011-08-02 02:47:05 -07:00
|
|
|
|
2011-08-02 07:07:53 -07:00
|
|
|
group { name: "elm/button/base/hoversel_vertical_entry/default";
|
|
|
|
alias: "elm/button/base/hoversel_vertical_entry/entry";
|
|
|
|
alias: "elm/button/base/hoversel_horizontal_entry/default";
|
|
|
|
alias: "elm/button/base/hoversel_horizontal_entry/entry";
|
|
|
|
images {
|
|
|
|
image: "hoversel_entry_bg.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image.normal: "hoversel_entry_bg.png";
|
|
|
|
image.border: 0 0 2 2;
|
|
|
|
fill.smooth: 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2012-05-02 18:19:05 -07:00
|
|
|
part { name: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
align: 0.0 0.5;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 2 2;
|
|
|
|
rel2.offset: 1 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 0.0 1.0;
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2012-07-12 04:11:21 -07:00
|
|
|
fixed: 1 0;
|
2011-08-02 07:07:53 -07:00
|
|
|
visible: 1;
|
|
|
|
aspect: 1.0 1.0;
|
2012-07-12 04:11:21 -07:00
|
|
|
// aspect_preference: VERTICAL;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel2.offset: 0 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
description { state: "icononly" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2012-07-12 04:11:21 -07:00
|
|
|
fixed: 0 0;
|
2011-08-02 07:07:53 -07:00
|
|
|
visible: 1;
|
|
|
|
align: 0.5 0.5;
|
2012-07-12 04:11:21 -07:00
|
|
|
// aspect: 1.0 1.0;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.offset: -5 -5;
|
2012-07-12 04:11:21 -07:00
|
|
|
// rel2.relative: 1.0 1.0;
|
2011-08-02 07:07:53 -07:00
|
|
|
aspect_preference: VERTICAL;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "textvis";
|
|
|
|
type: RECT;
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
visible: 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "visible" 0.0;
|
|
|
|
visible: 1;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "elm.text";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
clip_to: "textvis";
|
|
|
|
description { state: "default" 0.0;
|
2012-05-02 18:19:05 -07:00
|
|
|
rel1.to_x: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
rel1.relative: 1.0 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 0 2;
|
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
color: 224 224 224 255;
|
|
|
|
color3: 0 0 0 64;
|
|
|
|
text {
|
|
|
|
font: "Sans,Edje-Vera";
|
|
|
|
size: 10;
|
|
|
|
min: 0 0;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
text.min: 1 1;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
text.min: 1 1;
|
|
|
|
color: 0 0 0 255;
|
|
|
|
color3: 0 0 0 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
part { name: "over2";
|
|
|
|
type: RECT;
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 0 0 0 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
name: "button_click";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "elm.text";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "elm.text";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,up,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;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "icononly"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
set_state(PART:"textvis", "visible", 0.0);
|
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "text_hide";
|
|
|
|
signal: "elm,state,text,hidden";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "visible"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
set_state(PART:"textvis", "default", 0.0);
|
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "icon_show";
|
|
|
|
signal: "elm,state,icon,visible";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
|
|
|
get_state(PART:"textvis", st, 30, vl);
|
|
|
|
if (!strcmp(st, "visible"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
program { name: "icon_hide";
|
|
|
|
signal: "elm,state,icon,hidden";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2012-05-02 18:19:05 -07:00
|
|
|
target: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2011-08-02 02:47:05 -07:00
|
|
|
|
2011-08-02 07:07:53 -07:00
|
|
|
group { name: "elm/button/base/anchor";
|
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
min: 12 12;
|
2011-08-02 07:07:53 -07:00
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
image.middle: SOLID;
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
inherit: "visible" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
|
|
|
image.middle: SOLID;
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
inherit: "visible" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2012-05-02 18:19:05 -07:00
|
|
|
part { name: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
fixed: 1 0;
|
|
|
|
visible: 0;
|
|
|
|
align: 0.0 0.5;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 2 2;
|
|
|
|
rel2.offset: 1 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 0.0 1.0;
|
|
|
|
}
|
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
fixed: 1 0;
|
|
|
|
visible: 1;
|
|
|
|
aspect: 1.0 1.0;
|
|
|
|
aspect_preference: VERTICAL;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel2.offset: 2 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
description { state: "icononly" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
fixed: 0 0;
|
|
|
|
visible: 1;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
aspect: 1.0 1.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
rel2.relative: 1.0 1.0;
|
|
|
|
aspect_preference: VERTICAL;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "elm.text";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
visible: 0;
|
2012-05-02 18:19:05 -07:00
|
|
|
rel1.to_x: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
rel1.relative: 1.0 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
rel1.offset: 0 2;
|
|
|
|
rel2.offset: -3 -3;
|
2011-08-02 07:07:53 -07:00
|
|
|
color: 224 224 224 255;
|
|
|
|
color3: 0 0 0 64;
|
|
|
|
text {
|
|
|
|
font: "Sans,Edje-Vera";
|
|
|
|
size: 10;
|
|
|
|
min: 0 0;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
color: 0 0 0 128;
|
|
|
|
color3: 0 0 0 0;
|
|
|
|
visible: 1;
|
|
|
|
text.min: 1 1;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "visible" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
inherit: "visible" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
|
|
|
}
|
|
|
|
fill.smooth : 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
part { name: "disabler";
|
|
|
|
type: RECT;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 0 0 0 0;
|
|
|
|
visible: 0;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
name: "button_mouse_in";
|
|
|
|
signal: "mouse,in";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "visible" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_mouse_out";
|
|
|
|
signal: "mouse,out";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over2";
|
|
|
|
action: STATE_SET "visible" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,up,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;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "icononly"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-11-28 20:56:08 -08:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
|
|
|
if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
|
|
|
|
set_state(PART:"elm.text", "disabled_visible", 0.0);
|
|
|
|
else
|
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "text_hide";
|
|
|
|
signal: "elm,state,text,hidden";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2012-05-02 18:19:05 -07:00
|
|
|
get_state(PART:"elm.swallow.content", st, 30, vl);
|
2011-08-02 07:07:53 -07:00
|
|
|
if (!strcmp(st, "visible"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-11-28 20:56:08 -08:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
|
|
|
if (!strcmp(st, "default") || (!strcmp(st, "visible")))
|
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
|
|
|
else
|
|
|
|
set_state(PART:"elm.text", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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"))
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2012-05-02 18:19:05 -07:00
|
|
|
set_state(PART:"elm.swallow.content", "icononly", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "icon_hide";
|
|
|
|
signal: "elm,state,icon,hidden";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2012-05-02 18:19:05 -07:00
|
|
|
target: "elm.swallow.content";
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"button_image", "disabled", 0.0);
|
|
|
|
set_state(PART:"over1", "disabled", 0.0);
|
|
|
|
set_state(PART:"over2", "disabled", 0.0);
|
|
|
|
set_state(PART:"disabler", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
2011-11-28 20:56:08 -08:00
|
|
|
if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
|
|
|
|
set_state(PART:"elm.text", "disabled_visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"elm.text", "disabled", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
script {
|
|
|
|
new st[31];
|
|
|
|
new Float:vl;
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"button_image", "visible", 0.0);
|
|
|
|
set_state(PART:"over1", "visible", 0.0);
|
|
|
|
set_state(PART:"over2", "visible", 0.0);
|
|
|
|
set_state(PART:"disabler", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
get_state(PART:"elm.text", st, 30, vl);
|
2011-11-28 20:56:08 -08:00
|
|
|
if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
|
|
|
|
set_state(PART:"elm.text", "visible", 0.0);
|
2011-08-02 07:07:53 -07:00
|
|
|
else
|
2011-11-28 20:56:08 -08:00
|
|
|
set_state(PART:"elm.text", "default", 0.0);
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
}
|
2012-07-26 02:10:25 -07:00
|
|
|
group { name: "elm/button/base/naviframe/back_btn/default";
|
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
image: "icon_left_arrow.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
min: 12 12;
|
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
image.middle: SOLID;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "prev_image";
|
|
|
|
type: IMAGE;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
min: 15 15;
|
|
|
|
max: 15 15;
|
|
|
|
fixed: 1 1;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
image.normal: "icon_left_arrow.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
|
|
|
}
|
|
|
|
fill.smooth : 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: SIGNAL_EMIT "elm,action,unpress" "";
|
|
|
|
after: "button_unclick_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_pressed_anim";
|
|
|
|
signal: "elm,anim,activate";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
after: "button_unpressed_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unpressed_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,clicked,1";
|
|
|
|
source: "over2";
|
|
|
|
action: SIGNAL_EMIT "elm,action,click" "";
|
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-11-07 18:49:57 -08:00
|
|
|
|
|
|
|
group { name: "elm/button/base/colorselector/left/default";
|
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
image: "sp_bt_l.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
min: 12 12;
|
2011-11-07 18:49:57 -08:00
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
image.middle: SOLID;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "prev_image";
|
|
|
|
type: IMAGE;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
min: 16 16;
|
|
|
|
max: 16 16;
|
|
|
|
fixed: 1 1;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
image.normal: "sp_bt_l.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
|
|
|
}
|
|
|
|
fill.smooth : 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: SIGNAL_EMIT "elm,action,unpress" "";
|
|
|
|
after: "button_unclick_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_pressed_anim";
|
|
|
|
signal: "elm,anim,activate";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
after: "button_unpressed_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unpressed_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,clicked,1";
|
|
|
|
source: "over2";
|
|
|
|
action: SIGNAL_EMIT "elm,action,click" "";
|
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group { name: "elm/button/base/colorselector/right/default";
|
|
|
|
images {
|
|
|
|
image: "bt_base1.png" COMP;
|
|
|
|
image: "bt_base2.png" COMP;
|
|
|
|
image: "bt_hilight.png" COMP;
|
|
|
|
image: "bt_shine.png" COMP;
|
|
|
|
image: "bt_glow.png" COMP;
|
|
|
|
image: "bt_dis_base.png" COMP;
|
|
|
|
image: "bt_dis_hilight.png" COMP;
|
|
|
|
image: "sp_bt_r.png" COMP;
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part { name: "button_image";
|
|
|
|
mouse_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
2012-06-20 20:51:00 -07:00
|
|
|
min: 12 12;
|
2011-11-07 18:49:57 -08:00
|
|
|
image {
|
|
|
|
normal: "bt_base2.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
image.middle: SOLID;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image.normal: "bt_base1.png";
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_base.png";
|
|
|
|
border: 4 4 4 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "prev_image";
|
|
|
|
type: IMAGE;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
min: 16 16;
|
|
|
|
max: 16 16;
|
|
|
|
fixed: 1 1;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
image.normal: "sp_bt_r.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over1";
|
|
|
|
mouse_events: 0;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel2.relative: 1.0 0.5;
|
|
|
|
image {
|
|
|
|
normal: "bt_hilight.png";
|
|
|
|
border: 7 7 7 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_dis_hilight.png";
|
|
|
|
border: 4 4 4 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over2";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "bt_shine.png";
|
|
|
|
border: 7 7 7 7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2011-08-02 07:07:53 -07:00
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "over3";
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
image {
|
|
|
|
normal: "bt_glow.png";
|
|
|
|
border: 12 12 12 12;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
fill.smooth : 0;
|
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
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;
|
2011-08-02 02:47:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-02 07:07:53 -07:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: SIGNAL_EMIT "elm,action,unpress" "";
|
|
|
|
after: "button_unclick_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_pressed_anim";
|
|
|
|
signal: "elm,anim,activate";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
after: "button_unpressed_anim";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unpressed_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_click2";
|
|
|
|
signal: "mouse,down,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick2";
|
|
|
|
signal: "mouse,up,1";
|
|
|
|
source: "over3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
transition: DECELERATE 0.5;
|
|
|
|
target: "over3";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "button_unclick3";
|
|
|
|
signal: "mouse,clicked,1";
|
|
|
|
source: "over2";
|
|
|
|
action: SIGNAL_EMIT "elm,action,click" "";
|
|
|
|
}
|
|
|
|
program { name: "disable";
|
|
|
|
signal: "elm,state,disabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
program { name: "enable";
|
|
|
|
signal: "elm,state,enabled";
|
|
|
|
source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "button_image";
|
|
|
|
target: "over1";
|
|
|
|
target: "over2";
|
|
|
|
target: "disabler";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|