legacy/experimental/ecdb/trunk/data/themes/default/groups/combo.edc
2008-12-19 05:48:23 +00:00

268 lines
5.3 KiB
Plaintext

/* vim: set sw=3 ts=3 sts=3 expandtab: */
group {
name: "ecdb/combo/background";
parts {
part {
name: "base";
type: RECT;
description {
state: "default" 0.0;
color: 255 255 255 0;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 0.0 0.0;
offset: -1 -1;
}
}
description {
state: "active" 0.0;
inherit: "default" 0.0;
color: 255 255 255 128;
}
}
}
programs {
program {
name: "set_active";
signal: "ecdb,combo,back,show";
source: "ecbd";
action: STATE_SET "active" 0.0;
target: "base";
}
program {
name: "set_default";
signal: "ecdb,combo,back,hide";
source: "ecdb";
action: STATE_SET "default" 0.0;
target: "base";
}
}
}
group {
name: "ecdb/combo";
parts {
part {
name: "base";
type: IMAGE;
mouse_events: 0;
description {
state: "default" 0.0;
color: 255 255 255 178;
min: 0 24;
image {
normal: "button_base.png";
border: 7 7 7 7;
}
}
}
part {
name: "focus_clip";
type: RECT;
mouse_events: 0;
description {
state: "default" 0.0;
color: 255 255 255 0;
rel1 {
to: "combo_button";
}
rel2 {
to: "combo_button";
}
}
description {
state: "clicked" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part {
name: "focus";
type: IMAGE;
mouse_events: 0;
clip_to: "focus_clip";
description {
state: "default" 0.0;
rel1 {
to: "combo_button";
}
rel2 {
to: "combo_button";
}
image {
normal: "combobox_focus.png";
border: 7 7 7 7;
}
}
}
part {
name: "combo_button";
type: IMAGE;
description {
state: "default" 0.0;
min: 0 22;
rel1 {
to: "base";
relative: 0.0 0.0;
offset: 3 1;
}
rel2 {
to: "base";
relative: 1.0 1.0;
offset: -4 -3;
}
image {
normal: "combobox_button.png";
border: 7 23 7 7;
}
}
description {
state: "clicked" 0.0;
inherit: "default" 0.0;
image {
normal: "combobox_button_clicked.png";
}
}
description {
state: "disabled" 0.0;
inherit: "default" 0.0;
image {
normal: "combobox_button_disabled.png";
}
}
}
part {
name: "combo_arrows";
type: IMAGE;
description {
state: "default" 0.0;
min: 9 13;
max: 9 13;
align: 1.0 0.5;
rel1 {
to: "combo_button";
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 1.0 1.0;
offset: -11 -1;
}
image {
normal: "combo_arrow.png";
}
fill {
smooth: 0;
}
}
}
}
programs {
program {
name: "clicked";
action: STATE_SET "clicked" 0.0;
signal: "mouse,down,1";
source: "*";
target: "combo_button";
}
program {
name: "focus_in,mouse";
signal: "mouse,down,1";
action: STATE_SET "clicked" 0.0;
source: "*";
target: "focus_clip";
transition: DECELERATE 0.5;
}
program {
name: "focus_in,ecdb";
signal: "ecdb,focus,in";
action: STATE_SET "clicked" 0.0;
source: "*";
target: "focus_clip";
transition: DECELERATE 0.5;
}
program {
name: "unclick1";
signal: "mouse,clicked,1";
source: "*";
action: STATE_SET "default" 0.0;
target: "combo_button";
}
program {
name: "unclick2";
signal: "mouse,up,1";
source: "*";
action: STATE_SET "default" 0.0;
target: "combo_button";
}
program {
name: "focus_out";
signal: "ecdb,focus,out";
action: STATE_SET "default" 0.0;
source: "ecdb";
target: "focus_clip";
transition: DECELERATE 0.5;
}
program {
name: "disable";
signal: "ecdb,disable";
action: STATE_SET "disabled" 0.0;
source: "ecdb";
target: "combo_button";
}
program {
name: "enable";
signal: "ecdb,enable";
action: STATE_SET "default" 0.0;
source: "ecdb";
target: "combo_button";
}
}