Add selector to theme
Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
17f9578dd5
commit
d43299f25a
|
@ -1097,4 +1097,471 @@ collections
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
group
|
||||
{
|
||||
name: "express/selector/background";
|
||||
images
|
||||
{
|
||||
image: "pm_overlay.png" COMP;
|
||||
image: "pm_fill.png" COMP;
|
||||
image: "inset_shadow.png" COMP;
|
||||
}
|
||||
set
|
||||
{
|
||||
name: "bg_shadow";
|
||||
image
|
||||
{
|
||||
image: "bg_shadow.png" COMP;
|
||||
size: 0 0 200 150;
|
||||
}
|
||||
image
|
||||
{
|
||||
image: "bg_shadow2.png" COMP;
|
||||
size: 200 150 400 300;
|
||||
}
|
||||
image
|
||||
{
|
||||
image: "bg_shadow3.png" COMP;
|
||||
size: 400 300 99999 99999;
|
||||
}
|
||||
}
|
||||
parts
|
||||
{
|
||||
part
|
||||
{
|
||||
name: "shadow";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
image.normal: "bg_shadow";
|
||||
fill.smooth: 0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "fill";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
image.normal: "pm_fill.png";
|
||||
fill
|
||||
{
|
||||
size
|
||||
{
|
||||
relative: 0.0 0.0;
|
||||
offset: 64 64;
|
||||
}
|
||||
}
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "translucent" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "clip";
|
||||
type: RECT;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "content";
|
||||
type: SWALLOW;
|
||||
clip_to: "clip";
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "overlay";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
image.normal: "pm_overlay.png";
|
||||
fill.smooth: 0;
|
||||
color: 255 255 255 0;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "visible" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "overlay_shadow";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
image
|
||||
{
|
||||
normal: "inset_shadow.png";
|
||||
border: 5 5 7 3;
|
||||
middle: 0;
|
||||
}
|
||||
fill.smooth: 0;
|
||||
color: 255 255 255 0;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "visible" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs
|
||||
{
|
||||
program
|
||||
{
|
||||
signal: "translucent,on";
|
||||
source: "express";
|
||||
action: STATE_SET "translucent" 0.0;
|
||||
target: "fill";
|
||||
}
|
||||
program
|
||||
{
|
||||
signal: "translucent,off";
|
||||
source: "express";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "fill";
|
||||
}
|
||||
program
|
||||
{
|
||||
signal: "begin";
|
||||
source: "express";
|
||||
action: STATE_SET "visible" 0.0;
|
||||
transition: DECELERATE 0.3;
|
||||
target: "overlay";
|
||||
target: "overlay_shadow";
|
||||
}
|
||||
program
|
||||
{
|
||||
signal: "end";
|
||||
source: "express";
|
||||
action: STATE_SET "default" 0.0;
|
||||
transition: DECELERATE 0.3 CURRENT;
|
||||
target: "overlay";
|
||||
target: "overlay_shadow";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
group
|
||||
{
|
||||
name: "express/selector/entry";
|
||||
images
|
||||
{
|
||||
image: "bg_bevel.png" COMP;
|
||||
image: "bg_shine.png" COMP;
|
||||
image: "bg_glint.png" COMP;
|
||||
image: "bg_led_glow.png" COMP;
|
||||
image: "bg_led_base.png" COMP;
|
||||
image: "bg_led.png" COMP;
|
||||
image: "bg_led_strobe.png" COMP;
|
||||
image: "pm_shadow.png" COMP;
|
||||
image: "cr_glow.png" COMP;
|
||||
}
|
||||
parts
|
||||
{
|
||||
part
|
||||
{
|
||||
name: "clip";
|
||||
type: RECT;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
color: 128 128 128 255;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "shadow";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
image
|
||||
{
|
||||
normal: "pm_shadow.png";
|
||||
border: 64 64 64 64;
|
||||
border_scale_by: 0.1;
|
||||
}
|
||||
fill.smooth: 0;
|
||||
fixed: 1 1;
|
||||
rel1
|
||||
{
|
||||
offset: -5 -5;
|
||||
to: "content";
|
||||
}
|
||||
rel2
|
||||
{
|
||||
offset: 4 4;
|
||||
to: "content";
|
||||
}
|
||||
color: 255 255 255 128;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
rel1.offset: -40 -40;
|
||||
rel2.offset: 39 39;
|
||||
image.border_scale_by: 1.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "glow";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1
|
||||
{
|
||||
offset: -4 -4;
|
||||
to: "content";
|
||||
}
|
||||
rel2
|
||||
{
|
||||
offset: 3 3;
|
||||
to: "content";
|
||||
}
|
||||
image
|
||||
{
|
||||
normal: "cr_glow.png";
|
||||
border: 9 9 9 9;
|
||||
}
|
||||
color: 51 153 255 0;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 51 153 255 255;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "base";
|
||||
type: RECT;
|
||||
clip_to: "clip";
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
color: 32 32 32 255;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "content";
|
||||
type: SWALLOW;
|
||||
clip_to: "clip";
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.relative: 0.1 0.1;
|
||||
rel2.relative: 0.9 0.9;
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
rel1.relative: 0.0 0.0;
|
||||
rel2.relative: 1.0 1.0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "overlay";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
fixed: 1 1;
|
||||
image.normal: "pm_overlay.png";
|
||||
fill.smooth: 0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "bevel";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
fixed: 1 1;
|
||||
image
|
||||
{
|
||||
normal: "bg_bevel.png";
|
||||
border: 3 3 5 3;
|
||||
middle: 0;
|
||||
}
|
||||
fill.smooth: 0;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "label";
|
||||
type: TEXT;
|
||||
mouse_events: 0;
|
||||
effect: GLOW;
|
||||
scale: 1;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
color: 51 153 255 255;
|
||||
color2: 51 153 255 24;
|
||||
color3: 51 153 255 18;
|
||||
align: 0.5 1.0;
|
||||
text
|
||||
{
|
||||
font: "Sans";
|
||||
size: 10;
|
||||
align: 0.5 1.0;
|
||||
min: 0 1;
|
||||
}
|
||||
}
|
||||
description
|
||||
{
|
||||
state: "selected" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
color2: 51 153 255 128;
|
||||
color3: 51 153 255 20;
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "clip2";
|
||||
type: RECT;
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "glint";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
clip_to: "clip2";
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
min: 79 5;
|
||||
max: 79 5;
|
||||
rel1.to: "content";
|
||||
rel2
|
||||
{
|
||||
relative: 1.0 0.0;
|
||||
offset: -1 0;
|
||||
to: "content";
|
||||
}
|
||||
image.normal: "bg_glint.png";
|
||||
}
|
||||
}
|
||||
part
|
||||
{
|
||||
name: "shine";
|
||||
type: IMAGE;
|
||||
mouse_events: 0;
|
||||
clip_to: "clip2";
|
||||
description
|
||||
{
|
||||
state: "default" 0.0;
|
||||
fixed: 1 1;
|
||||
rel1.to: "content";
|
||||
rel2.to: "content";
|
||||
image.normal: "bg_shine.png";
|
||||
fill.smooth: 0;
|
||||
align: 0.5 0.0;
|
||||
aspect: (255 / 120) (255 / 120);
|
||||
aspect_preference: HORIZONTAL;
|
||||
}
|
||||
}
|
||||
/* TODO: Bell */
|
||||
}
|
||||
programs
|
||||
{
|
||||
program
|
||||
{
|
||||
signal: "selected";
|
||||
source: "express";
|
||||
action: STATE_SET "selected" 0.0;
|
||||
transition: DECELERATE 0.2 CURRENT;
|
||||
target: "content";
|
||||
target: "label";
|
||||
target: "shadow";
|
||||
target: "clip";
|
||||
target: "glow";
|
||||
}
|
||||
program
|
||||
{
|
||||
signal: "unselected";
|
||||
source: "express";
|
||||
action: STATE_SET "default" 0.0;
|
||||
transition: DECELERATE 0.4 CURRENT;
|
||||
target: "content";
|
||||
target: "label";
|
||||
target: "shadow";
|
||||
target: "clip";
|
||||
target: "glow";
|
||||
}
|
||||
program
|
||||
{
|
||||
signal: "selected,start";
|
||||
source: "express";
|
||||
action: STATE_SET "selected" 0.0;
|
||||
target: "content";
|
||||
target: "label";
|
||||
target: "shadow";
|
||||
target: "clip";
|
||||
target: "glow";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue