2014-01-28 15:35:57 -08:00
|
|
|
#include "empc_parts.h"
|
2014-01-18 09:33:11 -08:00
|
|
|
collections {
|
2014-01-18 13:14:57 -08:00
|
|
|
group { name: "elm/layout/empc/base";
|
|
|
|
parts {
|
|
|
|
part { name: "base"; type: RECT;
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 255;
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_SWALLOW_BACKGROUND; type: SWALLOW;
|
2014-01-18 13:14:57 -08:00
|
|
|
description { state: "default";
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_TEXT_ARTIST; type: TEXT; mouse_events: 0;
|
2014-01-18 14:24:38 -08:00
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 0 1;
|
|
|
|
align: 0.5 0;
|
|
|
|
rel2.relative: 1 0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans:style=Bold"; size: 12;
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.5 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_TEXT_ALBUM; type: TEXT; mouse_events: 0;
|
2014-01-18 14:24:38 -08:00
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 0 1;
|
2014-01-18 18:36:35 -08:00
|
|
|
align: 0.5 0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to_y: EMPC_BASE_TEXT_ARTIST;
|
2014-01-18 18:36:35 -08:00
|
|
|
rel1.offset: 0 -16;
|
2014-01-18 14:24:38 -08:00
|
|
|
rel1.relative: 0 1;
|
|
|
|
rel2.relative: 1 0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
|
|
|
min: 1 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_TEXT_TITLE; type: TEXT; mouse_events: 0;
|
2014-01-18 16:46:54 -08:00
|
|
|
clip_to: "title_clip";
|
2014-01-18 13:14:57 -08:00
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 0 1;
|
2014-01-18 18:36:35 -08:00
|
|
|
align: 0.5 1;
|
2014-01-18 13:14:57 -08:00
|
|
|
rel1.relative: 0 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to_y: EMPC_BASE_SWALLOW_POSITION;
|
2014-01-18 18:16:44 -08:00
|
|
|
rel2.relative: 1 0;
|
2014-01-19 09:37:18 -08:00
|
|
|
rel2.offset: 0 8;
|
2014-01-18 13:14:57 -08:00
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.5 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-01-18 16:46:54 -08:00
|
|
|
part { name: "title_clip"; type: RECT; mouse_events: 0;
|
|
|
|
description { state: "default";
|
|
|
|
}
|
|
|
|
description { state: "left";
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
description { state: "right";
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "title_animator"; type: TEXT; mouse_events: 0;
|
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to: EMPC_BASE_TEXT_TITLE;
|
|
|
|
rel2.to: EMPC_BASE_TEXT_TITLE;
|
2014-01-18 16:46:54 -08:00
|
|
|
visible: 0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
2014-01-28 15:35:57 -08:00
|
|
|
text_source: EMPC_BASE_TEXT_TITLE;
|
2014-01-18 16:46:54 -08:00
|
|
|
min: 1 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "left";
|
|
|
|
inherit: "default";
|
|
|
|
rel1.relative: -1 0;
|
|
|
|
rel2.relative: -1 1;
|
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
description { state: "right";
|
|
|
|
inherit: "default";
|
|
|
|
rel1.relative: 2 0;
|
|
|
|
rel2.relative: 2 1;
|
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { signal: "empc,title,change,next"; source: "empc";
|
|
|
|
action: STATE_SET "left" 0.0;
|
|
|
|
target: "title_clip";
|
|
|
|
}
|
|
|
|
program { signal: "empc,title,change,prev"; source: "empc";
|
|
|
|
action: STATE_SET "left" 0.0;
|
|
|
|
target: "title_clip";
|
|
|
|
}
|
|
|
|
program { signal: "empc,title,change,next"; source: "empc";
|
|
|
|
action: STATE_SET "left" 0.0;
|
|
|
|
target: "title_animator";
|
|
|
|
transition: LINEAR 0.2;
|
|
|
|
after: "title_left";
|
|
|
|
}
|
|
|
|
program { signal: "empc,title,change,prev"; source: "empc";
|
|
|
|
action: STATE_SET "right" 0.0;
|
|
|
|
target: "title_animator";
|
|
|
|
transition: LINEAR 0.2;
|
|
|
|
after: "title_right";
|
|
|
|
}
|
|
|
|
program { name: "title_left";
|
|
|
|
action: STATE_SET "right" 0.0;
|
|
|
|
target: "title_animator";
|
|
|
|
target: "title_clip";
|
|
|
|
after: "title2";
|
|
|
|
}
|
|
|
|
program { name: "title_right";
|
|
|
|
action: STATE_SET "left" 0.0;
|
|
|
|
target: "title_animator";
|
|
|
|
target: "title_clip";
|
|
|
|
after: "title2";
|
|
|
|
}
|
|
|
|
program { name: "title2";
|
|
|
|
action: SIGNAL_EMIT "empc,title,changed,1" "empc";
|
|
|
|
}
|
|
|
|
program { signal: "empc,title,change,2"; source: "empc";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "title_animator";
|
|
|
|
transition: LINEAR 0.2;
|
|
|
|
after: "title3";
|
|
|
|
}
|
|
|
|
program { name: "title3";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "title_clip";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-01-18 18:16:44 -08:00
|
|
|
part { name: "fader"; type: RECT; mouse_events: 0;
|
2014-01-18 13:14:57 -08:00
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
|
|
|
description { state: "visible";
|
|
|
|
color: 0 0 0 128;
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_SWALLOW_POSITION; type: SWALLOW;
|
2014-01-18 18:52:44 -08:00
|
|
|
description { state: "default";
|
|
|
|
fixed: 0 1;
|
|
|
|
rel1.relative: 0 1;
|
|
|
|
}
|
|
|
|
description { state: "visible";//controls visible
|
|
|
|
inherit: "default";
|
|
|
|
align: 0.5 1;
|
|
|
|
rel2.relative: 1 0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to_y: EMPC_BASE_SWALLOW_CONTROLS;
|
2014-01-18 18:52:44 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_SWALLOW_PLAYLIST; type: SWALLOW;
|
2014-01-18 13:14:57 -08:00
|
|
|
description { state: "default";
|
2014-01-18 14:24:38 -08:00
|
|
|
fixed: 1 1;
|
2014-01-18 14:28:00 -08:00
|
|
|
rel1.relative: 1 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to: EMPC_BASE_TEXT_ALBUM;
|
2014-01-18 13:14:57 -08:00
|
|
|
rel2.relative: 2 0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to_y: EMPC_BASE_TEXT_TITLE;
|
2014-01-18 14:24:38 -08:00
|
|
|
}
|
|
|
|
description { state: "visible";
|
|
|
|
fixed: 1 1;
|
2014-01-18 14:28:00 -08:00
|
|
|
rel1.relative: 0 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to: EMPC_BASE_TEXT_ALBUM;
|
2014-01-18 14:24:38 -08:00
|
|
|
rel2.relative: 1 0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to_y: EMPC_BASE_TEXT_TITLE;
|
2014-01-18 14:24:38 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "playlist_events"; type: RECT; repeat_events: 1;
|
|
|
|
description { state: "default";
|
|
|
|
min: 16 16;
|
|
|
|
color: 0 0 0 0;
|
|
|
|
rel1.relative: 0.75 0;
|
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_BASE_SWALLOW_CONTROLS; type: SWALLOW;
|
2014-01-18 14:24:38 -08:00
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 1;
|
|
|
|
align: 0.5 1;
|
|
|
|
rel1.relative: 0 1;
|
|
|
|
rel2.relative: 1 2;
|
2014-01-18 13:14:57 -08:00
|
|
|
}
|
|
|
|
description { state: "visible";
|
2014-01-18 14:24:38 -08:00
|
|
|
fixed: 1 1;
|
|
|
|
align: 0.5 1;
|
|
|
|
rel1.relative: 0 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "controls_events"; type: RECT; repeat_events: 1;
|
|
|
|
description { state: "default";
|
|
|
|
min: 16 16;
|
|
|
|
color: 0 0 0 0;
|
|
|
|
rel1.relative: 0 0.9;
|
2014-01-18 13:14:57 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 14:24:38 -08:00
|
|
|
/* PLAYLIST */
|
|
|
|
program { signal: "mouse,in"; source: "playlist_events";
|
|
|
|
action: SIGNAL_EMIT "empc,playlist,mouse_in" "empc";
|
|
|
|
}
|
|
|
|
program { signal: "mouse,out"; source: "playlist_events";
|
|
|
|
action: SIGNAL_EMIT "empc,playlist,mouse_out" "empc";
|
|
|
|
}
|
|
|
|
program { name: "playlist_show";
|
|
|
|
signal: "empc,playlist,show"; source: "empc";
|
|
|
|
action: ACTION_STOP;
|
|
|
|
target: "playlist_hide_start";
|
|
|
|
after: "playlist_show_start";
|
|
|
|
}
|
|
|
|
program { name: "playlist_show_start";
|
2014-01-18 13:14:57 -08:00
|
|
|
action: STATE_SET "visible" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_BASE_SWALLOW_PLAYLIST;
|
2014-01-18 13:14:57 -08:00
|
|
|
target: "fader";
|
2014-01-18 14:24:38 -08:00
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
after: "playlist_show_done";
|
2014-01-18 13:14:57 -08:00
|
|
|
}
|
2014-01-18 14:24:38 -08:00
|
|
|
program { name: "playlist_show_done";
|
2014-01-18 13:14:57 -08:00
|
|
|
action: SIGNAL_EMIT "empc,playlist,visible" "empc";
|
|
|
|
}
|
2014-01-18 14:24:38 -08:00
|
|
|
program { name: "playlist_hide";
|
|
|
|
signal: "empc,playlist,hide"; source: "empc";
|
|
|
|
action: ACTION_STOP;
|
|
|
|
target: "playlist_show_start";
|
|
|
|
after: "playlist_hide_start";
|
|
|
|
}
|
|
|
|
program { name: "playlist_hide_start";
|
2014-01-18 13:14:57 -08:00
|
|
|
action: STATE_SET "default" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_BASE_SWALLOW_PLAYLIST;
|
2014-01-18 13:14:57 -08:00
|
|
|
target: "fader";
|
2014-01-18 14:24:38 -08:00
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
after: "playlist_hide_done";
|
2014-01-18 13:14:57 -08:00
|
|
|
}
|
2014-01-18 14:24:38 -08:00
|
|
|
program { name: "playlist_hide_done";
|
2014-01-18 13:14:57 -08:00
|
|
|
action: SIGNAL_EMIT "empc,playlist,hidden" "empc";
|
|
|
|
}
|
2014-01-18 14:24:38 -08:00
|
|
|
|
|
|
|
/* CONTROLS */
|
|
|
|
program { signal: "mouse,in"; source: "controls_events";
|
|
|
|
action: SIGNAL_EMIT "empc,controls,mouse_in" "empc";
|
|
|
|
}
|
|
|
|
program { signal: "mouse,out"; source: "controls_events";
|
|
|
|
action: SIGNAL_EMIT "empc,controls,mouse_out" "empc";
|
|
|
|
}
|
|
|
|
program { name: "controls_show";
|
|
|
|
signal: "empc,controls,show"; source: "empc";
|
|
|
|
action: ACTION_STOP;
|
|
|
|
target: "controls_hide_start";
|
|
|
|
after: "controls_show_start";
|
|
|
|
}
|
|
|
|
program { name: "controls_show_start";
|
|
|
|
action: STATE_SET "visible" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_BASE_SWALLOW_CONTROLS;
|
|
|
|
target: EMPC_BASE_SWALLOW_POSITION;
|
2014-01-18 14:24:38 -08:00
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
after: "controls_show_done";
|
|
|
|
}
|
|
|
|
program { name: "controls_show_done";
|
|
|
|
action: SIGNAL_EMIT "empc,controls,visible" "empc";
|
|
|
|
}
|
|
|
|
program { name: "controls_hide";
|
|
|
|
signal: "empc,controls,hide"; source: "empc";
|
|
|
|
action: ACTION_STOP;
|
|
|
|
target: "controls_show_start";
|
|
|
|
after: "controls_hide_start";
|
|
|
|
}
|
|
|
|
program { name: "controls_hide_start";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_BASE_SWALLOW_CONTROLS;
|
|
|
|
target: EMPC_BASE_SWALLOW_POSITION;
|
2014-01-18 14:24:38 -08:00
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
after: "controls_hide_done";
|
|
|
|
}
|
|
|
|
program { name: "controls_hide_done";
|
|
|
|
action: SIGNAL_EMIT "empc,controls,hidden" "empc";
|
|
|
|
}
|
2014-01-18 13:14:57 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
group { name: "elm/genlist/item_compress/playlist/default";
|
2014-01-18 12:33:19 -08:00
|
|
|
data.item: "selectraise" "on";
|
|
|
|
data.item: "texts" "elm.text empc.text.track empc.text.time";
|
|
|
|
data.item: "contents" "elm.swallow.icon";
|
|
|
|
data.item: "treesize" 19;
|
|
|
|
parts {
|
|
|
|
part { name: "selection"; type: RECT; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
color: 222 222 222 0;
|
|
|
|
visible: 0;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
description { state: "selected";
|
|
|
|
inherit: "default";
|
2014-01-18 14:24:38 -08:00
|
|
|
color: 222 222 222 160;
|
2014-01-18 12:33:19 -08:00
|
|
|
visible: 1;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
part { name: "elm.text"; type: TEXT; mouse_events: 0;
|
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
rel1.offset: 2 3;
|
|
|
|
rel1.relative: 1.0 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to_x: EMPC_PLAYLIST_TEXT_TRACK;
|
2014-01-18 12:33:19 -08:00
|
|
|
rel2.offset: -3 -3;
|
|
|
|
rel2.relative: 0.0 1.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to_x: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
color: 255 255 255 255;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans"; size: 11;
|
|
|
|
min: 0 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
part { name: "title_playing"; type: TEXT; mouse_events: 0;
|
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 0;
|
|
|
|
rel1.offset: -2 -3;
|
|
|
|
rel1.to: "elm.text";
|
|
|
|
rel2.offset: -1 1;
|
|
|
|
rel2.to: "elm.text";
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
color_class: "text_item_playing";
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
|
|
|
text_source: "elm.text";
|
|
|
|
min: 0 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
program {
|
|
|
|
signal: "elm,state,selected"; source: "elm";
|
|
|
|
action: STATE_SET "selected" 0.0;
|
|
|
|
target: "selection";
|
|
|
|
transition: LINEAR 0.15;
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "elm,state,unselected"; source: "elm";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "selection";
|
|
|
|
transition: LINEAR 0.15;
|
|
|
|
}
|
|
|
|
part { name: "elm.swallow.pad"; type: SWALLOW; mouse_events: 0;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 0;
|
2014-01-18 09:33:11 -08:00
|
|
|
align: 0.0 0.5;
|
2014-01-18 12:33:19 -08:00
|
|
|
rel1.offset: 2 2;
|
|
|
|
rel2.relative: 0.0 1.0;
|
|
|
|
rel2.offset: 2 -3;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_PLAYLIST_TEXT_TRACK; type: TEXT; mouse_events: 0;
|
2014-01-18 12:33:19 -08:00
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 0;
|
2014-01-18 09:33:11 -08:00
|
|
|
align: 0.0 0.5;
|
2014-01-18 12:33:19 -08:00
|
|
|
aspect: 1.0 1.0;
|
|
|
|
rel1.to_x: "elm.swallow.pad";
|
|
|
|
rel1.relative: 1.0 0.0;
|
|
|
|
rel1.offset: -1 2;
|
|
|
|
rel2.to_x: "elm.swallow.pad";
|
|
|
|
rel2.offset: -1 -3;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans"; size: 11;
|
|
|
|
min: 0 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
part { name: "track_playing"; type: TEXT; mouse_events: 0;
|
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 0;
|
|
|
|
rel1.offset: -2 -3;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to: EMPC_PLAYLIST_TEXT_TRACK;
|
2014-01-18 12:33:19 -08:00
|
|
|
rel2.offset: -1 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to: EMPC_PLAYLIST_TEXT_TRACK;
|
2014-01-18 12:33:19 -08:00
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
color_class: "text_item_playing";
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
2014-01-28 15:35:57 -08:00
|
|
|
text_source: EMPC_PLAYLIST_TEXT_TRACK;
|
2014-01-18 12:33:19 -08:00
|
|
|
min: 0 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-28 15:35:57 -08:00
|
|
|
part { name: EMPC_PLAYLIST_TEXT_TIME; type: TEXT; mouse_events: 0;
|
2014-01-18 12:33:19 -08:00
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 12:33:19 -08:00
|
|
|
fixed: 1 0;
|
|
|
|
align: 1.0 0.5;
|
|
|
|
aspect: 1.0 1.0;
|
|
|
|
rel1.offset: -3 2;
|
|
|
|
rel1.relative: 1.0 0.0;
|
|
|
|
rel2.offset: -3 -3;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
text { font: "Sans"; size: 11;
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 0;
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
part { name: "time_playing"; type: TEXT; mouse_events: 0;
|
|
|
|
effect: GLOW;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 0;
|
|
|
|
rel1.offset: -2 -3;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel1.to: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
rel2.offset: -1 1;
|
2014-01-28 15:35:57 -08:00
|
|
|
rel2.to: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
color: 255 255 255 255;
|
|
|
|
color2: 0 0 0 192;
|
|
|
|
color3: 0 0 0 128;
|
|
|
|
color_class: "text_item_playing";
|
|
|
|
text { font: "Sans:style=Bold"; size: 11;
|
2014-01-28 15:35:57 -08:00
|
|
|
text_source: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
min: 1 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
visible: 0;
|
|
|
|
}
|
|
|
|
description { state: "playing" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
part { name: "events"; type: RECT;
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
program {
|
|
|
|
signal: "empc,state,playing"; source: "empc";
|
|
|
|
action: STATE_SET "playing" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_PLAYLIST_TEXT_TRACK;
|
|
|
|
target: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
target: "elm.text";
|
|
|
|
target: "title_playing";
|
|
|
|
target: "time_playing";
|
|
|
|
target: "track_playing";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
signal: "empc,state,not_playing"; source: "empc";
|
|
|
|
action: STATE_SET "default" 0.0;
|
2014-01-28 15:35:57 -08:00
|
|
|
target: EMPC_PLAYLIST_TEXT_TRACK;
|
|
|
|
target: EMPC_PLAYLIST_TEXT_TIME;
|
2014-01-18 12:33:19 -08:00
|
|
|
target: "elm.text";
|
|
|
|
target: "title_playing";
|
|
|
|
target: "time_playing";
|
|
|
|
target: "track_playing";
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 12:33:19 -08:00
|
|
|
}
|
2014-01-18 15:17:11 -08:00
|
|
|
group { name: "elm/button/base/controls";
|
|
|
|
parts {
|
|
|
|
part { name: "base"; type: RECT; mouse_events: 0;
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 128;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.swallow.content"; type: SWALLOW; mouse_events: 0;
|
|
|
|
clip_to: "clip";
|
|
|
|
description { state: "default";
|
|
|
|
aspect: 1.0 1.0;
|
|
|
|
rel2.relative: 1 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "clip"; type: RECT; mouse_events: 0;
|
|
|
|
description { state: "default";
|
|
|
|
color: 155 155 155 200;
|
|
|
|
}
|
|
|
|
description { state: "active";
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "events"; type: RECT;
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { signal: "mouse,down,1"; source: "events";
|
|
|
|
action: SIGNAL_EMIT "elm,action,press" "";
|
|
|
|
}
|
|
|
|
program { signal: "mouse,clicked,1"; source: "events";
|
|
|
|
action: SIGNAL_EMIT "elm,action,click" "";
|
|
|
|
}
|
|
|
|
program { signal: "mouse,up,1"; source: "events";
|
|
|
|
action: SIGNAL_EMIT "elm,action,unpress" "";
|
|
|
|
}
|
|
|
|
program { signal: "mouse,in"; source: "events";
|
|
|
|
action: STATE_SET "active" 0.0;
|
|
|
|
target: "clip";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
}
|
|
|
|
program { signal: "mouse,out"; source: "events";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "clip";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-01-18 18:16:44 -08:00
|
|
|
group { name: "elm/slider/hidden/limit";
|
|
|
|
parts {
|
|
|
|
part { name: "elm.units.min"; type: TEXT; mouse_events: 0;
|
|
|
|
scale: 1;
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
visible: 0;
|
|
|
|
align: 1.0 0.5;
|
|
|
|
text { font: FN; size: 10;
|
|
|
|
text_class: "slider_text";
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.units.max"; type: TEXT; mouse_events: 0;
|
|
|
|
scale: 1;
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
visible: 0;
|
|
|
|
align: 1.0 0.5;
|
|
|
|
text { font: FN; size: 10;
|
|
|
|
text_class: "slider_text";
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.0 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group { name: "elm/slider/horizontal/player";
|
|
|
|
parts {
|
2014-01-19 13:36:49 -08:00
|
|
|
part { name: "level.sizer"; type: SPACER;
|
2014-01-18 18:16:44 -08:00
|
|
|
scale: 1;
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
fixed: 1 1;
|
|
|
|
rel1.to: "elm.swallow.bar";
|
2014-01-19 13:26:26 -08:00
|
|
|
rel2.to_x: "slider1";
|
2014-01-18 18:16:44 -08:00
|
|
|
rel2.to_y: "elm.swallow.bar";
|
|
|
|
}
|
2014-01-19 13:26:26 -08:00
|
|
|
description { state: "slide";
|
2014-01-19 09:16:14 -08:00
|
|
|
inherit: "default";
|
2014-01-19 13:26:26 -08:00
|
|
|
rel2.to_x: "slider2";
|
2014-01-19 09:16:14 -08:00
|
|
|
}
|
2014-01-18 18:16:44 -08:00
|
|
|
}
|
2014-01-19 13:36:49 -08:00
|
|
|
part { name: "level"; type: RECT; mouse_events: 0;
|
|
|
|
scale: 1;
|
|
|
|
description { state: "default";
|
|
|
|
fixed: 1 1;
|
|
|
|
rel1.to: "level.sizer";
|
|
|
|
rel2.to: "level.sizer";
|
|
|
|
color: 52 153 255 255;
|
|
|
|
}
|
2014-01-19 13:47:22 -08:00
|
|
|
description { state: "stopped";
|
|
|
|
inherit: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
|
|
|
description { state: "paused";
|
|
|
|
inherit: "default";
|
|
|
|
color: 205 134 43 200;
|
|
|
|
}
|
|
|
|
description { state: "unknown";
|
|
|
|
inherit: "default";
|
|
|
|
color: 200 0 0 200;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
program { signal: "empc,state,playing"; source: "empc";
|
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "level";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
}
|
|
|
|
program { signal: "empc,state,paused"; source: "empc";
|
|
|
|
action: STATE_SET "paused" 0.0;
|
|
|
|
target: "level";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
}
|
|
|
|
program { signal: "empc,state,stopped"; source: "empc";
|
|
|
|
action: STATE_SET "stopped" 0.0;
|
|
|
|
target: "level";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
|
|
|
}
|
|
|
|
program { signal: "empc,state,unknown"; source: "empc";
|
|
|
|
action: STATE_SET "unknown" 0.0;
|
|
|
|
target: "level";
|
|
|
|
transition: LINEAR 0.2 CURRENT;
|
2014-01-19 13:36:49 -08:00
|
|
|
}
|
2014-01-18 18:16:44 -08:00
|
|
|
part { name: "elm.swallow.bar"; type: SWALLOW;
|
|
|
|
scale: 1;
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "elm.dragable.slider"; type: RECT;
|
|
|
|
scale: 1;
|
|
|
|
dragable.x: 1 1 0;
|
|
|
|
dragable.y: 0 0 0;
|
|
|
|
dragable.confine: "elm.swallow.bar";
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
color: 0 0 0 0;
|
|
|
|
min: 16 16;
|
|
|
|
max: 16 16;
|
|
|
|
fixed: 1 1;
|
|
|
|
rel1.relative: 0.5 0.0;
|
|
|
|
rel1.to_x: "elm.swallow.bar";
|
|
|
|
rel2.relative: 0.5 1.0;
|
|
|
|
rel2.to_x: "elm.swallow.bar";
|
|
|
|
}
|
|
|
|
}
|
2014-01-19 13:26:26 -08:00
|
|
|
part { name: "slider1"; type: RECT;
|
|
|
|
scale: 1;
|
|
|
|
dragable.x: 1 1 0;
|
|
|
|
dragable.y: 0 0 0;
|
|
|
|
dragable.confine: "elm.swallow.bar";
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
min: 16 16;
|
|
|
|
max: 16 16;
|
|
|
|
fixed: 1 1;
|
|
|
|
rel1.relative: 0.5 0.0;
|
|
|
|
rel1.to_x: "elm.swallow.bar";
|
|
|
|
rel2.relative: 0.5 1.0;
|
|
|
|
rel2.to_x: "elm.swallow.bar";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part { name: "slider2"; type: RECT;
|
|
|
|
scale: 1;
|
|
|
|
dragable.x: 1 1 0;
|
|
|
|
dragable.y: 0 0 0;
|
|
|
|
dragable.confine: "elm.swallow.bar";
|
|
|
|
description { state: "default";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
min: 16 16;
|
|
|
|
max: 16 16;
|
|
|
|
fixed: 1 1;
|
|
|
|
rel1.relative: 0.5 0.0;
|
|
|
|
rel1.to_x: "elm.swallow.bar";
|
|
|
|
rel2.relative: 0.5 1.0;
|
|
|
|
rel2.to_x: "elm.swallow.bar";
|
|
|
|
}
|
|
|
|
}
|
2014-01-18 18:16:44 -08:00
|
|
|
part { name: "slideevent"; type: RECT; repeat_events: 1;
|
|
|
|
scale: 1;
|
|
|
|
ignore_flags: ON_HOLD;
|
|
|
|
dragable.events: "elm.dragable.slider";
|
2014-01-19 09:16:14 -08:00
|
|
|
description { state: "default";
|
2014-01-18 18:16:44 -08:00
|
|
|
fixed: 1 1;
|
|
|
|
rel1.to: "elm.dragable.slider";
|
|
|
|
rel2.to: "elm.dragable.slider";
|
|
|
|
color: 0 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
2014-01-19 13:26:26 -08:00
|
|
|
program { name: "update";
|
|
|
|
action: STATE_SET "slide" 0.0;
|
2014-01-19 13:36:49 -08:00
|
|
|
target: "level.sizer";
|
2014-01-19 09:16:14 -08:00
|
|
|
transition: LINEAR 0.1;
|
|
|
|
}
|
2014-01-19 13:26:26 -08:00
|
|
|
program { signal: "drag,set"; source: "elm.dragable.slider";
|
|
|
|
script {
|
|
|
|
new Float:x, Float:y;
|
|
|
|
|
|
|
|
get_drag(PART:"slider2", x, y);
|
|
|
|
set_drag(PART:"slider1", x, y);
|
2014-01-19 13:36:49 -08:00
|
|
|
set_state(PART:"level.sizer", "default", 0.0);
|
2014-01-19 13:26:26 -08:00
|
|
|
get_drag(PART:"elm.dragable.slider", x, y);
|
|
|
|
set_drag(PART:"slider2", x, y);
|
|
|
|
}
|
|
|
|
after: "update";
|
2014-01-19 09:16:14 -08:00
|
|
|
}
|
2014-01-18 18:16:44 -08:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 09:33:11 -08:00
|
|
|
}
|