2013-10-17 00:34:36 -07:00
|
|
|
group { name: "elm/actionslider/base/default";
|
|
|
|
parts {
|
|
|
|
part { name: "bg"; type: RECT; mouse_events: 0;
|
2021-03-27 08:02:13 -07:00
|
|
|
scale: 1;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
min: 120 20;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/normal/actionslider/base";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/disabled/actionslider/base";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2018-06-19 10:28:27 -07:00
|
|
|
part { name: "icon_dragable_area"; type: SPACER;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel.to: "bg";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2014-01-12 22:44:44 -08:00
|
|
|
part { name: "elm.text.left"; type: TEXT;
|
2013-10-17 00:34:36 -07:00
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/normal/actionslider/left";
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 4 4;
|
|
|
|
rel2.offset: -5 -5;
|
2013-10-17 00:34:36 -07:00
|
|
|
text { font: FN; size: 10;
|
2021-03-27 08:02:13 -07:00
|
|
|
align: 0.0 0.5;
|
2013-10-17 00:34:36 -07:00
|
|
|
min: 1 1;
|
2014-05-13 12:45:30 -07:00
|
|
|
ellipsis: -1;
|
2013-10-17 00:34:36 -07:00
|
|
|
text_class: "button";
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
offscale;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/disabled/actionslider/left";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2014-01-12 22:44:44 -08:00
|
|
|
part { name: "elm.text.center"; type: TEXT;
|
2013-10-17 00:34:36 -07:00
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/normal/actionslider/center";
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 4 4;
|
|
|
|
rel2.offset: -5 -5;
|
2013-10-17 00:34:36 -07:00
|
|
|
text { font: FN; size: 10;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
min: 1 1;
|
2014-05-13 12:45:30 -07:00
|
|
|
ellipsis: -1;
|
2021-03-27 08:02:13 -07:00
|
|
|
text_class: "button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
offscale;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/disabled/actionslider/center";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2014-01-12 22:44:44 -08:00
|
|
|
part { name: "elm.text.right"; type: TEXT;
|
2013-10-17 00:34:36 -07:00
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/normal/actionslider/right";
|
2021-03-27 08:02:13 -07:00
|
|
|
rel1.offset: 4 4;
|
|
|
|
rel2.offset: -5 -5;
|
2013-10-17 00:34:36 -07:00
|
|
|
text { font: FN; size: 10;
|
2021-03-27 08:02:13 -07:00
|
|
|
align: 1.0 0.5;
|
2013-10-17 00:34:36 -07:00
|
|
|
min: 1 1;
|
2014-05-13 12:45:30 -07:00
|
|
|
ellipsis: -1;
|
2021-03-27 08:02:13 -07:00
|
|
|
text_class: "button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
offscale;
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/disabled/actionslider/right";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.drag_button_base"; type: SWALLOW; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
|
|
|
fixed: 1 1;
|
2021-03-27 08:02:13 -07:00
|
|
|
min: 40 20;
|
2013-10-17 00:34:36 -07:00
|
|
|
align: 0.5 0.5;
|
2018-06-19 10:28:27 -07:00
|
|
|
rel1.to: "icon_dragable_area";
|
2013-10-17 00:34:36 -07:00
|
|
|
rel2 {
|
|
|
|
relative: 0.0 1.0;
|
2018-06-19 10:28:27 -07:00
|
|
|
to: "icon_dragable_area";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
dragable {
|
2018-06-19 10:28:27 -07:00
|
|
|
confine: "icon_dragable_area";
|
2013-10-17 00:34:36 -07:00
|
|
|
x: 1 1 0;
|
|
|
|
y: 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.drag_button"; type: RECT;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
min: 40 20;
|
2021-05-09 12:23:07 -07:00
|
|
|
color: 0 0 0 0; // no cc
|
2013-10-17 00:34:36 -07:00
|
|
|
rel1.to_x: "elm.drag_button_base";
|
2018-06-19 10:28:27 -07:00
|
|
|
rel1.to_y: "icon_dragable_area";
|
2013-10-17 00:34:36 -07:00
|
|
|
rel2.to_x: "elm.drag_button_base";
|
2018-06-19 10:28:27 -07:00
|
|
|
rel2.to_y: "icon_dragable_area";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
dragable {
|
|
|
|
events: "elm.drag_button_base";
|
|
|
|
}
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "drag_button"; type: RECT; mouse_events: 0;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel.to: "elm.drag_button";
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/normal/actionslider/button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
description { state: "disabled" 0.0;
|
2013-10-17 00:34:36 -07:00
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/disabled/actionslider/button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/pressed/actionslider/button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.text.indicator"; type: TEXT; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default" 0.0;
|
2021-03-27 08:02:13 -07:00
|
|
|
rel.to: "drag_button";
|
|
|
|
rel1.offset: 4 4;
|
|
|
|
rel2.offset: -5 -5;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/normal/actionslider/button";
|
2013-10-17 00:34:36 -07:00
|
|
|
text {
|
|
|
|
font: FN; size: 10;
|
|
|
|
align: 0.5 0.5;
|
|
|
|
min: 0 1;
|
|
|
|
text_class: "check_off_text";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/disabled/actionslider/button";
|
2021-03-27 08:02:13 -07:00
|
|
|
}
|
|
|
|
description { state: "clicked" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/fg/pressed/actionslider/button";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "disabler"; type: RECT;
|
2013-10-17 00:34:36 -07:00
|
|
|
description { state: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color: 0 0 0 0; // no cc
|
2013-10-17 00:34:36 -07:00
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
description { state: "disabled" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
programs {
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,up,1"; source: "elm.drag_button";
|
actionslider: Fixed wrong signal names but still support backward
compatibility.
- "elm.drag_button,mouse,up" -> "elm,action,up,drag_button"
- "elm.drag_button,mouse,down" -> "elm,action,down,drag_button"
- "elm.drag_button,mouse,move" -> "elm,action,move,drag_button"
This is not the target of backport.
2014-03-10 10:27:26 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,up,drag_button" "elm";
|
2013-10-17 00:34:36 -07:00
|
|
|
after: "button_unclick_anim";
|
|
|
|
}
|
|
|
|
program { name: "button_unclick_anim";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "drag_button";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "elm.text.indicator";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,down,1*"; source: "elm.drag_button";
|
actionslider: Fixed wrong signal names but still support backward
compatibility.
- "elm.drag_button,mouse,up" -> "elm,action,up,drag_button"
- "elm.drag_button,mouse,down" -> "elm,action,down,drag_button"
- "elm.drag_button,mouse,move" -> "elm,action,move,drag_button"
This is not the target of backport.
2014-03-10 10:27:26 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,down,drag_button" "elm";
|
2013-10-17 00:34:36 -07:00
|
|
|
after: "button_click_anim";
|
|
|
|
}
|
|
|
|
program { name: "button_click_anim";
|
|
|
|
action: STATE_SET "clicked" 0.0;
|
|
|
|
target: "drag_button";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "elm.text.indicator";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,move"; source: "elm.drag_button_base";
|
actionslider: Fixed wrong signal names but still support backward
compatibility.
- "elm.drag_button,mouse,up" -> "elm,action,up,drag_button"
- "elm.drag_button,mouse,down" -> "elm,action,down,drag_button"
- "elm.drag_button,mouse,move" -> "elm,action,move,drag_button"
This is not the target of backport.
2014-03-10 10:27:26 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,move,drag_button" "elm";
|
2013-10-17 00:34:36 -07:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,down,1*"; source: "elm.text.right";
|
2014-03-10 07:24:37 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,down,right" "elm";
|
2014-01-12 22:44:44 -08:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,down,1*"; source: "elm.text.left";
|
2014-03-10 07:24:37 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,down,left" "elm";
|
2014-01-12 22:44:44 -08:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "mouse,down,1*"; source: "elm.text.center";
|
2014-03-10 07:24:37 -07:00
|
|
|
action: SIGNAL_EMIT "elm,action,down,center" "elm";
|
2014-01-12 22:44:44 -08:00
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "elm,state,disabled"; source: "elm";
|
2013-10-17 00:34:36 -07:00
|
|
|
action: STATE_SET "disabled" 0.0;
|
|
|
|
target: "bg";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "drag_button";
|
2013-10-17 00:34:36 -07:00
|
|
|
target: "disabler";
|
|
|
|
target: "elm.text.left";
|
|
|
|
target: "elm.text.center";
|
|
|
|
target: "elm.text.right";
|
|
|
|
target: "elm.text.indicator";
|
|
|
|
}
|
2021-03-27 08:02:13 -07:00
|
|
|
program { signal: "elm,state,enabled"; source: "elm";
|
2013-10-17 00:34:36 -07:00
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "bg";
|
2021-03-27 08:02:13 -07:00
|
|
|
target: "drag_button";
|
2013-10-17 00:34:36 -07:00
|
|
|
target: "disabler";
|
|
|
|
target: "elm.text.left";
|
|
|
|
target: "elm.text.center";
|
|
|
|
target: "elm.text.right";
|
|
|
|
target: "elm.text.indicator";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group { name: "elm/actionslider/base/bar";
|
|
|
|
inherit: "elm/actionslider/base/default";
|
|
|
|
parts {
|
2021-03-27 08:02:13 -07:00
|
|
|
part { name: "bar"; type: RECT; mouse_events: 0;
|
2013-10-17 00:34:36 -07:00
|
|
|
insert_before: "elm.drag_button_base";
|
|
|
|
description { state: "default" 0.0;
|
2021-05-09 12:23:07 -07:00
|
|
|
color_class: "/bg/normal/actionslider/bar";
|
2013-10-17 00:34:36 -07:00
|
|
|
rel1.to: "bg";
|
|
|
|
rel2 {
|
|
|
|
relative: 0.0 1.0;
|
|
|
|
to_x: "elm.drag_button_base";
|
|
|
|
to_y: "bg";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|