Work on a combo
This commit is contained in:
@ -14,4 +14,5 @@ collections {
|
||||
#include "groups/check.edc"
|
||||
#include "groups/burn_image.edc"
|
||||
#include "groups/entry.edc"
|
||||
#include "groups/combo.edc"
|
||||
}
|
||||
|
267
experimental/ecdb/trunk/data/themes/default/groups/combo.edc
Normal file
267
experimental/ecdb/trunk/data/themes/default/groups/combo.edc
Normal file
@ -0,0 +1,267 @@
|
||||
/* 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";
|
||||
}
|
||||
}
|
||||
|
@ -120,6 +120,28 @@ group {
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "ecdb/erase/drive";
|
||||
type: SWALLOW;
|
||||
repeat_events: 1;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
|
||||
rel1 {
|
||||
to: "ecdb/erase/speed";
|
||||
relative: 0.0 1.0;
|
||||
offset: 0 5;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "ecdb/erase/speed";
|
||||
relative: 1.0 1.0;
|
||||
offset: 0 30;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "progress_outline";
|
||||
type: IMAGE;
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 467 B |
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 996 B |
Binary file not shown.
After Width: | Height: | Size: 302 B |
@ -20,4 +20,9 @@ images {
|
||||
image: "button_disabled.png" COMP;
|
||||
image: "entry.png" COMP;
|
||||
image: "entry_focus.png" COMP;
|
||||
image: "combobox_focus.png" COMP;
|
||||
image: "combobox_button.png" COMP;
|
||||
image: "combobox_button_clicked.png" COMP;
|
||||
image: "combobox_button_disabled.png" COMP;
|
||||
image: "combo_arrow.png" COMP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user