forked from enlightenment/enlightenment
408 lines
12 KiB
Plaintext
408 lines
12 KiB
Plaintext
group { name: "e/ilist";
|
|
images.image: "darken_rounded_square.png" COMP;
|
|
parts {
|
|
part { name: "typebuf_clip"; type: RECT;
|
|
description { state: "default" 0.0;
|
|
visible: 0;
|
|
color: 255 255 255 0;
|
|
}
|
|
description { state: "active" 0.0;
|
|
visible: 1;
|
|
color: 255 255 255 255;
|
|
}
|
|
}
|
|
part { name: "bevel"; mouse_events: 0;
|
|
clip_to: "typebuf_clip";
|
|
description { state: "default" 0.0;
|
|
rel1.offset: -15 -15;
|
|
rel1.to: "e.text.label";
|
|
rel2.offset: 14 14;
|
|
rel2.to: "e.text.label";
|
|
image.normal: "darken_rounded_square.png";
|
|
image.border: 15 15 15 15;
|
|
fill.smooth: 0;
|
|
}
|
|
}
|
|
part { name: "e.text.label"; type: TEXT; mouse_events: 0;
|
|
clip_to: "typebuf_clip";
|
|
effect: SHADOW BOTTOM;
|
|
scale: 1;
|
|
description { state: "default" 0.0;
|
|
rel1.relative: 0.5 0.5;
|
|
rel1.offset: -8 -8;
|
|
rel2.relative: 0.5 0.5;
|
|
rel2.offset: 7 7;
|
|
color: 255 255 255 255;
|
|
color3: 0 0 0 128;
|
|
color_class: "ilist_typebuf";
|
|
text { font: "Sans:style=Bold"; size: 10;
|
|
min: 1 1;
|
|
align: 0.5 0.5;
|
|
text_class: "ilist_typebuf";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program {
|
|
signal: "e,state,typebuf,start"; source: "e";
|
|
action: STATE_SET "active" 0.0;
|
|
transition: SINUSOIDAL 0.25;
|
|
target: "typebuf_clip";
|
|
}
|
|
program {
|
|
signal: "e,state,typebuf,stop"; source: "e";
|
|
action: STATE_SET "default" 0.0;
|
|
transition: SINUSOIDAL 1.0;
|
|
target: "typebuf_clip";
|
|
}
|
|
}
|
|
}
|
|
|
|
group { name: "e/widgets/ilist";
|
|
// data.item: "stacking" "above";
|
|
data.item: "stacking" "below";
|
|
data.item: "selectraise" "on";
|
|
images.image: "bevel_curved_horiz_out.png" COMP;
|
|
images.image: "shadow_rounded_horiz.png" COMP;
|
|
images.image: "vgrad_med_dark.png" COMP;
|
|
images.image: "bevel_horiz_out.png" COMP;
|
|
images.image: "shine.png" COMP;
|
|
parts {
|
|
part { name: "base"; type: RECT; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
color: 64 64 64 255;
|
|
color_class: "ilist_item_base";
|
|
}
|
|
}
|
|
part { name: "bevel"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "bevel_curved_horiz_out.png";
|
|
image.border: 0 0 2 2;
|
|
image.middle: 0;
|
|
fill.smooth: 0;
|
|
}
|
|
}
|
|
part { name: "sel_shadow"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "shadow_rounded_horiz.png";
|
|
image.border: 0 0 9 9;
|
|
rel1.offset: 0 -4;
|
|
rel2.offset: -1 5;
|
|
fill.smooth: 0;
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "sel_base"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "vgrad_med_dark.png";
|
|
fill.smooth: 0;
|
|
TILED_HORIZ(120)
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "sel_bevel"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "bevel_horiz_out.png";
|
|
image.border: 0 0 2 2;
|
|
image.middle: 0;
|
|
fill.smooth: 0;
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
align: 0.0 0.5;
|
|
aspect: 1.0 1.0; aspect_preference: VERTICAL;
|
|
rel1.offset: 2 2;
|
|
rel2.relative: 0.0 1.0;
|
|
rel2.offset: 2 -3;
|
|
}
|
|
}
|
|
part { name: "e.text.label"; type: TEXT; mouse_events: 0;
|
|
effect: SHADOW BOTTOM;
|
|
scale: 1;
|
|
description { state: "default" 0.0;
|
|
rel1.offset: 2 3;
|
|
rel1.relative: 1.0 0.0;
|
|
rel1.to_x: "e.swallow.icon";
|
|
rel2.offset: -3 -3;
|
|
rel2.relative: 0.0 1.0;
|
|
rel2.to_x: "e.swallow.end";
|
|
color: 255 255 255 255;
|
|
color3: 0 0 0 128;
|
|
color_class: "ilist_item";
|
|
text { font: "Sans"; size: 10;
|
|
min: 1 1;
|
|
align: 0.0 0.5;
|
|
text_class: "ilist_item";
|
|
}
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
description { state: "disabled" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
}
|
|
part { name: "label2"; type: TEXT; mouse_events: 0;
|
|
effect: SHADOW BOTTOM;
|
|
scale: 1;
|
|
description { state: "default" 0.0;
|
|
rel1.to: "e.text.label";
|
|
rel2.to: "e.text.label";
|
|
color: 21 21 21 255;
|
|
color3: 255 255 255 25;
|
|
color_class: "ilist_item_disabled";
|
|
text { font: "Sans"; size: 10;
|
|
text_source: "e.text.label";
|
|
align: 0.0 0.5;
|
|
text_class: "ilist_item";
|
|
}
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
description { state: "disabled" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "label3"; type: TEXT; mouse_events: 0;
|
|
effect: GLOW;
|
|
scale: 1;
|
|
description { state: "default" 0.0;
|
|
rel1.offset: -2 -3;
|
|
rel1.to: "e.text.label";
|
|
rel2.offset: 2 1;
|
|
rel2.to: "e.text.label";
|
|
color: 51 153 255 255;
|
|
color2: 51 153 255 24;
|
|
color3: 51 153 255 18;
|
|
color_class: "ilist_item_selected";
|
|
text { font: "Sans"; size: 10;
|
|
text_source: "e.text.label";
|
|
align: 0.0 0.5;
|
|
text_class: "ilist_item";
|
|
}
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
description { state: "disabled" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
}
|
|
part { name: "e.swallow.end"; type: SWALLOW; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
align: 1.0 0.5;
|
|
aspect: 1.0 1.0; aspect_preference: VERTICAL;
|
|
rel1.offset: -3 2;
|
|
rel1.relative: 1.0 0.0;
|
|
rel2.offset: -3 -3;
|
|
}
|
|
}
|
|
part { name: "sel_shine"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "shine.png";
|
|
rel1.offset: 0 -2;
|
|
rel1.to: "sel_base";
|
|
rel2.relative: 1.0 0.0;
|
|
rel2.offset: -1 2;
|
|
rel2.to: "sel_base";
|
|
FIXED_SIZE(69, 5)
|
|
visible: 0;
|
|
}
|
|
description { state: "selected" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 1;
|
|
}
|
|
}
|
|
part { name: "event"; type: RECT;
|
|
description { state: "default" 0.0;
|
|
color: 0 0 0 0;
|
|
}
|
|
description { state: "disabled" 0.0;
|
|
inherit: "default" 0.0;
|
|
visible: 0;
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program {
|
|
signal: "e,state,selected"; source: "e";
|
|
action: STATE_SET "selected" 0.0;
|
|
target: "sel_shadow";
|
|
target: "sel_base";
|
|
target: "sel_bevel";
|
|
target: "sel_shine";
|
|
target: "e.text.label";
|
|
target: "label2";
|
|
target: "label3";
|
|
}
|
|
program {
|
|
signal: "e,state,unselected"; source: "e";
|
|
action: STATE_SET "default" 0.0;
|
|
target: "sel_shadow";
|
|
target: "sel_base";
|
|
target: "sel_bevel";
|
|
target: "sel_shine";
|
|
target: "e.text.label";
|
|
target: "label2";
|
|
target: "label3";
|
|
}
|
|
program {
|
|
signal: "e,state,disabled"; source: "e";
|
|
action: STATE_SET "disabled" 0.0;
|
|
target: "event";
|
|
target: "e.text.label";
|
|
target: "label2";
|
|
target: "label3";
|
|
}
|
|
program {
|
|
signal: "e,state,enabled"; source: "e";
|
|
action: STATE_SET "default" 0.0;
|
|
target: "event";
|
|
target: "e.text.label";
|
|
target: "label2";
|
|
target: "label3";
|
|
}
|
|
}
|
|
}
|
|
|
|
group { name: "e/widgets/ilist_odd";
|
|
inherit: "e/widgets/ilist";
|
|
parts {
|
|
part { name: "base";
|
|
description { state: "default" 0.0;
|
|
color: 56 56 56 255;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
group { name: "e/widgets/ilist_header";
|
|
alias: "e/widgets/ilist_header_odd";
|
|
data.item: "stacking" "above";
|
|
images.image: "dot_pattern.png" COMP;
|
|
images.image: "inset_shadow.png" COMP;
|
|
images.image: "shadow_vertical_dark.png" COMP;
|
|
parts {
|
|
part { name: "base"; type: RECT; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
color: 48 48 48 255;
|
|
color_class: "ilist_item_base";
|
|
}
|
|
}
|
|
part { name: "pat";
|
|
description { state: "default" 0.0;
|
|
image.normal: "dot_pattern.png";
|
|
TILED_PATTERN(256, 256)
|
|
}
|
|
}
|
|
part { name: "shadow"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "shadow_vertical_dark.png";
|
|
color: 255 255 255 128;
|
|
}
|
|
}
|
|
part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
align: 0.0 0.5;
|
|
aspect: 1.0 1.0; aspect_preference: VERTICAL;
|
|
rel1.offset: 2 2;
|
|
rel2.relative: 0.0 1.0;
|
|
rel2.offset: 2 -3;
|
|
}
|
|
}
|
|
part { name: "e.text.label"; type: TEXT; mouse_events: 0;
|
|
effect: SHADOW BOTTOM;
|
|
scale: 1;
|
|
description { state: "default" 0.0;
|
|
rel1.offset: 2 6;
|
|
rel1.relative: 1.0 0.0;
|
|
rel1.to_x: "e.swallow.icon";
|
|
rel2.offset: -3 -7;
|
|
rel2.relative: 0.0 1.0;
|
|
rel2.to_x: "e.swallow.end";
|
|
color: 255 255 255 255;
|
|
color3: 0 0 0 128;
|
|
color_class: "ilist_item_header";
|
|
text { font: "Sans:style=Bold"; size: 10;
|
|
min: 0 1;
|
|
align: 0.0 0.5;
|
|
text_class: "ilist_item";
|
|
}
|
|
}
|
|
}
|
|
part { name: "e.swallow.end"; type: SWALLOW; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
align: 1.0 0.5;
|
|
aspect: 1.0 1.0; aspect_preference: VERTICAL;
|
|
rel1.offset: -3 2;
|
|
rel1.relative: 1.0 0.0;
|
|
rel2.offset: -3 -3;
|
|
}
|
|
}
|
|
part { name: "shadow2"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "inset_shadow.png";
|
|
image.border: 5 5 7 3;
|
|
image.middle: 0;
|
|
fill.smooth: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
group { name: "e/widgets/ilist/toggle_end";
|
|
images.image: "led_dark.png" COMP;
|
|
images.image: "led_light.png" COMP;
|
|
parts {
|
|
part { name: "base"; mouse_events: 0;
|
|
description { state: "default" 0.0;
|
|
image.normal: "led_dark.png";
|
|
aspect: 1.0 1.0; aspect_preference: BOTH;
|
|
max: 32 32;
|
|
}
|
|
description { state: "visible" 0.0;
|
|
inherit: "default" 0.0;
|
|
image.normal: "led_light.png";
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program {
|
|
signal: "e,state,checked"; source: "e";
|
|
action: STATE_SET "visible" 0.0;
|
|
transition: BOUNCE 0.4 0.5 4;
|
|
target: "base";
|
|
}
|
|
program {
|
|
signal: "e,state,unchecked"; source: "e";
|
|
action: STATE_SET "default" 0.0;
|
|
target: "base";
|
|
}
|
|
}
|
|
}
|
|
|