Combo work... selecting doesn't seem to work at the moment, and there are valgrind errors. Getting there though.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
/* vim: set sw=3 ts=3 sts=3 expandtab: */
|
||||
group {
|
||||
name: "ecdb/button";
|
||||
min: 50 30;
|
||||
|
||||
parts {
|
||||
part {
|
||||
|
@ -26,7 +26,7 @@ group {
|
||||
description {
|
||||
state: "active" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 0 0 0 128;
|
||||
color: 0 0 0 90;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -204,6 +204,37 @@ group {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "ecdb.header";
|
||||
type: TEXT;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
color: 60 60 60 255;
|
||||
align: 0.0 0.5;
|
||||
|
||||
rel1 {
|
||||
to: "combo_button";
|
||||
relative: 0.0 0.0;
|
||||
offset: 9 0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "combo_button";
|
||||
relative: 1.0 1.0;
|
||||
offset: -1 -1;
|
||||
}
|
||||
|
||||
text {
|
||||
text: "";
|
||||
font: "ecdb/default";
|
||||
min: 1 1;
|
||||
size: 11;
|
||||
align: 0.0 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
programs {
|
||||
@ -242,7 +273,7 @@ group {
|
||||
|
||||
program {
|
||||
name: "collapse";
|
||||
signal: "ecdb,combo,collapse";
|
||||
signal: "ecdb,combo,default";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "combo_button";
|
||||
@ -250,7 +281,7 @@ group {
|
||||
|
||||
program {
|
||||
name: "expand";
|
||||
signal: "ecdb,combo,expand";
|
||||
signal: "ecdb,combo,active";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "clicked" 0.0;
|
||||
target: "combo_button";
|
||||
@ -288,5 +319,98 @@ group {
|
||||
source: "ecdb";
|
||||
target: "combo_button";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
group {
|
||||
name: "ecdb/combo/popup";
|
||||
|
||||
parts {
|
||||
part {
|
||||
name: "base";
|
||||
type: IMAGE;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
min: 1 1;
|
||||
max: 1 1;
|
||||
color: 255 255 255 0;
|
||||
visible: 1;
|
||||
|
||||
rel1 {
|
||||
relative: 0.0 0.0;
|
||||
offset: 0 0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
relative: 1.0 1.0;
|
||||
offset: -1 -1;
|
||||
}
|
||||
|
||||
image {
|
||||
normal: "background.png";
|
||||
}
|
||||
}
|
||||
|
||||
description {
|
||||
state: "active" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 200;
|
||||
max: 9999 9999;
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "ecdb.box";
|
||||
type: BOX;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
color: 255 255 255 0;
|
||||
|
||||
rel1 {
|
||||
to: "base";
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "base";
|
||||
}
|
||||
|
||||
box {
|
||||
layout: "min_size";
|
||||
padding: 1 1;
|
||||
align: 0.0 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
description {
|
||||
state: "active" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
programs {
|
||||
program {
|
||||
name: "expand";
|
||||
signal: "ecdb,combo,popup,show,*";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "active" 0.0;
|
||||
target: "base";
|
||||
target: "ecdb.box";
|
||||
transition: DECELERATE 0.2;
|
||||
}
|
||||
|
||||
program {
|
||||
name: "collapse";
|
||||
signal: "ecdb,combo,popup,hide,*";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "base";
|
||||
target: "ecdb.box";
|
||||
transition: DECELERATE 0.2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user