summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2013-01-02 13:22:36 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-02 13:22:36 +0000
commit548b3ecdffa9b2c4321738e48fa6f125509bcabf (patch)
treeedaff739b0d1acfea7b0238c1b663016903e243d /data
parent2fbd1c79ad1e88ca9fff15550a7808d6ac19d0ce (diff)
e/music-control: Move edc and images to data/theme
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 81997
Diffstat (limited to 'data')
-rw-r--r--data/themes/default.edc1
-rw-r--r--data/themes/edc/music_control.edc161
-rw-r--r--data/themes/img/music_control_icon.pngbin0 -> 47348 bytes
-rw-r--r--data/themes/img/next.pngbin0 -> 1382 bytes
-rw-r--r--data/themes/img/pause.pngbin0 -> 638 bytes
-rw-r--r--data/themes/img/play.pngbin0 -> 1153 bytes
-rw-r--r--data/themes/img/previous.pngbin0 -> 1240 bytes
7 files changed, 162 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 4ec3e74f2..2c0ba9427 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -45,6 +45,7 @@ collections {
45#include "edc/xkbswitch.edc" 45#include "edc/xkbswitch.edc"
46#include "edc/tasks.edc" 46#include "edc/tasks.edc"
47#include "edc/connman.edc" 47#include "edc/connman.edc"
48#include "edc/music_control.edc"
48#include "edc/systray.edc" 49#include "edc/systray.edc"
49#include "edc/clock.edc" 50#include "edc/clock.edc"
50#include "edc/ibar-ibox.edc" 51#include "edc/ibar-ibox.edc"
diff --git a/data/themes/edc/music_control.edc b/data/themes/edc/music_control.edc
new file mode 100644
index 000000000..6a0ef23b3
--- /dev/null
+++ b/data/themes/edc/music_control.edc
@@ -0,0 +1,161 @@
1group {
2 name: "modules/music-control/icon";
3 max: 24 24;
4 images {
5 image: "music_control_icon.png" COMP;
6 }
7 parts {
8 part {
9 name: "image";
10 mouse_events: 0;
11 type: IMAGE;
12 description {
13 state: "default" 0.0;
14 aspect: 1.0 1.0;
15 aspect_preference: BOTH;
16 image.normal: "music_control_icon.png";
17 }
18 }
19 }
20}
21
22group {
23 name: "modules/music-control/main";
24 images {
25 image: "music_control_icon.png" COMP;
26 }
27 parts {
28 part {
29 name: "icon";
30 type: IMAGE;
31 description {
32 state: "default" 0.0;
33 aspect: 1.0 1.0;
34 aspect_preference: BOTH;
35 rel1.relative: 0 0;
36 rel2.relative: 1 1;
37 image.normal: "music_control_icon.png";
38 }
39 }
40 }
41}
42
43group {
44 name: "modules/music-control/popup";
45 min: 150 50;
46 images {
47 image: "previous.png" COMP;
48 image: "next.png" COMP;
49 image: "pause.png" COMP;
50 image: "play.png" COMP;
51 }
52 parts {
53 part {
54 name: "player_name";
55 type: TEXT;
56 description {
57 state: "default" 0;
58 text.size: 12;
59 text.text: "Music player";
60 text.font: "Sans";
61 rel1.relative: 0.0 0.0;
62 rel2.relative: 1.0 0.0;
63 rel2.offset: 0 16;
64 }
65 }
66 part {
67 type: IMAGE;
68 name: "previous_btn";
69 description {
70 state: "default" 0;
71 aspect: 1.0 1.0;
72 aspect_preference: BOTH;
73 rel1.to: "player_name";
74 rel1.relative: 0.0 1.0;
75 rel2.relative: 0.33 1.0;
76 image.normal: "previous.png";
77 }
78 }
79 part {
80 type: IMAGE;
81 name: "play_btn";
82 description {
83 state: "default" 0;
84 aspect: 1.0 1.0;
85 aspect_preference: BOTH;
86 rel1.to: "player_name";
87 rel1.relative: 0.33 1.0;
88 rel2.relative: 0.66 1.0;
89 image.normal: "pause.png";
90 }
91 description {
92 state: "play" 0.0;
93 inherit: "default" 0.0;
94 image.normal: "play.png";
95 }
96 }
97 part {
98 type: IMAGE;
99 name: "next_btn";
100 description {
101 state: "default" 0;
102 aspect: 1.0 1.0;
103 aspect_preference: BOTH;
104 rel1.to: "player_name";
105 rel1.relative: 0.66 1.0;
106 rel2.relative: 1.0 1.0;
107 image.normal: "next.png";
108 }
109 }
110 }
111 programs {
112 program {
113 signal: "mouse,clicked,*";
114 source: "previous_btn";
115 action: SIGNAL_EMIT "btn,clicked" "previous";
116 }
117 program {
118 signal: "mouse,clicked,*";
119 source: "play_btn";
120 action: SIGNAL_EMIT "btn,clicked" "play";
121 }
122 program {
123 signal: "mouse,clicked,*";
124 source: "next_btn";
125 action: SIGNAL_EMIT "btn,clicked" "next";
126 }
127 program {
128 signal: "btn,state,image,play";
129 source: "play";
130 action: STATE_SET "play" 0.0;
131 transition: LINEAR 0.1;
132 target: "play_btn";
133 }
134 program {
135 signal: "btn,state,image,play,no_delay";
136 source: "play";
137 action: STATE_SET "play" 0.0;
138 transition: LINEAR 0.0;
139 target: "play_btn";
140 }
141 program {
142 signal: "btn,state,image,pause";
143 source: "play";
144 action: STATE_SET "default" 0.0;
145 transition: LINEAR 0.1;
146 target: "play_btn";
147 }
148 program {
149 signal: "mouse,clicked,*";
150 source: "player_name";
151 action: SIGNAL_EMIT "label,clicked" "player_name";
152 }
153 }
154 script {
155 public message(Msg_Type:type, id, ...) {
156 new txt[128];
157 getsarg (2, txt, 128);
158 set_text(PART:"player_name", txt);
159 }
160 }
161}
diff --git a/data/themes/img/music_control_icon.png b/data/themes/img/music_control_icon.png
new file mode 100644
index 000000000..52175443b
--- /dev/null
+++ b/data/themes/img/music_control_icon.png
Binary files differ
diff --git a/data/themes/img/next.png b/data/themes/img/next.png
new file mode 100644
index 000000000..86e313e50
--- /dev/null
+++ b/data/themes/img/next.png
Binary files differ
diff --git a/data/themes/img/pause.png b/data/themes/img/pause.png
new file mode 100644
index 000000000..c0a09bb82
--- /dev/null
+++ b/data/themes/img/pause.png
Binary files differ
diff --git a/data/themes/img/play.png b/data/themes/img/play.png
new file mode 100644
index 000000000..35f3a2348
--- /dev/null
+++ b/data/themes/img/play.png
Binary files differ
diff --git a/data/themes/img/previous.png b/data/themes/img/previous.png
new file mode 100644
index 000000000..c07da8ba0
--- /dev/null
+++ b/data/themes/img/previous.png
Binary files differ