122 lines
2.5 KiB
Plaintext
122 lines
2.5 KiB
Plaintext
images {
|
|
image: "images/icon.png" COMP;
|
|
image: "images/previous.png" COMP;
|
|
image: "images/next.png" COMP;
|
|
image: "images/pause.png" COMP;
|
|
image: "images/play.png" COMP;
|
|
}
|
|
|
|
collections {
|
|
group {
|
|
name: "icon";
|
|
max: 24 24;
|
|
parts {
|
|
part {
|
|
name: "image";
|
|
mouse_events: 0;
|
|
type: IMAGE;
|
|
description {
|
|
state: "default" 0.0;
|
|
aspect: 1.0 1.0;
|
|
aspect_preference: BOTH;
|
|
image.normal: "images/icon.png";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
group {
|
|
name: "modules/music-control/main";
|
|
parts {
|
|
part {
|
|
name: "icon";
|
|
type: IMAGE;
|
|
description {
|
|
state: "default" 0.0;
|
|
aspect: 1.0 1.0;
|
|
aspect_preference: BOTH;
|
|
rel1.relative: 0 0;
|
|
rel2.relative: 1 1;
|
|
image.normal: "images/icon.png";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
group {
|
|
name: "modules/music-control/popup";
|
|
min: 150 30;
|
|
parts {
|
|
part {
|
|
type: IMAGE;
|
|
name: "previous_btn";
|
|
description {
|
|
state: "default" 0;
|
|
aspect: 1.0 1.0;
|
|
aspect_preference: BOTH;
|
|
rel1.relative: 0.0 0.0;
|
|
rel2.relative: 0.33 1.0;
|
|
image.normal: "images/previous.png";
|
|
}
|
|
}
|
|
part {
|
|
type: IMAGE;
|
|
name: "play_btn";
|
|
description {
|
|
state: "default" 0;
|
|
aspect: 1.0 1.0;
|
|
aspect_preference: BOTH;
|
|
rel1.relative: 0.33 0.0;
|
|
rel2.relative: 0.66 1.0;
|
|
image.normal: "images/pause.png";
|
|
}
|
|
description {
|
|
state: "play" 0.0;
|
|
inherit: "default" 0.0;
|
|
image.normal: "images/play.png";
|
|
}
|
|
}
|
|
part {
|
|
type: IMAGE;
|
|
name: "next_btn";
|
|
description {
|
|
state: "default" 0;
|
|
aspect: 1.0 1.0;
|
|
aspect_preference: BOTH;
|
|
rel1.relative: 0.66 0.0;
|
|
rel2.relative: 1.0 1.0;
|
|
image.normal: "images/next.png";
|
|
}
|
|
}
|
|
}
|
|
programs {
|
|
program {
|
|
signal: "mouse,clicked,*";
|
|
source: "previous_btn";
|
|
action: SIGNAL_EMIT "btn,clicked" "previous";
|
|
}
|
|
program {
|
|
signal: "mouse,clicked,*";
|
|
source: "play_btn";
|
|
action: SIGNAL_EMIT "btn,clicked" "play";
|
|
}
|
|
program {
|
|
signal: "mouse,clicked,*";
|
|
source: "next_btn";
|
|
action: SIGNAL_EMIT "btn,clicked" "next";
|
|
}
|
|
program {
|
|
signal: "btn,state,image,play";
|
|
source: "play";
|
|
action: STATE_SET "play" 0.0;
|
|
transition: LINEAR 0.1;
|
|
target: "play_btn";
|
|
}
|
|
program {
|
|
signal: "btn,state,image,pause";
|
|
source: "play";
|
|
action: STATE_SET "default" 0.0;
|
|
transition: LINEAR 0.1;
|
|
target: "play_btn";
|
|
}
|
|
}
|
|
}
|
|
} |