2013-10-17 00:34:36 -07:00
|
|
|
group { name: "e/widgets/syscon/main";
|
|
|
|
parts {
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "bg"; type: RECT;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 64 64 64 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "e.swallow.main"; type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 8 8;
|
|
|
|
rel2.offset: -9 8;
|
|
|
|
rel2.relative: 1.0 0.0;
|
2013-10-17 00:34:36 -07:00
|
|
|
align: 0.5 0.0;
|
|
|
|
fixed: 0 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "e.swallow.secondary"; type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel1.to: "e.swallow.main";
|
|
|
|
rel1.relative: 0.0 1.0;
|
|
|
|
rel2.to: "e.swallow.main";
|
|
|
|
align: 0.5 0.0;
|
|
|
|
fixed: 0 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "e.swallow.extra"; type: SWALLOW;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel1.to: "e.swallow.secondary";
|
|
|
|
rel1.relative: 0.0 1.0;
|
|
|
|
rel2.to: "e.swallow.secondary";
|
|
|
|
align: 0.5 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
fixed: 0 1;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "e.text.label"; type: TEXT;
|
2013-10-17 00:34:36 -07:00
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 0 16;
|
2013-10-17 00:34:36 -07:00
|
|
|
rel1.relative: 0.5 0.0;
|
|
|
|
rel1.to_y: "e.swallow.extra";
|
2021-03-27 08:02:13 -07:00
|
|
|
rel2.offset: -1 -17;
|
2013-10-17 00:34:36 -07:00
|
|
|
rel2.relative: 0.5 1.0;
|
|
|
|
align: 0.5 1.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 160 160 160 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
text { font: FN; size: 10;
|
|
|
|
min: 1 1;
|
2014-04-24 13:08:19 -07:00
|
|
|
ellipsis: -1;
|
2013-10-17 00:34:36 -07:00
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
fixed: 1 0;
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "button"; type: RECT;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.to: "e.text.label";
|
|
|
|
rel1.offset: -12 -12;
|
|
|
|
rel2.to: "e.text.label";
|
|
|
|
rel2.offset: 11 11;
|
|
|
|
color: 255 255 255 0;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
2021-03-27 08:02:13 -07:00
|
|
|
program {
|
|
|
|
signal: "mouse,down,1*"; source: "button";
|
2013-10-17 00:34:36 -07:00
|
|
|
action: STATE_SET "clicked" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
program {
|
2021-03-27 08:02:13 -07:00
|
|
|
signal: "mouse,up,1"; source: "button";
|
2013-10-17 00:34:36 -07:00
|
|
|
action: STATE_SET "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
program {
|
2021-03-27 08:02:13 -07:00
|
|
|
signal: "mouse,clicked,1*"; source: "button";
|
2013-10-17 00:34:36 -07:00
|
|
|
action: SIGNAL_EMIT "e,action,close" "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
|
2013-10-17 00:34:36 -07:00
|
|
|
group { name: "e/widgets/syscon/item/button";
|
2013-12-19 19:24:50 -08:00
|
|
|
alias: "e/desklock/pin_button";
|
2013-10-17 00:34:36 -07:00
|
|
|
parts {
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "clip"; type: RECT; mouse_events: 0;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "icon_clip"; type: RECT;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 64;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "e.swallow.icon"; type: SWALLOW; mouse_events: 0;
|
|
|
|
clip_to: "icon_clip";
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
align: 0.5 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 5 5;
|
2013-10-17 00:34:36 -07:00
|
|
|
rel2.relative: 1.0 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel2.offset: -6 -6;
|
2013-10-17 00:34:36 -07:00
|
|
|
rel2.to_y: "e.text.label";
|
|
|
|
aspect: 1.0 1.0; aspect_preference: VERTICAL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "e.text.label"; type: TEXT; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
rel1.relative: 0.0 1.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 8 -9;
|
|
|
|
rel2.offset: -9 -9;
|
2013-10-17 00:34:36 -07:00
|
|
|
align: 0.5 1.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 160 160 160 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
text { font: FN; size: 10;
|
|
|
|
min: 1 1;
|
2014-04-24 13:08:19 -07:00
|
|
|
ellipsis: -1;
|
2013-10-17 00:34:36 -07:00
|
|
|
align: 0.5 0.5;
|
|
|
|
text_class: "button";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 96 96 96 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
description { state: "focused" 0.0;
|
2013-10-17 00:34:36 -07:00
|
|
|
inherit: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 255 255 255 255;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "sel"; type: RECT; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
clip_to: "clip";
|
2014-05-07 17:08:47 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 51 153 255 255;
|
2014-05-07 17:08:47 -07:00
|
|
|
visible: 0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel2.offset: -1 0;
|
|
|
|
rel1.relative: 0.0 1.0;
|
|
|
|
align: 0.5 1.0;
|
|
|
|
max: 99999 6;
|
2014-05-07 17:08:47 -07:00
|
|
|
}
|
|
|
|
description { state: "focused" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.relative: 0.0 0.5;
|
2014-05-07 17:08:47 -07:00
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
}
|
2013-10-17 00:34:36 -07:00
|
|
|
part { name: "event"; type: RECT;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
signal: "mouse,down,1"; source: "event";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,up,1"; source: "event";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,clicked,1*"; source: "event";
|
|
|
|
action: SIGNAL_EMIT "e,action,click" "";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "e,state,disabled"; source: "e";
|
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "event";
|
|
|
|
target: "icon_clip";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "e,state,enabled"; source: "e";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "event";
|
|
|
|
target: "icon_clip";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "e.text.label";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2014-05-07 17:08:47 -07:00
|
|
|
program { signal: "e,state,focused"; source: "e";
|
|
|
|
action: STATE_SET "focused" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
transition: DECELERATE 0.2 USE_DURATION_FACTOR 1;
|
|
|
|
target: "e.text.label";
|
|
|
|
target: "sel";
|
2014-05-07 17:08:47 -07:00
|
|
|
}
|
|
|
|
program { signal: "e,state,unfocused"; source: "e";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
transition: DECELERATE 0.2 USE_DURATION_FACTOR 1;
|
|
|
|
target: "e.text.label";
|
|
|
|
target: "sel";
|
2014-05-07 17:08:47 -07:00
|
|
|
}
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2014-06-11 03:05:22 -07:00
|
|
|
|
|
|
|
group { name: "e/modules/syscon/button";
|
|
|
|
parts {
|
|
|
|
part { name: "base";
|
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.relative: 0.1 0.1;
|
|
|
|
rel2.relative: 0.9 0.9;
|
|
|
|
image.normal: "i-system-shutdown";
|
2014-06-11 03:05:22 -07:00
|
|
|
aspect: 1.0 1.0; aspect_preference: BOTH;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 160 160 160 255;
|
2014-06-11 03:05:22 -07:00
|
|
|
}
|
|
|
|
description { state: "hilight" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 255 255 255 255;
|
2014-06-11 03:05:22 -07:00
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
color: 200 200 200 255;
|
2014-06-11 03:05:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
signal: "mouse,down,1"; source: "base";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "base";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,up,1"; source: "base";
|
|
|
|
action: STATE_SET "hilight" 0.0;
|
|
|
|
target: "base";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,in"; source: "base";
|
|
|
|
action: STATE_SET "hilight" 0.0;
|
|
|
|
target: "base";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,out"; source: "base";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "base";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "mouse,clicked,1*"; source: "base";
|
|
|
|
action: SIGNAL_EMIT "e,action,shutdown,show" "e";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|