summaryrefslogtreecommitdiff
path: root/data/elementary/themes/edc/elm
diff options
context:
space:
mode:
Diffstat (limited to 'data/elementary/themes/edc/elm')
-rw-r--r--data/elementary/themes/edc/elm/access.edc62
-rw-r--r--data/elementary/themes/edc/elm/actionslider.edc292
-rw-r--r--data/elementary/themes/edc/elm/bg.edc46
-rw-r--r--data/elementary/themes/edc/elm/border.edc1223
-rw-r--r--data/elementary/themes/edc/elm/bubble.edc738
-rw-r--r--data/elementary/themes/edc/elm/button.edc2092
-rw-r--r--data/elementary/themes/edc/elm/calendar.edc596
-rw-r--r--data/elementary/themes/edc/elm/check.edc936
-rw-r--r--data/elementary/themes/edc/elm/clock.edc397
-rw-r--r--data/elementary/themes/edc/elm/code.edc58
-rw-r--r--data/elementary/themes/edc/elm/colorclass.edc390
-rw-r--r--data/elementary/themes/edc/elm/colorsel.edc759
-rw-r--r--data/elementary/themes/edc/elm/conform.edc51
-rw-r--r--data/elementary/themes/edc/elm/ctxpopup.edc277
-rw-r--r--data/elementary/themes/edc/elm/cursor.edc157
-rw-r--r--data/elementary/themes/edc/elm/dayselector.edc489
-rw-r--r--data/elementary/themes/edc/elm/diskselector.edc389
-rw-r--r--data/elementary/themes/edc/elm/entry.edc1322
-rw-r--r--data/elementary/themes/edc/elm/ews.edc722
-rw-r--r--data/elementary/themes/edc/elm/fileselector.edc231
-rw-r--r--data/elementary/themes/edc/elm/flipselector.edc558
-rw-r--r--data/elementary/themes/edc/elm/focus.edc177
-rw-r--r--data/elementary/themes/edc/elm/frame.edc285
-rw-r--r--data/elementary/themes/edc/elm/gengrid.edc978
-rw-r--r--data/elementary/themes/edc/elm/genlist.edc5252
-rw-r--r--data/elementary/themes/edc/elm/hover.edc1033
-rw-r--r--data/elementary/themes/edc/elm/icon.edc115
-rw-r--r--data/elementary/themes/edc/elm/icon_fdo.edc598
-rw-r--r--data/elementary/themes/edc/elm/index.edc712
-rw-r--r--data/elementary/themes/edc/elm/inwin.edc79
-rw-r--r--data/elementary/themes/edc/elm/label.edc511
-rw-r--r--data/elementary/themes/edc/elm/layout.edc532
-rw-r--r--data/elementary/themes/edc/elm/list.edc721
-rw-r--r--data/elementary/themes/edc/elm/map.edc208
-rw-r--r--data/elementary/themes/edc/elm/menu.edc1160
-rw-r--r--data/elementary/themes/edc/elm/multibuttonentry.edc328
-rw-r--r--data/elementary/themes/edc/elm/naviframe.edc658
-rw-r--r--data/elementary/themes/edc/elm/notify.edc218
-rw-r--r--data/elementary/themes/edc/elm/panel.edc832
-rw-r--r--data/elementary/themes/edc/elm/panes.edc997
-rw-r--r--data/elementary/themes/edc/elm/photo.edc86
-rw-r--r--data/elementary/themes/edc/elm/photocam.edc100
-rw-r--r--data/elementary/themes/edc/elm/player.edc640
-rw-r--r--data/elementary/themes/edc/elm/pointer.edc463
-rw-r--r--data/elementary/themes/edc/elm/popup.edc517
-rw-r--r--data/elementary/themes/edc/elm/progress.edc1399
-rw-r--r--data/elementary/themes/edc/elm/radio.edc290
-rw-r--r--data/elementary/themes/edc/elm/scroller.edc1366
-rw-r--r--data/elementary/themes/edc/elm/segment_control.edc441
-rw-r--r--data/elementary/themes/edc/elm/separator.edc27
-rw-r--r--data/elementary/themes/edc/elm/slider.edc3037
-rw-r--r--data/elementary/themes/edc/elm/slideshow.edc349
-rw-r--r--data/elementary/themes/edc/elm/spinner.edc241
-rw-r--r--data/elementary/themes/edc/elm/textpath.edc24
-rw-r--r--data/elementary/themes/edc/elm/thumb.edc134
-rw-r--r--data/elementary/themes/edc/elm/toolbar.edc1851
-rw-r--r--data/elementary/themes/edc/elm/tooltip.edc431
-rw-r--r--data/elementary/themes/edc/elm/uiclock.edc207
-rw-r--r--data/elementary/themes/edc/elm/video.edc43
-rw-r--r--data/elementary/themes/edc/elm/win.edc31
60 files changed, 38856 insertions, 0 deletions
diff --git a/data/elementary/themes/edc/elm/access.edc b/data/elementary/themes/edc/elm/access.edc
new file mode 100644
index 0000000000..7acc67b1f5
--- /dev/null
+++ b/data/elementary/themes/edc/elm/access.edc
@@ -0,0 +1,62 @@
1group { name: "elm/access/base/default";
2 images.image: "access_glow.png" LOSSY 85;
3 parts {
4 part { name: "block1"; type: RECT; mouse_events: 0;
5 description { state: "default" 0.0;
6 color: 0 0 0 200;
7 fixed: 0 1;
8 rel1.to: "base";
9 rel1.offset: -100000 -100000;
10 rel2.to: "base";
11 rel2.relative: 1.0 0.0;
12 rel2.offset: 100000 96;
13 }
14 }
15 part { name: "block2"; type: RECT; mouse_events: 0;
16 description { state: "default" 0.0;
17 color: 0 0 0 200;
18 fixed: 0 1;
19 rel1.to: "base";
20 rel1.relative: 0.0 1.0;
21 rel1.offset: -100000 -97;
22 rel2.to: "base";
23 rel2.offset: 100000 100000;
24 }
25 }
26 part { name: "block3"; type: RECT; mouse_events: 0;
27 description { state: "default" 0.0;
28 color: 0 0 0 200;
29 rel1.to: "block1";
30 rel1.relative: 0.0 1.0;
31 rel1.offset: 0 0;
32 rel2.to_x: "base";
33 rel2.to_y: "block2";
34 rel2.relative: 0.0 0.0;
35 rel2.offset: 96 -1;
36 }
37 }
38 part { name: "block4"; type: RECT; mouse_events: 0;
39 description { state: "default" 0.0;
40 color: 0 0 0 200;
41 rel1.to_x: "base";
42 rel1.to_y: "block1";
43 rel1.relative: 1.0 1.0;
44 rel1.offset: -97 0;
45 rel2.to: "block2";
46 rel2.relative: 1.0 0.0;
47 rel2.offset: -1 -1;
48 }
49 }
50 part { name: "base"; mouse_events: 0;
51 description { state: "default" 0.0;
52 image.normal: "access_glow.png";
53 image.border: 112 112 112 112;
54 rel1.offset: -102 -102;
55 rel2.offset: 101 101;
56 fill.smooth: 0;
57 }
58 }
59 }
60}
61
62
diff --git a/data/elementary/themes/edc/elm/actionslider.edc b/data/elementary/themes/edc/elm/actionslider.edc
new file mode 100644
index 0000000000..dc382c24bd
--- /dev/null
+++ b/data/elementary/themes/edc/elm/actionslider.edc
@@ -0,0 +1,292 @@
1group { name: "elm/actionslider/base/default";
2 images.image: "bevel_in.png" COMP;
3 images.image: "button_normal.png" COMP;
4 images.image: "button_clicked.png" COMP;
5 images.image: "glow_small.png" COMP;
6 images.image: "inset_shadow.png" COMP;
7 parts {
8 part { name: "bg"; type: RECT; mouse_events: 0;
9 description { state: "default" 0.0;
10 rel1.offset: 1 1;
11 rel2.offset: -2 -2;
12 min: 48 10;
13 color: DARK_GREY_BG_COLOR;
14 }
15 description { state: "disabled" 0.0;
16 inherit: "default" 0.0;
17 color: DARK_GREY_BG_DISABLED_COLOR;
18 }
19 }
20 part { name: "shadow"; mouse_events: 0;
21 description { state: "default" 0.0;
22 image.normal: "inset_shadow.png";
23 image.border: 5 5 7 3;
24 image.middle: 0;
25 rel1.to: "bg";
26 rel2.to: "bg";
27 fill.smooth: 0;
28 color: 255 255 255 128;
29 }
30 }
31 part { name: "inset"; mouse_events: 0;
32 description { state: "default" 0.0;
33 image.normal: "bevel_in.png";
34 image.border: 1 1 1 1;
35 image.middle: 0;
36 fill.smooth: 0;
37 }
38 }
39 part { name: "icon.dragable.area"; type: SPACER;
40 description { state: "default" 0.0;
41 rel1.to: "bg";
42 rel2.to: "bg";
43 }
44 }
45 part { name: "elm.text.left"; type: TEXT;
46 effect: SHADOW BOTTOM;
47 scale: 1;
48 description { state: "default" 0.0;
49 color: FN_COL_DEFAULT;
50 color_class: "button_text";
51 text { font: FN; size: 10;
52 align: 0.05 0.5;
53 min: 1 1;
54 ellipsis: -1;
55 text_class: "button";
56 }
57 }
58 description { state: "disabled" 0.0;
59 inherit: "default" 0.0;
60 color: FN_COL_DISABLE;
61 color_class: "button_text_disabled";
62 }
63 }
64 part { name: "elm.text.center"; type: TEXT;
65 effect: SHADOW BOTTOM;
66 scale: 1;
67 description { state: "default" 0.0;
68 color: FN_COL_DEFAULT;
69 color_class: "check_off_text";
70 text { font: FN; size: 10;
71 align: 0.5 0.5;
72 min: 1 1;
73 ellipsis: -1;
74 text_class: "check_off_text";
75 }
76 }
77 description { state: "disabled" 0.0;
78 inherit: "default" 0.0;
79 color: FN_COL_DISABLE;
80 color_class: "button_text_disabled";
81 }
82 }
83 part { name: "elm.text.right"; type: TEXT;
84 effect: SHADOW BOTTOM;
85 scale: 1;
86 description { state: "default" 0.0;
87 color: FN_COL_DEFAULT;
88 color_class: "check_off_text";
89 text { font: FN; size: 10;
90 align: 0.95 0.5;
91 min: 1 1;
92 ellipsis: -1;
93 text_class: "check_off_text";
94 }
95 }
96 description { state: "disabled" 0.0;
97 inherit: "default" 0.0;
98 color: FN_COL_DISABLE;
99 color_class: "button_text_disabled";
100 }
101 }
102 part { name: "elm.drag_button_base"; type: SWALLOW; mouse_events: 0;
103 scale: 1;
104 description { state: "default" 0.0;
105 fixed: 1 1;
106 min: 40 10;
107 align: 0.5 0.5;
108 rel1.to: "icon.dragable.area";
109 rel2 {
110 relative: 0.0 1.0;
111 to: "icon.dragable.area";
112 }
113 }
114 dragable {
115 confine: "icon.dragable.area";
116 x: 1 1 0;
117 y: 0 0 0;
118 }
119 }
120 part { name: "elm.drag_button"; type: RECT;
121 scale: 1;
122 description { state: "default" 0.0;
123 min: 40 10;
124 color: 0 0 0 0;
125 rel1.to_x: "elm.drag_button_base";
126 rel1.to_y: "icon.dragable.area";
127 rel2.to_x: "elm.drag_button_base";
128 rel2.to_y: "icon.dragable.area";
129 }
130 dragable {
131 events: "elm.drag_button_base";
132 }
133 }
134 part { name: "glow_button"; mouse_events: 0;
135 description { state: "default" 0.0;
136 rel1.offset: 0 -1;
137 rel1.to: "drag_button";
138 rel2.offset: -1 -2;
139 rel2.to: "drag_button";
140 image {
141 normal: "glow_small.png";
142 border: 7 7 7 7;
143 middle: NONE;
144 }
145 fill.smooth: 0;
146 visible: 0;
147 }
148 description { state: "clicked" 0.0;
149 inherit: "default" 0.0;
150 visible: 1;
151 }
152 }
153 part { name: "drag_button"; mouse_events: 0;
154 description { state: "default" 0.0;
155 rel1.to: "elm.drag_button";
156 rel1.offset: -1 0;
157 rel2.to: "elm.drag_button";
158 rel2.offset: 0 0;
159 image {
160 normal: "button_normal.png";
161 border: 4 4 3 5;
162 middle: SOLID;
163 }
164 }
165 description { state: "clicked" 0.0;
166 inherit: "default" 0.0;
167 image.normal: "button_clicked.png";
168 image.border: 5 5 4 6;
169 }
170 }
171 part { name: "elm.text.indicator"; type: TEXT; mouse_events: 0;
172 effect: SHADOW BOTTOM;
173 scale: 1;
174 description { state: "default" 0.0;
175 rel1 {
176 to: "elm.drag_button";
177 offset: 5 2;
178 }
179 rel2 {
180 to: "elm.drag_button";
181 offset: -5 -3;
182 }
183 color: FN_COL_DEFAULT;
184 color_class: "check_off_text";
185 text {
186 font: FN; size: 10;
187 align: 0.5 0.5;
188 min: 0 1;
189 text_class: "check_off_text";
190 }
191 }
192 description { state: "disabled" 0.0;
193 inherit: "default" 0.0;
194 color: FN_COL_DISABLE;
195 color_class: "button_text_disabled";
196 }
197 }
198 part { name: "disabler";
199 type: RECT;
200 description { state: "default" 0.0;
201 color: 0 0 0 0;
202 visible: 0;
203 }
204 description { state: "disabled" 0.0;
205 inherit: "default" 0.0;
206 visible: 1;
207 }
208 }
209 }
210 programs {
211 program {
212 signal: "mouse,up,1"; source: "elm.drag_button";
213 action: SIGNAL_EMIT "elm,action,up,drag_button" "elm";
214 after: "button_unclick_anim";
215 }
216 program { name: "button_unclick_anim";
217 action: STATE_SET "default" 0.0;
218 target: "drag_button";
219 target: "glow_button";
220 }
221 program {
222 signal: "mouse,down,1*"; source: "elm.drag_button";
223 action: SIGNAL_EMIT "elm,action,down,drag_button" "elm";
224 after: "button_click_anim";
225 }
226 program { name: "button_click_anim";
227 action: STATE_SET "clicked" 0.0;
228 target: "drag_button";
229 target: "glow_button";
230 }
231 program {
232 signal: "mouse,move"; source: "elm.drag_button_base";
233 action: SIGNAL_EMIT "elm,action,move,drag_button" "elm";
234 }
235 program {
236 signal: "mouse,down,1*"; source: "elm.text.right";
237 action: SIGNAL_EMIT "elm,action,down,right" "elm";
238 }
239 program {
240 signal: "mouse,down,1*"; source: "elm.text.left";
241 action: SIGNAL_EMIT "elm,action,down,left" "elm";
242 }
243 program {
244 signal: "mouse,down,1*"; source: "elm.text.center";
245 action: SIGNAL_EMIT "elm,action,down,center" "elm";
246 }
247 program {
248 signal: "elm,state,disabled"; source: "elm";
249 action: STATE_SET "disabled" 0.0;
250 target: "bg";
251 target: "disabler";
252 target: "elm.text.left";
253 target: "elm.text.center";
254 target: "elm.text.right";
255 target: "elm.text.indicator";
256 }
257 program {
258 signal: "elm,state,enabled"; source: "elm";
259 action: STATE_SET "default" 0.0;
260 target: "bg";
261 target: "disabler";
262 target: "elm.text.left";
263 target: "elm.text.center";
264 target: "elm.text.right";
265 target: "elm.text.indicator";
266 }
267 }
268}
269
270group { name: "elm/actionslider/base/bar";
271 inherit: "elm/actionslider/base/default";
272 images.image: "horiz_glow_run_big.png" COMP;
273 parts {
274 part { name: "bar"; mouse_events: 0;
275 insert_before: "elm.drag_button_base";
276 description { state: "default" 0.0;
277 rel1.to: "bg";
278 rel1.offset: 1 4;
279 rel2 {
280 relative: 0.0 1.0;
281 offset: 3 -5;
282 to_x: "elm.drag_button_base";
283 to_y: "bg";
284 }
285 image {
286 normal: "horiz_glow_run_big.png";
287 border: 0 4 0 0;
288 }
289 }
290 }
291 }
292}
diff --git a/data/elementary/themes/edc/elm/bg.edc b/data/elementary/themes/edc/elm/bg.edc
new file mode 100644
index 0000000000..48bdfcdedc
--- /dev/null
+++ b/data/elementary/themes/edc/elm/bg.edc
@@ -0,0 +1,46 @@
1/* bg widget style information
2
3 [SWALLOW]
4 elm.swallow.rectangle: Used for elm_bg_color_set()
5 elm.swallow.background: Used for elm_bg_file_set()
6 elm.swallow.content: Used for elm_layout_part_content_set(bg, "overlay", content).
7*/
8
9group { name: "elm/bg/base/default";
10 data.item: "version" "119";
11 images.image: "bevel_dark_out.png" COMP;
12 parts {
13 part { name: "clipper"; type: RECT;
14 description { state: "default" 0.0;
15 }
16 }
17 part { name: "base"; type: RECT;
18 description { state: "default" 0.0;
19 color_class: "dialog_base";
20 color: 64 64 64 255;
21 }
22 }
23 part { name: "elm.swallow.rectangle"; type: SWALLOW;
24 description { state: "default" 0.0;
25 }
26 }
27 part { name: "elm.swallow.background"; type: SWALLOW;
28 clip_to: "clipper";
29 description { state: "default" 0.0;
30 fixed: 1 1;
31 }
32 }
33 part { name: "bevel";
34 description { state: "default" 0.0;
35 image.normal: "bevel_dark_out.png";
36 image.border: 1 1 1 1;
37 image.middle: 0;
38 fill.smooth: 0;
39 }
40 }
41 part { name: "elm.swallow.content"; type: SWALLOW;
42 description { state: "default" 0.0;
43 }
44 }
45 }
46}
diff --git a/data/elementary/themes/edc/elm/border.edc b/data/elementary/themes/edc/elm/border.edc
new file mode 100644
index 0000000000..b788e73115
--- /dev/null
+++ b/data/elementary/themes/edc/elm/border.edc
@@ -0,0 +1,1223 @@
1/* Window client-side decorations and extra slots
2 * Includes swallows for:
3 * - app content
4 * - main menu
5 * - indicator
6 * - soft key
7 * - virtual keyboard
8 */
9
10group { name: "elm/border/base/default";
11 images.image: "vgrad_med_lighter.png" COMP;
12 images.image: "vgrad_med_dark.png" COMP;
13 images.image: "bevel_out.png" COMP;
14 images.image: "shine.png" COMP;
15 images.image: "bevel_dark_out.png" COMP;
16 images.image: "sym_close_dark_normal.png" COMP;
17 images.image: "sym_close_dark_selected.png" COMP;
18 images.image: "sym_close_light_normal.png" COMP;
19 images.image: "sym_close_light_selected.png" COMP;
20 images.image: "sym_down_dark_normal.png" COMP;
21 images.image: "sym_down_dark_selected.png" COMP;
22 images.image: "sym_down_light_normal.png" COMP;
23 images.image: "sym_down_light_selected.png" COMP;
24 images.image: "sym_up_dark_normal.png" COMP;
25 images.image: "sym_up_dark_selected.png" COMP;
26 images.image: "sym_up_light_normal.png" COMP;
27 images.image: "sym_up_light_selected.png" COMP;
28 images.image: "glow_round_corners_small.png" COMP;
29 images.image: "knob_round_small_busy.png" COMP;
30 images.image: "screen_circular_shadow.png" COMP;
31 images.image: "win_shadow.png" COMP;
32 data.item: "shadow" "1";
33 data.item: "version" "119";
34 parts {
35 /* opaque region of the window, to inform the compositor */
36 spacer { "elm.spacer.opaque";
37 desc {
38 rel1.to: "top_clip";
39 rel2.to: "bottom_clip";
40 }
41 desc { "max"; inherit: "default"; }
42 }
43 /* covers the entire client contents, excluding the main menu */
44 spacer { "elm.spacer.content";
45 required; // since 1.19
46 desc {
47 rel1.to: "elm.swallow.menu";
48 rel1.relative: 0.0 1.0;
49 rel2.to: "elm.swallow.keyboard";
50 rel2.relative: 1.0 0.0;
51 }
52 }
53 /* shadow spacer and clipper */
54 spacer { "shadow_spacer";
55 desc { "default";
56 WIN_SHADOW_SPACER;
57 }
58 desc { "hidden";
59 rel1.offset: 0 0;
60 rel2.offset: -1 -1;
61 }
62 }
63 image { "shadow"; nomouse;
64 desc { "default";
65 rel.to: "shadow_spacer";
66 WIN_SHADOW;
67 }
68 desc { "hidden"; inherit: "default"; hid; }
69 }
70 /* window background: solid color */
71 rect { "bg_clip";
72 nomouse;
73 desc { "default";
74 rel1.to: "top_clip";
75 rel1.relative: 0.0 1.0;
76 rel2.to: "bottom_clip";
77 }
78 }
79 rect { "elm.rect.background";
80 required; // @since 1.19
81 clip: "bg_clip";
82 desc { "default";
83 color: 255 255 255 255;
84 color_class: "elm/win/background"; // FIXME: color_class naming scheme
85 visible: 0;
86 }
87 desc { "visible";
88 inherit: "default";
89 visible: 1;
90 }
91 }
92 /* window background: image */
93 swallow { "elm.swallow.background";
94 required; // @since 1.19
95 clip: "client_clip";
96 }
97 image { "background_bevel";
98 desc { "default";
99 image {
100 normal: "bevel_dark_out.png";
101 border: 1 1 1 1;
102 middle: 0;
103 }
104 fill.smooth: 0;
105 rel.to: "elm.spacer.content";
106 visible: 0;
107 }
108 desc { "visible";
109 inherit: "default";
110 visible: 1;
111 }
112 }
113 spacer { "indicator_spacer";
114 desc { "default";
115 rel.to: "elm.swallow.indicator";
116 }
117 desc { "hidden";
118 rel.to: "top_clip";
119 rel1.relative: 0.0 1.0;
120 align: 0.5 0.0;
121 fixed: 1 1;
122 }
123 }
124
125 /* main menu */
126 rect { "menu_bg";
127 desc { "default";
128 color: 64 64 64 255; // FIXME: color_class
129 align: 0.5 0.0;
130 rel.to: "elm.swallow.menu";
131 }
132 }
133 swallow { "elm.swallow.menu";
134 required: 1; // since 1.19
135 desc { "default";
136 rel.to: "indicator_spacer";
137 rel1.relative: 0.0 1.0;
138 visible: 0;
139 align: 0.5 0.0;
140 fixed: 1 1;
141 }
142 desc { "visible"; inherit: "default";
143 visible: 1;
144 fixed: 0 1;
145 }
146 }
147
148 /* application contents - spacer and clipper (without main menu) */
149 spacer { "client_spacer";
150 desc { "default";
151 rel1.to: "elm.swallow.menu";
152 rel1.relative: 0.0 1.0;
153 rel2.to: "elm.swallow.keyboard";
154 rel2.relative: 1.0 0.0;
155 }
156 }
157 rect { "client_clip";
158 nomouse;
159 desc { "default";
160 rel.to: "client_spacer";
161 }
162 }
163
164 /* application contents */
165 swallow { "elm.swallow.client";
166 clip: "client_clip";
167 desc { "default";
168 rel.to: "client_spacer";
169 }
170 }
171
172 /* modal window blocker */
173 rect { "elm.rect.blocker";
174 required;
175 desc { "default";
176 rel1.to: "top_clip";
177 rel1.relative: 0.0 1.0;
178 rel2.to: "bottom_clip";
179 rel2.relative: 1.0 0.0;
180 color: 0 0 0 0;
181 hid;
182 }
183 desc { "visible";
184 inherit: "default";
185 color_class: "elm/win/blocker";
186 color: 255 255 255 255;
187 vis;
188 }
189 }
190
191 /* top title bar - spacer and clipper */
192 rect { "top_clip"; //nomouse;
193 desc { "default";
194 rel1.to: "shadow_spacer";
195 rel2.to_y: "title2";
196 rel2.to_x: "shadow_spacer";
197 vis;
198 }
199 desc { "hidden";
200 inherit: "default";
201 rel1.relative: 0.0 0.0;
202 rel2.to: "shadow_spacer";
203 rel2.relative: 1.0 0.0;
204 rel2.offset: -1 -1;
205 max: -1 0;
206 min: 0 0;
207 fixed: 0 1;
208 hid;
209 }
210 }
211 /* top title bar */
212 image { "top"; nomouse;
213 clip: "top_clip";
214 desc { "default";
215 image.normal: "vgrad_med_lighter.png";
216 rel.to: "top_clip";
217 fill.smooth: 0;
218 TILED_HORIZ(120)
219 color_class: "border_frame";
220 }
221 desc { "focused";
222 inherit: "default";
223 image.normal: "vgrad_med_dark.png";
224 color_class: "border_frame_active";
225 }
226 }
227 image { "bevel"; nomouse;
228 clip: "top_clip";
229 desc { "default";
230 image.normal: "bevel_out.png";
231 image.border: 1 1 1 1;
232 image.middle: 0;
233 rel.to: "top_clip";
234 fill.smooth: 0;
235 }
236 }
237 text { "elm.text.title"; nomouse;
238 scale: 1;
239 effect: SHADOW BOTTOM;
240 clip: "top_clip";
241 desc { "default";
242 rel1.relative: 1.0 0.0;
243 rel1.offset: 1 3;
244 rel1.to_x: "elm.event.icon";
245 rel1.to_y: "shadow_spacer";
246 rel2.relative: 0.0 0.0;
247 rel2.offset: -2 3;
248 rel2.to_x: "elm.event.minimize";
249 rel2.to_y: "shadow_spacer";
250 align: 0.5 0.0;
251 color_class: "border_title";
252 color3: 255 255 255 255;
253 text { font: FNBD; size: 10;
254 text_class: "title_bar";
255 align: 0.5 0.0;
256 min: 0 1;
257 }
258 fixed: 0 1;
259 }
260 desc { "focused";
261 inherit: "default";
262 visible: 0;
263 }
264 }
265 text { "title2"; nomouse;
266 scale: 1;
267 effect: SOFT_SHADOW BOTTOM;
268 clip: "top_clip";
269 desc { "default";
270 rel1.relative: 1.0 0.0;
271 rel1.offset: 1 2;
272 rel1.to_x: "elm.event.icon";
273 rel1.to_y: "shadow_spacer";
274 rel2.relative: 0.0 0.0;
275 rel2.offset: -1 2;
276 rel2.to_x: "elm.event.minimize";
277 rel2.to_y: "shadow_spacer";
278 align: 0.5 0.0;
279 color_class: "border_title_active";
280 color3: 255 255 255 255;
281 text { font: FNBD; size: 10;
282 text_source: "elm.text.title";
283 text_class: "title_bar";
284 align: 0.5 0.0;
285 min: 0 1;
286 }
287 fixed: 0 1;
288 visible: 0;
289 }
290 desc { "focused";
291 inherit: "default";
292 visible: 1;
293 }
294 }
295 spacer { "icon";
296 desc { "default";
297 rel1.to: "elm.event.icon";
298 rel2.to: "elm.event.icon";
299 }
300 desc { "bounce1";
301 inherit: "default";
302 rel1.relative: 0.5 0.5;
303 rel2.relative: 0.5 0.5;
304 }
305 desc { "bounce2";
306 inherit: "default";
307 rel1.relative: -0.5 -0.5;
308 rel2.relative: 1.2 1.2;
309 }
310 }
311 swallow { "elm.swallow.icon"; nomouse;
312 clip_to: "top_clip";
313 desc { "default";
314 rel1.to: "icon";
315 rel1.relative: 0.15 0.15;
316 rel2.to: "icon";
317 rel2.relative: 0.85 0.85;
318 rel2.offset: 0 0;
319 }
320 }
321 rect { "busy_clip"; nomouse;
322 desc { "default";
323 color: 255 255 255 0;
324 visible: 0;
325 }
326 desc { "hung";
327 inherit: "default";
328 color: 255 255 255 255;
329 visible: 1;
330 }
331 }
332 image { "knob"; nomouse;
333 clip: "busy_clip";
334 desc { "default";
335 fixed: 1 1;
336 image.normal: "knob_round_small_busy.png";
337 aspect: 1.0 1.0; aspect_preference: VERTICAL;
338 max: 20 20;
339 rel1.relative: 1.0 0.0;
340 rel1.offset: 2 -0;
341 rel1.to: "elm.event.icon";
342 rel2.relative: 1.0 1.0;
343 rel2.offset: 2 -1;
344 rel2.to: "elm.event.icon";
345 align: 0.0 0.5;
346 fixed: 1 1;
347 }
348 }
349 image { "knob_spinner"; nomouse;
350 clip: "busy_clip";
351 desc { "default";
352 fixed: 1 1;
353 rel1.to: "knob";
354 rel2.to: "knob";
355 image.normal: "glow_round_corners_small.png";
356 map.on: 1;
357 map.smooth: 1;
358 map.rotation.center: "knob";
359 }
360 desc { "spin";
361 inherit: "default";
362 map.rotation.z: 360;
363 }
364 }
365 rect { "clip1"; nomouse;
366 desc { "default";
367 rel1.to: "top_clip";
368 rel2.to: "top_clip";
369 }
370 desc { "focused";
371 inherit: "default";
372 visible: 0;
373 }
374 }
375 rect { "clip2"; nomouse;
376 desc { "default";
377 rel1.to: "top_clip";
378 rel2.to: "top_clip";
379 visible: 0;
380 }
381 desc { "focused";
382 inherit: "default";
383 visible: 1;
384 }
385 }
386 image { "close1"; nomouse;
387 clip: "clip1";
388 desc { "default";
389 image.normal: "sym_close_dark_normal.png";
390 rel1.to: "elm.event.close";
391 rel2.to: "elm.event.close";
392 min: 15 15;
393 max: 15 15;
394 fixed: 1 1;
395 }
396 desc { "selected";
397 inherit: "default";
398 image.normal: "sym_close_dark_selected.png";
399 }
400 }
401 image { "max1"; nomouse;
402 clip: "clip1";
403 desc { "default";
404 image.normal: "sym_up_dark_normal.png";
405 rel1.to: "elm.event.maximize";
406 rel2.to: "elm.event.maximize";
407 min: 15 15;
408 max: 15 15;
409 fixed: 1 1;
410 }
411 desc { "selected";
412 inherit: "default";
413 image.normal: "sym_up_dark_selected.png";
414 }
415 }
416 image { "min1"; nomouse;
417 clip: "clip1";
418 desc { "default";
419 image.normal: "sym_down_dark_normal.png";
420 rel1.to: "elm.event.minimize";
421 rel2.to: "elm.event.minimize";
422 min: 15 15;
423 max: 15 15;
424 fixed: 1 1;
425 }
426 desc { "selected";
427 inherit: "default";
428 image.normal: "sym_down_dark_selected.png";
429 }
430 }
431 image { "close2"; nomouse;
432 clip: "clip2";
433 desc { "default";
434 image.normal: "sym_close_light_normal.png";
435 rel1.to: "elm.event.close";
436 rel2.to: "elm.event.close";
437 min: 15 15;
438 max: 15 15;
439 fixed: 1 1;
440 }
441 desc { "selected";
442 inherit: "default";
443 image.normal: "sym_close_light_selected.png";
444 }
445 }
446 image { "max2"; nomouse;
447 clip: "clip2";
448 desc { "default";
449 image.normal: "sym_up_light_normal.png";
450 rel1.to: "elm.event.maximize";
451 rel2.to: "elm.event.maximize";
452 min: 15 15;
453 max: 15 15;
454 fixed: 1 1;
455 }
456 desc { "selected";
457 inherit: "default";
458 image.normal: "sym_up_light_selected.png";
459 }
460 }
461 image { "min2"; nomouse;
462 clip: "clip2";
463 desc { "default";
464 image.normal: "sym_down_light_normal.png";
465 rel1.to: "elm.event.minimize";
466 rel2.to: "elm.event.minimize";
467 min: 15 15;
468 max: 15 15;
469 fixed: 1 1;
470 }
471 desc { "selected";
472 inherit: "default";
473 image.normal: "sym_down_light_selected.png";
474 }
475 }
476 rect { "elm.event.icon";
477 desc { "default";
478 rel1.relative: 0.0 0.0;
479 rel1.to: "top_clip";
480 rel2.relative: 0.0 1.0;
481 rel2.to: "top_clip";
482 align: 0.0 0.5;
483 aspect: 1.0 1.0; aspect_preference: VERTICAL;
484 color: 0 0 0 0;
485 }
486 }
487 rect { "elm.event.titlebar";
488 desc { "default";
489 rel1.relative: 1.0 0.0;
490 rel1.to_x: "elm.event.icon";
491 rel1.to_y: "top_clip";
492 rel2.relative: 0.0 1.0;
493 rel2.offset: 0 -1;
494 rel2.to_x: "elm.event.minimize";
495 rel2.to_y: "top_clip";
496 color: 0 0 0 0;
497 }
498 }
499 rect { "elm.event.close";
500 desc { "default";
501 rel.to: "top_clip";
502 rel1.relative: 1.0 0.0;
503 rel2.relative: 1.0 1.0;
504 align: 1.0 0.5;
505 aspect: 1.0 1.0; aspect_preference: VERTICAL;
506 color: 0 0 0 0;
507 }
508 }
509 rect { "elm.event.maximize";
510 desc { "default";
511 rel1.relative: -0.25 0.0;
512 rel1.offset: -1 0;
513 rel1.to_x: "elm.event.close";
514 rel1.to_y: "top_clip";
515 rel2.relative: -0.25 1.0;
516 rel2.to_x: "elm.event.close";
517 rel2.to_y: "top_clip";
518 align: 1.0 0.5;
519 aspect: 1.0 1.0; aspect_preference: VERTICAL;
520 color: 0 0 0 0;
521 }
522 }
523 rect { "elm.event.minimize";
524 desc { "default";
525 rel1.relative: 0.0 0.0;
526 rel1.offset: -1 0;
527 rel1.to_x: "elm.event.maximize";
528 rel1.to_y: "top_clip";
529 rel2.relative: 0.0 1.0;
530 rel2.to_y: "top_clip";
531 rel2.to_x: "elm.event.maximize";
532 align: 1.0 0.5;
533 aspect: 1.0 1.0; aspect_preference: VERTICAL;
534 color: 0 0 0 0;
535 }
536 }
537 rect { "top_resize_clip";
538 clip: "top_clip";
539 desc { "default";
540 rel.to: "top_clip";
541 }
542 desc { "hidden";
543 inherit: "default";
544 hid;
545 }
546 }
547 rect { "elm.event.resize.tl";
548 clip: "top_resize_clip";
549 desc { "default";
550 rel.to: "top_clip";
551 rel2.relative: 0.0 0.0;
552 min: 32 4;
553 align: 0.0 0.0;
554 color: 0 0 0 0;
555 fixed: 1 1;
556 }
557 desc { "hidden"; inherit: "default"; hid; }
558 }
559 rect { "elm.event.resize.t";
560 clip: "top_resize_clip";
561 desc { "default";
562 rel1.relative: 1.0 0.0;
563 rel1.to_y: "top_clip";
564 rel1.to_x: "elm.event.resize.tl";
565 rel2.relative: 0.0 0.0;
566 rel2.to_x: "elm.event.resize.tr";
567 rel2.to_y: "top_clip";
568 min: 0 4;
569 align: 0.5 0.0;
570 color: 0 0 0 0;
571 fixed: 1 1;
572 }
573 desc { "hidden"; inherit: "default"; hid; }
574 }
575 rect { "elm.event.resize.tr";
576 clip: "top_resize_clip";
577 desc { "default";
578 rel.to: "top_clip";
579 rel1.relative: 1.0 0.0;
580 rel2.relative: 1.0 0.0;
581 min: 32 4;
582 align: 1.0 0.0;
583 color: 0 0 0 0;
584 fixed: 1 1;
585 }
586 desc { "hidden"; inherit: "default"; hid; }
587 }
588 /* bottom border - spacer and clipper */
589 swallow { "elm.swallow.keyboard";
590 desc { "default";
591 rel.to: "bottom_clip";
592 rel2.relative: 1.0 0.0;
593 align: 0.0 1.0;
594 fixed: 0 1;
595 }
596 }
597 rect { "bottom_clip";
598 desc { "default";
599 rel.to: "shadow_spacer";
600 rel1 { relative: 0.0 1.0; offset: 0 -5; }
601 min: 0 5;
602 fixed: 0 1;
603 }
604 desc { "hidden";
605 inherit: "default";
606 rel1 { relative: 0.0 1.0; offset: 0 0; }
607 min: 0 0;
608 hid;
609 }
610 }
611 rect { "bottom";
612 nomouse;
613 desc { "default";
614 color_class: "border_bottom";
615 color: 64 64 64 255; /* FIXME */
616 rel.to: "bottom_clip";
617 }
618 }
619 image { "bevel2"; nomouse;
620 clip: "bottom_clip";
621 desc { "default";
622 image.normal: "bevel_dark_out.png";
623 image.border: 1 1 1 1;
624 image.middle: 0;
625 rel.to: "bottom_clip";
626 fill.smooth: 0;
627 }
628 }
629 rect { "elm.event.resize.bl";
630 clip: "bottom_clip";
631 desc { "default";
632 rel1.relative: 0.0 1.0;
633 rel1.to: "bottom_clip";
634 rel2.relative: 0.0 1.0;
635 rel2.to: "bottom_clip";
636 min: 32 5;
637 align: 0.0 1.0;
638 color: 0 0 0 0;
639 fixed: 1 1;
640 }
641 desc { "hidden"; inherit: "default"; hid; }
642 }
643 rect { "elm.event.resize.b";
644 clip: "bottom_clip";
645 desc { "default";
646 rel1.relative: 1.0 1.0;
647 rel1.to_x: "elm.event.resize.tl";
648 rel1.to_y: "bottom_clip";
649 rel1.offset: 0 -1;
650 rel2.relative: 0.0 1.0;
651 rel2.to_x: "elm.event.resize.tr";
652 rel2.to_y: "bottom_clip";
653 min: 0 5;
654 align: 0.5 1.0;
655 color: 0 0 0 0;
656 fixed: 0 1;
657 }
658 desc { "hidden"; inherit: "default"; hid; }
659 }
660 rect { "elm.event.resize.br";
661 clip: "bottom_clip";
662 desc { "default";
663 rel1.relative: 1.0 1.0;
664 rel1.to: "bottom_clip";
665 rel2.relative: 1.0 1.0;
666 rel2.to: "bottom_clip";
667 min: 32 5;
668 align: 1.0 1.0;
669 color: 0 0 0 0;
670 fixed: 1 1;
671 }
672 desc { "hidden"; inherit: "default"; hid; }
673 }
674 /* top title bar decoration */
675 image { "shine"; nomouse;
676 clip: "top_clip";
677 desc { "default";
678 image.normal: "shine.png";
679 rel.to: "top_clip";
680 rel1.offset: 0 -2;
681 rel2.relative: 1.0 0.0;
682 rel2.offset: -1 2;
683 FIXED_SIZE(69, 5)
684 }
685 }
686 rect { "indicator_bg";
687 clip: "bg_clip";
688 desc { "default";
689 color: 148 23 45 255;
690 rel.to: "elm.swallow.indicator";
691 }
692 desc { "bg_transparent";
693 inherit: "default";
694 color: 0 0 0 0;
695 }
696 }
697 swallow { "elm.swallow.indicator";
698 clip: "bg_clip";
699 desc { "default";
700 rel.to: "top_clip";
701 rel1.relative: 0.0 1.0;
702 visible: 0;
703 align: 0.5 0.0;
704 fixed: 1 1;
705 }
706 desc { "visible"; inherit: "default";
707 visible: 1;
708 fixed: 0 1;
709 }
710 desc { "hidden"; inherit: "visible";
711 align: 0.5 1.0;
712 }
713 }
714 }
715
716#define BORDERLESS 1
717#define MAXIMIZED 2
718#define UNRESIZABLE 4
719#define SET_MODE(a) script { new m = get_int(border_mode); m |= (a); set_int(border_mode, m); eval_mode(m); }
720#define UNSET_MODE(a) script { new m = get_int(border_mode); m &= ~(a); set_int(border_mode, m); eval_mode(m); }
721
722#define INDICATOR_TYPE_UNKNOWN 0
723#define INDICATOR_TYPE_BG_OPAQUE 1
724#define INDICATOR_TYPE_BG_TRANSPARENT 2
725#define INDICATOR_TYPE_HIDDEN 3
726
727 programs {
728 script {
729 public border_mode;
730 public indicator_type = 0;
731 public indicator_enabled = 0;
732 public eval_mode(m) {
733 if (m & (BORDERLESS | MAXIMIZED | UNRESIZABLE)) {
734 set_state(PART:"bottom_clip", "hidden", 0.0);
735 set_state(PART:"top_resize_clip", "hidden", 0.0);
736 } else {
737 set_state(PART:"bottom_clip", "default", 0.0);
738 set_state(PART:"top_resize_clip", "default", 0.0);
739 }
740 }
741 }
742 program {
743 signal: "elm,state,borderless,on"; source: "elm";
744 action: STATE_SET "hidden";
745 targets: "top_clip" "bottom_clip";
746 after: "borderless,on";
747 }
748 program { "borderless,on"; SET_MODE(BORDERLESS); }
749 program {
750 signal: "elm,state,borderless,off"; source: "elm";
751 action: STATE_SET "default";
752 targets: "top_clip" "bottom_clip";
753 after: "borderless,off";
754 }
755 program { "borderless,off"; UNSET_MODE(BORDERLESS); }
756 program {
757 signal: "elm,state,unresizable,on"; source: "elm";
758 SET_MODE(UNRESIZABLE);
759 }
760 program {
761 signal: "elm,state,unresizable,off"; source: "elm";
762 UNSET_MODE(UNRESIZABLE);
763 }
764 program {
765 signal: "elm,state,shadow,on"; source: "elm";
766 action: STATE_SET "default";
767 targets: "shadow_spacer" "shadow";
768 }
769 program {
770 signal: "elm,state,shadow,off"; source: "elm";
771 action: STATE_SET "hidden";
772 targets: "shadow_spacer" "shadow";
773 }
774 program {
775 signal: "elm,state,background,solid,on"; source: "elm";
776 action: STATE_SET "visible";
777 target: "elm.rect.background";
778 }
779 program {
780 signal: "elm,state,background,solid,off"; source: "elm";
781 action: STATE_SET "default";
782 target: "elm.rect.background";
783 }
784 program {
785 signal: "elm,state,background,standard,on"; source: "elm";
786 action: STATE_SET "visible";
787 target: "background_bevel";
788 }
789 program {
790 signal: "elm,state,background,standard,off"; source: "elm";
791 action: STATE_SET "default";
792 target: "background_bevel";
793 }
794 program {
795 signal: "elm,action,focus"; source: "elm";
796 action: STATE_SET "focused";
797 target: "top";
798 target: "elm.text.title";
799 target: "title2";
800 target: "clip1";
801 target: "clip2";
802 }
803 program {
804 signal: "elm,action,unfocus"; source: "elm";
805 action: STATE_SET "default";
806 target: "top";
807 target: "elm.text.title";
808 target: "title2";
809 target: "clip1";
810 target: "clip2";
811 }
812 program {
813 signal: "elm,state,urgent"; source: "elm";
814 action: STATE_SET "bounce1";
815 target: "icon";
816 after: "urg1";
817 }
818 program { name: "urg1";
819 action: STATE_SET "bounce2";
820 transition: DECELERATE 0.4;
821 target: "icon";
822 after: "urg2";
823 }
824 program { name: "urg2";
825 action: STATE_SET "bounce1";
826 transition: ACCELERATE 0.3;
827 target: "icon";
828 after: "urg1";
829 }
830 program {
831 signal: "elm,state,not_urgent"; source: "elm";
832 action: STATE_SET "default";
833 target: "icon";
834 }
835 program { name: "spin";
836 signal: "elm,state,hung"; source: "elm";
837 action: STATE_SET "spin";
838 transition: LINEAR 1.0;
839 target: "knob_spinner";
840 after: "spin2";
841 }
842 program { name: "spin2";
843 action: STATE_SET "default";
844 target: "knob_spinner";
845 after: "spin";
846 }
847 program {
848 signal: "elm,state,hung"; source: "elm";
849 action: STATE_SET "hung";
850 transition: SINUSOIDAL 0.25;
851 target: "busy_clip";
852 }
853 program {
854 signal: "elm,state,unhung"; source: "elm";
855 action: STATE_SET "default";
856 transition: SINUSOIDAL 1.0;
857 target: "busy_clip";
858 after: "spin3";
859 }
860 program { name: "spin3";
861 action: ACTION_STOP;
862 target: "spin";
863 target: "spin2";
864 after: "spin4";
865 }
866 program { name: "spin4";
867 action: STATE_SET "default";
868 target: "knob_spinner";
869 }
870
871 /* maximize & unmaximize */
872 program {
873 signal: "elm,state,maximize*"; source: "elm";
874 action: STATE_SET "max";
875 target: "elm.spacer.opaque";
876 }
877 program {
878 signal: "elm,state,maximize*"; source: "elm";
879 SET_MODE(MAXIMIZED);
880 }
881 program {
882 signal: "elm,state,unmaximize*"; source: "elm";
883 action: STATE_SET "default";
884 target: "elm.spacer.opaque";
885 }
886 program {
887 signal: "elm,state,unmaximize*"; source: "elm";
888 UNSET_MODE(MAXIMIZED);
889 }
890
891 /*indicator*/
892 program {
893 signal: "elm,action,show_indicator"; source: "elm";
894 script {
895 set_int(indicator_enabled, 1);
896 }
897 after: "update_indicator";
898 }
899 program {
900 signal: "elm,action,hide_indicator"; source: "elm";
901 script {
902 set_int(indicator_enabled, 0);
903 }
904 after: "update_indicator";
905 }
906 program {
907 signal: "elm,action,indicator,bg_opaque"; source: "elm";
908 script {
909 set_int(indicator_type, INDICATOR_TYPE_BG_OPAQUE);
910 }
911 after: "update_indicator";
912 }
913 program {
914 signal: "elm,action,indicator,bg_transparent"; source: "elm";
915 script {
916 set_int(indicator_type, INDICATOR_TYPE_BG_TRANSPARENT);
917 }
918 after: "update_indicator";
919 }
920 program {
921 signal: "elm,action,indicator,hidden"; source: "elm";
922 script {
923 set_int(indicator_type, INDICATOR_TYPE_HIDDEN);
924 }
925 after: "update_indicator";
926 }
927 program {
928 signal: "elm,action,indicator,show_effect"; source: "elm";
929 action: STATE_SET "visible";
930 transition: DECELERATE 0.2;
931 target: "elm.swallow.indicator";
932 }
933 program {
934 signal: "elm,action,indicator,hide_effect"; source: "elm";
935 action: STATE_SET "hidden";
936 transition: DECELERATE 0.2;
937 target: "elm.swallow.indicator";
938 }
939 program { name: "update_indicator";
940 script {
941 if (get_int(indicator_enabled)) {
942 if ((get_int(indicator_type) == INDICATOR_TYPE_BG_OPAQUE) ||
943 (get_int(indicator_type) == INDICATOR_TYPE_UNKNOWN)) {
944 set_state(PART:"elm.swallow.indicator", "visible", 0.0);
945 set_state(PART:"indicator_spacer", "default", 0.0);
946 set_state(PART:"indicator_bg", "default", 0.0);
947 } else if (get_int(indicator_type) == INDICATOR_TYPE_BG_TRANSPARENT) {
948 set_state(PART:"elm.swallow.indicator", "visible", 0.0);
949 set_state(PART:"indicator_spacer", "default", 0.0);
950 set_state(PART:"indicator_bg", "bg_transparent", 0.0);
951 } else if (get_int(indicator_type) == INDICATOR_TYPE_HIDDEN) {
952 set_state(PART:"elm.swallow.indicator", "hidden", 0.0);
953 set_state(PART:"indicator_spacer", "hidden", 0.0);
954 set_state(PART:"indicator_bg", "default", 0.0);
955 }
956 } else {
957 set_state(PART:"elm.swallow.indicator", "default", 0.0);
958 set_state(PART:"indicator_spacer", "default", 0.0);
959 }
960 }
961 }
962
963 /* application desktop menu */
964 program { name: "show_menu";
965 signal: "elm,action,show_menu"; source: "elm";
966 action: STATE_SET "visible";
967 target: "elm.swallow.menu";
968 }
969 program { name: "hide_menu";
970 signal: "elm,action,hide"; source: "elm";
971 action: STATE_SET "default";
972 target: "elm.swallow.menu";
973 }
974
975 /* modal windows */
976 program { name: "hide_blocker";
977 signal: "elm,action,hide_blocker"; source: "elm";
978 action: STATE_SET "default" 0.0;
979 target: "elm.rect.blocker";
980 transition: DECELERATE 0.2;
981 }
982 program { name: "show_blocker";
983 signal: "elm,action,show_blocker"; source: "elm";
984 action: STATE_SET "visible" 0.0;
985 target: "elm.rect.blocker";
986 transition: DECELERATE 0.2;
987 }
988
989 /* minimize, maximize & close buttons */
990 program {
991 signal: "mouse,down,*"; source: "elm.event.close";
992 action: STATE_SET "selected";
993 target: "close1";
994 target: "close2";
995 }
996 program {
997 signal: "mouse,up,*"; source: "elm.event.close";
998 action: STATE_SET "default";
999 target: "close1";
1000 target: "close2";
1001 }
1002 program {
1003 signal: "mouse,down,*"; source: "elm.event.maximize";
1004 action: STATE_SET "selected";
1005 target: "max1";
1006 target: "max2";
1007 }
1008 program {
1009 signal: "mouse,up,*"; source: "elm.event.maximize";
1010 action: STATE_SET "default";
1011 target: "max1";
1012 target: "max2";
1013 }
1014 program {
1015 signal: "mouse,down,*"; source: "elm.event.minimize";
1016 action: STATE_SET "selected";
1017 target: "min1";
1018 target: "min2";
1019 }
1020 program {
1021 signal: "mouse,up,*"; source: "elm.event.minimize";
1022 action: STATE_SET "default";
1023 target: "min1";
1024 target: "min2";
1025 }
1026 program {
1027 signal: "mouse,down,1"; source: "elm.event.titlebar";
1028 action: SIGNAL_EMIT "elm,action,move,start" "elm";
1029 }
1030 program {
1031 signal: "mouse,up,1"; source: "elm.event.titlebar";
1032 action: SIGNAL_EMIT "elm,action,move,stop" "elm";
1033 }
1034 program {
1035 signal: "mouse,clicked,1"; source: "elm.event.minimize";
1036 action: SIGNAL_EMIT "elm,action,minimize" "elm";
1037 }
1038 program {
1039 signal: "mouse,clicked,1"; source: "elm.event.maximize";
1040 action: SIGNAL_EMIT "elm,action,maximize" "elm";
1041 }
1042 program {
1043 signal: "mouse,clicked,1"; source: "elm.event.close";
1044 action: SIGNAL_EMIT "elm,action,close" "elm";
1045 }
1046 program {
1047 signal: "mouse,in"; source: "elm.event.resize.t";
1048 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.t";
1049 }
1050 program {
1051 signal: "mouse,out"; source: "elm.event.resize.t";
1052 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.t";
1053 }
1054 program {
1055 signal: "mouse,down,1"; source: "elm.event.resize.t";
1056 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.t";
1057 }
1058 program {
1059 signal: "mouse,in"; source: "elm.event.resize.b";
1060 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.b";
1061 }
1062 program {
1063 signal: "mouse,out"; source: "elm.event.resize.b";
1064 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.b";
1065 }
1066 program {
1067 signal: "mouse,down,1"; source: "elm.event.resize.b";
1068 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.b";
1069 }
1070 program {
1071 signal: "mouse,in"; source: "elm.event.resize.tl";
1072 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tl";
1073 }
1074 program {
1075 signal: "mouse,out"; source: "elm.event.resize.tl";
1076 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tl";
1077 }
1078 program {
1079 signal: "mouse,down,1"; source: "elm.event.resize.tl";
1080 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tl";
1081 }
1082 program {
1083 signal: "mouse,in"; source: "elm.event.resize.tr";
1084 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tr";
1085 }
1086 program {
1087 signal: "mouse,out"; source: "elm.event.resize.tr";
1088 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tr";
1089 }
1090 program {
1091 signal: "mouse,down,1"; source: "elm.event.resize.tr";
1092 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tr";
1093 }
1094 program {
1095 signal: "mouse,in"; source: "elm.event.resize.bl";
1096 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.bl";
1097 }
1098 program {
1099 signal: "mouse,out"; source: "elm.event.resize.bl";
1100 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.bl";
1101 }
1102 program {
1103 signal: "mouse,down,1"; source: "elm.event.resize.bl";
1104 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.bl";
1105 }
1106 program {
1107 signal: "mouse,in"; source: "elm.event.resize.br";
1108 action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.br";
1109 }
1110 program {
1111 signal: "mouse,out"; source: "elm.event.resize.br";
1112 action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.br";
1113 }
1114 program {
1115 signal: "mouse,down,1"; source: "elm.event.resize.br";
1116 action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.br";
1117 }
1118 program {
1119 signal: "mouse,clicked,1"; source: "elm.event.icon";
1120 action: SIGNAL_EMIT "elm,action,menu" "elm";
1121 }
1122 }
1123}
1124
1125group { name: "elm/border/dialog/default";
1126 inherit: "elm/border/base/default";
1127 parts {
1128 text { "elm.text.title";
1129 clip: "top_clip";
1130 desc { "default";
1131 rel2.to_x: "elm.event.close";
1132 }
1133 desc { "focused";
1134 inherit: "default";
1135 visible: 0;
1136 }
1137 }
1138 text { "title2";
1139 desc { "default";
1140 rel2.to_x: "elm.event.close";
1141 }
1142 desc { "focused";
1143 inherit: "default";
1144 visible: 1;
1145 }
1146 }
1147 image { "max1";
1148 desc { "default";
1149 visible: 0;
1150 }
1151 desc { "selected";
1152 visible: 0;
1153 }
1154 }
1155 image { "min1";
1156 desc { "default";
1157 visible: 0;
1158 }
1159 desc { "selected";
1160 visible: 0;
1161 }
1162 }
1163 image { "max2";
1164 desc { "default";
1165 visible: 0;
1166 }
1167 desc { "selected";
1168 visible: 0;
1169 }
1170 }
1171 image { "min2";
1172 desc { "default";
1173 visible: 0;
1174 }
1175 desc { "selected";
1176 visible: 0;
1177 }
1178 }
1179 rect { "elm.event.maximize";
1180 desc { "default";
1181 visible: 0;
1182 }
1183 }
1184 rect { "elm.event.minimize";
1185 desc { "default";
1186 visible: 0;
1187 }
1188 }
1189 }
1190}
1191
1192group { name: "elm/border/naviframe/default";
1193 inherit: "elm/border/dialog/default";
1194 images.image: "sym_left_dark_normal.png" COMP;
1195 images.image: "sym_left_glow_normal.png" COMP;
1196 images.image: "sym_left_light_normal.png" COMP;
1197 parts {
1198 image { "close1";
1199 desc { "default";
1200 image.normal: "sym_left_dark_normal.png";
1201 }
1202 desc { "selected";
1203 image.normal: "sym_left_glow_normal.png";
1204 }
1205 }
1206 image { "close2"; nomouse;
1207 clip: "clip2";
1208 desc { "default";
1209 image.normal: "sym_left_light_normal.png";
1210 }
1211 desc { "selected";
1212 image.normal: "sym_left_glow_normal.png";
1213 }
1214 }
1215 }
1216}
1217
1218#undef UNRESIZABLE
1219#undef BORDERLESS
1220#undef MAXIMIZED
1221#undef SET_MODE
1222#undef UNSET_MODE
1223
diff --git a/data/elementary/themes/edc/elm/bubble.edc b/data/elementary/themes/edc/elm/bubble.edc
new file mode 100644
index 0000000000..4fd5a28025
--- /dev/null
+++ b/data/elementary/themes/edc/elm/bubble.edc
@@ -0,0 +1,738 @@
1group { name: "elm/bubble/top_left/default";
2 alias: "elm/bubble/base/default";
3 images.image: "bub_base_tl.png" COMP;
4 images.image: "bub_base_tr.png" COMP;
5 images.image: "bub_over_top.png" COMP;
6 images.image: "shine.png" COMP;
7 parts {
8 part { name: "event"; type: RECT;
9 description { state: "default" 0.0;
10 color: 0 0 0 0;
11 }
12 }
13 part { name: "elm.swallow.icon"; type: SWALLOW;
14 description { state: "default" 0.0;
15 fixed: 1 1;
16 visible: 0;
17 align: 0.0 0.0;
18 aspect: 1.0 1.0; aspect_preference: VERTICAL;
19 rel1.offset: 2 2;
20 rel2 {
21 to_y: "elm.text";
22 relative: 0.0 1.0;
23 offset: 2 -1;
24 }
25 }
26 description { state: "visible" 0.0;
27 inherit: "default" 0.0;
28 visible: 1;
29 }
30 }
31 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
32 scale: 1;
33 description { state: "default" 0.0;
34 fixed: 1 1;
35 visible: 0;
36 text { font: FN; size: 10;
37 min: 0 0;
38 text_class: "bubble";
39 }
40 }
41 description { state: "visible" 0.0;
42 inherit: "default" 0.0;
43 rel1.to: "elm.swallow.icon";
44 rel2.to: "elm.swallow.icon";
45 text {
46 min: 1 1;
47 ellipsis: -1;
48 text: "M";
49 }
50 }
51 }
52 part { name: "elm.text"; type: TEXT; mouse_events: 0;
53 effect: SHADOW BOTTOM;
54 scale: 1;
55 description { state: "default" 0.0;
56 fixed: 0 1;
57 align: 0.0 0.0;
58 rel1 {
59 to_x: "elm.swallow.icon";
60 relative: 1.0 0.0;
61 offset: 2 2;
62 }
63 rel2 {
64 to_x: "elm.info";
65 relative: 0.0 0.0;
66 offset: -3 2;
67 }
68 color: FN_COL_DEFAULT;
69 color_class: "bubble_text";
70 text { font: FNBD; size: 10;
71 min: 0 1;
72 max: 0 1;
73 align: 0.0 0.0;
74 text_class: "bubble";
75 }
76 }
77 }
78 part { name: "elm.info"; type: TEXT; mouse_events: 0;
79 effect: SHADOW BOTTOM;
80 scale: 1;
81 description { state: "default" 0.0;
82 align: 1.0 0.0;
83 fixed: 1 1;
84 rel1.relative: 1.0 0.0;
85 rel1.offset: -3 2;
86 rel2.relative: 1.0 0.0;
87 rel2.offset: -3 2;
88 color: FN_COL_DISABLE;
89 color_class: "bubble_info";
90 text { font: FNBD; size: 10;
91 min: 1 1;
92 ellipsis: -1;
93 max: 1 1;
94 align: 1.0 0.0;
95 text_class: "bubble_info";
96 }
97 }
98 }
99 part { name: "base"; mouse_events: 0;
100 description { state: "default" 0.0;
101 rel1 {
102 to_y: "elm.swallow.icon";
103 relative: 0.0 1.0;
104 offset: 0 0;
105 }
106 image.normal: "bub_base_tl.png";
107 image.border: 24 8 12 9;
108 image.middle: SOLID;
109 fill.smooth: 0;
110 }
111 description { state: "rtl" 0.0;
112 inherit: "default" 0.0;
113 image.normal: "bub_base_tr.png";
114 image.border: 8 24 12 9;
115 }
116 }
117 part { name: "elm.swallow.content";
118 type: SWALLOW;
119 description { state: "default" 0.0;
120 rel1.to: "base";
121 rel1.offset: 5 9;
122 rel2.to: "base";
123 rel2.offset: -6 -7;
124 }
125 }
126 part { name: "over"; mouse_events: 0;
127 description { state: "default" 0.0;
128 rel1.to: "base";
129 rel1.offset: 20 6;
130 rel2.to: "base";
131 rel2.offset: -6 6;
132 rel2.relative: 1.0 0.4;
133 image.normal: "bub_over_top.png";
134 fill.smooth: 0;
135 }
136 description { state: "rtl" 0.0;
137 inherit: "default" 0.0;
138 rel1.offset: 5 6;
139 rel2.offset: -21 6;
140 }
141 }
142 part { name: "shine_clip"; type: RECT;
143 description { state: "default" 0.0;
144 rel1.to: "over";
145 rel1.offset: 0 -10;
146 rel2.to: "over";
147 }
148 }
149 part { name: "shine"; mouse_events: 0;
150 clip_to: "shine_clip";
151 description { state: "default" 0.0;
152 image.normal: "shine.png";
153 rel1.offset: 0 -2;
154 rel1.to: "over";
155 rel2.relative: 1.0 0.0;
156 rel2.offset: -1 2;
157 rel2.to: "over";
158 FIXED_SIZE(69, 5)
159 }
160 }
161 }
162 programs {
163 program {
164 signal: "elm,state,icon,visible"; source: "elm";
165 action: STATE_SET "visible" 0.0;
166 target: "elm.swallow.icon";
167 target: "sizer.content";
168 }
169 program {
170 signal: "elm,state,icon,hidden"; source: "elm";
171 action: STATE_SET "default" 0.0;
172 target: "elm.swallow.icon";
173 target: "sizer.content";
174 }
175 program {
176 signal: "edje,state,rtl"; source: "edje";
177 action: STATE_SET "rtl" 0.0;
178 target: "base";
179 target: "over";
180 }
181 program {
182 signal: "edje,state,ltr"; source: "edje";
183 action: STATE_SET "default" 0.0;
184 target: "base";
185 target: "over";
186 }
187 }
188}
189
190group { name: "elm/bubble/top_right/default";
191 images.image: "bub_base_tr.png" COMP;
192 images.image: "bub_base_tl.png" COMP;
193 images.image: "bub_over_top.png" COMP;
194 images.image: "shine.png" COMP;
195 parts {
196 part { name: "event"; type: RECT;
197 description { state: "default" 0.0;
198 color: 0 0 0 0;
199 }
200 }
201 part { name: "elm.swallow.icon"; type: SWALLOW;
202 description { state: "default" 0.0;
203 fixed: 1 1;
204 visible: 0;
205 align: 1.0 0.0;
206 aspect: 1.0 1.0; aspect_preference: VERTICAL;
207 rel1.offset: -3 2;
208 rel1.relative: 1.0 0.0;
209 rel2 {
210 to_y: "elm.text";
211 relative: 1.0 1.0;
212 offset: -3 -1;
213 }
214 }
215 description { state: "visible" 0.0;
216 inherit: "default" 0.0;
217 visible: 1;
218 }
219 }
220 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
221 scale: 1;
222 description { state: "default" 0.0;
223 fixed: 1 1;
224 visible: 0;
225 text { font: FN; size: 10;
226 min: 0 0;
227 text_class: "bubble";
228 }
229 }
230 description { state: "visible" 0.0;
231 inherit: "default" 0.0;
232 rel1.to: "elm.swallow.icon";
233 rel2.to: "elm.swallow.icon";
234 text {
235 min: 1 1;
236 ellipsis: -1;
237 text: "M";
238 }
239 }
240 }
241 part { name: "elm.text"; type: TEXT; mouse_events: 0;
242 effect: SHADOW BOTTOM;
243 scale: 1;
244 description { state: "default" 0.0;
245 fixed: 0 1;
246 align: 0.0 0.0;
247 rel1.offset: 2 2;
248 rel2 {
249 to_x: "elm.info";
250 relative: 0.0 0.0;
251 offset: -3 2;
252 }
253 color: FN_COL_DEFAULT;
254 color_class: "bubble_text";
255 text { font: FNBD; size: 10;
256 min: 0 1;
257 max: 0 1;
258 align: 0.0 0.0;
259 text_class: "bubble";
260 }
261 }
262 }
263 part { name: "elm.info"; type: TEXT; mouse_events: 0;
264 effect: SHADOW BOTTOM;
265 scale: 1;
266 description { state: "default" 0.0;
267 align: 1.0 0.0;
268 fixed: 1 1;
269 rel1.relative: 1.0 0.0;
270 rel1.offset: -3 2;
271 rel2.to_x: "elm.swallow.icon";
272 rel2.relative: 0.0 0.0;
273 rel2.offset: -3 2;
274 color: FN_COL_DISABLE;
275 color_class: "bubble_info";
276 text { font: FNBD; size: 10;
277 min: 1 1;
278 ellipsis: -1;
279 max: 1 1;
280 align: 1.0 0.0;
281 text_class: "bubble_info";
282 }
283 }
284 }
285 part { name: "base"; mouse_events: 0;
286 description { state: "default" 0.0;
287 rel1 {
288 to_y: "elm.swallow.icon";
289 relative: 0.0 1.0;
290 offset: 0 0;
291 }
292 image.normal: "bub_base_tr.png";
293 image.border: 8 24 12 9;
294 image.middle: SOLID;
295 fill.smooth: 0;
296 }
297 description { state: "rtl" 0.0;
298 inherit: "default" 0.0;
299 image.normal: "bub_base_tl.png";
300 image.border: 24 8 12 9;
301 }
302 }
303 part { name: "elm.swallow.content";
304 type: SWALLOW;
305 description { state: "default" 0.0;
306 rel1.to: "base";
307 rel1.offset: 5 9;
308 rel2.to: "base";
309 rel2.offset: -6 -7;
310 }
311 }
312 part { name: "over"; mouse_events: 0;
313 description { state: "default" 0.0;
314 rel1.to: "base";
315 rel1.offset: 5 6;
316 rel2.to: "base";
317 rel2.offset: -21 6;
318 rel2.relative: 1.0 0.4;
319 image.normal: "bub_over_top.png";
320 fill.smooth: 0;
321 }
322 description { state: "rtl" 0.0;
323 inherit: "default" 0.0;
324 rel1.offset: 20 6;
325 rel2.offset: -6 6;
326 }
327 }
328 part { name: "shine_clip"; type: RECT;
329 description { state: "default" 0.0;
330 rel1.to: "over";
331 rel1.offset: 0 -10;
332 rel2.to: "over";
333 }
334 }
335 part { name: "shine"; mouse_events: 0;
336 clip_to: "shine_clip";
337 description { state: "default" 0.0;
338 image.normal: "shine.png";
339 rel1.offset: 0 -2;
340 rel1.to: "over";
341 rel2.relative: 1.0 0.0;
342 rel2.offset: -1 2;
343 rel2.to: "over";
344 FIXED_SIZE(69, 5)
345 }
346 }
347 }
348 programs {
349 program {
350 signal: "elm,state,icon,visible"; source: "elm";
351 action: STATE_SET "visible" 0.0;
352 target: "elm.swallow.icon";
353 target: "sizer.content";
354 }
355 program {
356 signal: "elm,state,icon,hidden"; source: "elm";
357 action: STATE_SET "default" 0.0;
358 target: "elm.swallow.icon";
359 target: "sizer.content";
360 }
361 program {
362 signal: "edje,state,rtl"; source: "edje";
363 action: STATE_SET "rtl" 0.0;
364 target: "base";
365 target: "over";
366 }
367 program {
368 signal: "edje,state,ltr"; source: "edje";
369 action: STATE_SET "default" 0.0;
370 target: "base";
371 target: "over";
372 }
373 }
374}
375
376group { name: "elm/bubble/bottom_left/default";
377 images.image: "bub_base_bl.png" COMP;
378 images.image: "bub_base_br.png" COMP;
379 images.image: "bub_over_bot.png" COMP;
380 images.image: "shine.png" COMP;
381 parts {
382 part { name: "event"; type: RECT;
383 description { state: "default" 0.0;
384 color: 0 0 0 0;
385 }
386 }
387 part { name: "elm.swallow.icon"; type: SWALLOW;
388 description { state: "default" 0.0;
389 fixed: 1 1;
390 visible: 0;
391 align: 0.0 1.0;
392 aspect: 1.0 1.0; aspect_preference: VERTICAL;
393 rel1 {
394 to_y: "elm.text";
395 offset: 2 0;
396 }
397 rel2 {
398 relative: 0.0 1.0;
399 offset: 2 -3;
400 }
401 }
402 description { state: "visible" 0.0;
403 inherit: "default" 0.0;
404 visible: 1;
405 }
406 }
407 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
408 scale: 1;
409 description { state: "default" 0.0;
410 fixed: 1 1;
411 visible: 0;
412 text { font: FN; size: 10;
413 min: 0 0;
414 text_class: "bubble";
415 }
416 }
417 description { state: "visible" 0.0;
418 inherit: "default" 0.0;
419 rel1.to: "elm.swallow.icon";
420 rel2.to: "elm.swallow.icon";
421 text {
422 min: 1 1;
423 ellipsis: -1;
424 text: "M";
425 }
426 }
427 }
428 part { name: "elm.text"; type: TEXT; mouse_events: 0;
429 effect: SHADOW BOTTOM;
430 scale: 1;
431 description { state: "default" 0.0;
432 fixed: 0 1;
433 align: 0.0 1.0;
434 rel1 {
435 to_x: "elm.swallow.icon";
436 relative: 1.0 1.0;
437 offset: 2 -3;
438 }
439 rel2 {
440 to_x: "elm.info";
441 relative: 0.0 1.0;
442 offset: -3 -3;
443 }
444 color: FN_COL_DEFAULT;
445 color_class: "bubble_text";
446 text { font: FNBD; size: 10;
447 min: 0 1;
448 max: 0 1;
449 align: 0.0 1.0;
450 text_class: "bubble";
451 }
452 }
453 }
454 part { name: "elm.info"; type: TEXT; mouse_events: 0;
455 effect: SHADOW BOTTOM;
456 scale: 1;
457 description { state: "default" 0.0;
458 align: 1.0 1.0;
459 fixed: 1 1;
460 rel1.relative: 1.0 1.0;
461 rel1.offset: -3 -3;
462 rel2.relative: 1.0 1.0;
463 rel2.offset: -3 -3;
464 color: FN_COL_DISABLE;
465 color_class: "bubble_info";
466 text { font: FNBD; size: 10;
467 min: 1 1;
468 ellipsis: -1;
469 max: 1 1;
470 align: 1.0 1.0;
471 text_class: "bubble_info";
472 }
473 }
474 }
475 part { name: "base"; mouse_events: 0;
476 description { state: "default" 0.0;
477 rel2 {
478 to_y: "elm.swallow.icon";
479 relative: 1.0 0.0;
480 }
481 image.normal: "bub_base_bl.png";
482 image.border: 24 8 8 13;
483 image.middle: SOLID;
484 fill.smooth: 0;
485 }
486 description { state: "rtl" 0.0;
487 inherit: "default" 0.0;
488 image.normal: "bub_base_br.png";
489 image.border: 8 24 8 13;
490 }
491 }
492 part { name: "elm.swallow.content";
493 type: SWALLOW;
494 description { state: "default" 0.0;
495 rel1.to: "base";
496 rel1.offset: 5 4;
497 rel2.to: "base";
498 rel2.offset: -6 -12;
499 }
500 }
501 part { name: "over"; mouse_events: 0;
502 description { state: "default" 0.0;
503 rel1.to: "base";
504 rel1.offset: 2 1;
505 rel2.to: "base";
506 rel2.offset: -3 1;
507 rel2.relative: 1.0 0.4;
508 image.normal: "bub_over_bot.png";
509 fill.smooth: 0;
510 }
511 }
512 part { name: "shine_clip"; type: RECT;
513 description { state: "default" 0.0;
514 rel1.to: "over";
515 rel1.offset: 0 -10;
516 rel2.to: "over";
517 }
518 }
519 part { name: "shine"; mouse_events: 0;
520 clip_to: "shine_clip";
521 description { state: "default" 0.0;
522 image.normal: "shine.png";
523 rel1.offset: 0 -2;
524 rel1.to: "over";
525 rel2.relative: 1.0 0.0;
526 rel2.offset: -1 2;
527 rel2.to: "over";
528 FIXED_SIZE(69, 5)
529 }
530 }
531 }
532 programs {
533 program {
534 signal: "elm,state,icon,visible"; source: "elm";
535 action: STATE_SET "visible" 0.0;
536 target: "elm.swallow.icon";
537 target: "sizer.content";
538 }
539 program {
540 signal: "elm,state,icon,hidden"; source: "elm";
541 action: STATE_SET "default" 0.0;
542 target: "elm.swallow.icon";
543 target: "sizer.content";
544 }
545 program {
546 signal: "edje,state,rtl"; source: "edje";
547 action: STATE_SET "rtl" 0.0;
548 target: "base";
549 }
550 program {
551 signal: "edje,state,ltr"; source: "edje";
552 action: STATE_SET "default" 0.0;
553 target: "base";
554 }
555 }
556}
557
558group { name: "elm/bubble/bottom_right/default";
559 images.image: "bub_base_br.png" COMP;
560 images.image: "bub_base_bl.png" COMP;
561 images.image: "bub_over_bot.png" COMP;
562 images.image: "shine.png" COMP;
563 parts {
564 part { name: "event"; type: RECT;
565 description { state: "default" 0.0;
566 color: 0 0 0 0;
567 }
568 }
569 part { name: "elm.swallow.icon"; type: SWALLOW;
570 description { state: "default" 0.0;
571 fixed: 1 1;
572 visible: 0;
573 align: 1.0 1.0;
574 aspect: 1.0 1.0; aspect_preference: VERTICAL;
575 rel1 {
576 to_y: "elm.text";
577 offset: -3 0;
578 }
579 rel2 {
580 relative: 1.0 1.0;
581 offset: -3 -3;
582 }
583 }
584 description { state: "visible" 0.0;
585 inherit: "default" 0.0;
586 visible: 1;
587 }
588 }
589 part { name: "sizer.content"; type: TEXT; mouse_events: 0;
590 scale: 1;
591 description { state: "default" 0.0;
592 fixed: 1 1;
593 visible: 0;
594 text { font: FN; size: 10;
595 min: 0 0;
596 text_class: "bubble";
597 }
598 }
599 description { state: "visible" 0.0;
600 inherit: "default" 0.0;
601 rel1.to: "elm.swallow.icon";
602 rel2.to: "elm.swallow.icon";
603 text {
604 min: 1 1;
605 ellipsis: -1;
606 text: "M";
607 }
608 }
609 }
610 part { name: "elm.text"; type: TEXT; mouse_events: 0;
611 effect: SHADOW BOTTOM;
612 scale: 1;
613 description { state: "default" 0.0;
614 fixed: 0 1;
615 align: 0.0 1.0;
616 rel1 {
617 relative: 0.0 1.0;
618 offset: 2 -3;
619 }
620 rel2 {
621 to_x: "elm.info";
622 relative: 0.0 1.0;
623 offset: -3 -3;
624 }
625 color: FN_COL_DEFAULT;
626 color_class: "bubble_text";
627 text { font: FNBD; size: 10;
628 min: 0 1;
629 max: 0 1;
630 align: 0.0 1.0;
631 text_class: "bubble";
632 }
633 }
634 }
635 part { name: "elm.info"; type: TEXT; mouse_events: 0;
636 effect: SHADOW BOTTOM;
637 scale: 1;
638 description { state: "default" 0.0;
639 align: 1.0 1.0;
640 fixed: 1 1;
641 rel1.relative: 1.0 1.0;
642 rel1.offset: -3 -3;
643 rel2.to_x: "elm.swallow.icon";
644 rel2.relative: 0.0 1.0;
645 rel2.offset: -3 -3;
646 color: FN_COL_DISABLE;
647 color_class: "bubble_info";
648 text { font: FNBD; size: 10;
649 min: 1 1;
650 ellipsis: -1;
651 max: 1 1;
652 align: 1.0 1.0;
653 text_class: "bubble_info";
654 }
655 }
656 }
657 part { name: "base"; mouse_events: 0;
658 description { state: "default" 0.0;
659 rel2 {
660 to_y: "elm.swallow.icon";
661 relative: 1.0 0.0;
662 }
663 image.normal: "bub_base_br.png";
664 image.border: 8 24 8 13;
665 image.middle: SOLID;
666 fill.smooth: 0;
667 }
668 description { state: "rtl" 0.0;
669 inherit: "default" 0.0;
670 image.normal: "bub_base_bl.png";
671 image.border: 24 8 8 13;
672 }
673 }
674 part { name: "elm.swallow.content";
675 type: SWALLOW;
676 description { state: "default" 0.0;
677 rel1.to: "base";
678 rel1.offset: 5 4;
679 rel2.to: "base";
680 rel2.offset: -6 -12;
681 }
682 }
683 part { name: "over"; mouse_events: 0;
684 description { state: "default" 0.0;
685 rel1.to: "base";
686 rel1.offset: 2 1;
687 rel2.to: "base";
688 rel2.offset: -3 1;
689 rel2.relative: 1.0 0.4;
690 image.normal: "bub_over_bot.png";
691 fill.smooth: 0;
692 }
693 }
694 part { name: "shine_clip"; type: RECT;
695 description { state: "default" 0.0;
696 rel1.to: "over";
697 rel1.offset: 0 -10;
698 rel2.to: "over";
699 }
700 }
701 part { name: "shine"; mouse_events: 0;
702 clip_to: "shine_clip";
703 description { state: "default" 0.0;
704 image.normal: "shine.png";
705 rel1.offset: 0 -2;
706 rel1.to: "over";
707 rel2.relative: 1.0 0.0;
708 rel2.offset: -1 2;
709 rel2.to: "over";
710 FIXED_SIZE(69, 5)
711 }
712 }
713 }
714 programs {
715 program {
716 signal: "elm,state,icon,visible"; source: "elm";
717 action: STATE_SET "visible" 0.0;
718 target: "elm.swallow.icon";
719 target: "sizer.content";
720 }
721 program {
722 signal: "elm,state,icon,hidden"; source: "elm";
723 action: STATE_SET "default" 0.0;
724 target: "elm.swallow.icon";
725 target: "sizer.content";
726 }
727 program {
728 signal: "edje,state,rtl"; source: "edje";
729 action: STATE_SET "rtl" 0.0;
730 target: "base";
731 }
732 program {
733 signal: "edje,state,ltr"; source: "edje";
734 action: STATE_SET "default" 0.0;
735 target: "base";
736 }
737 }
738}
diff --git a/data/elementary/themes/edc/elm/button.edc b/data/elementary/themes/edc/elm/button.edc
new file mode 100644
index 0000000000..c5c48d3a21
--- /dev/null
+++ b/data/elementary/themes/edc/elm/button.edc
@@ -0,0 +1,2092 @@
1group { name: "elm/button/base/default";
2 alias: "elm/button/base/naviframe/back_btn/default";
3 alias: "elm/button/base/naviframe/back_btn/pager";
4 images.image: "button_normal.png" COMP;
5 images.image: "button_clicked.png" COMP;
6#define ICON 1
7#define LABEL 2
8#define MASK 3
9#define DISABLE 4
10#define PRESSED 8
11#define BACKGROUND 16
12 script {
13 public btmode;
14 public eval_mode(m) {
15 new m1 = m & MASK;
16 new d = m & DISABLE;
17 new p = m & PRESSED;
18 new bg = m & BACKGROUND;
19 if (bg) {
20 set_state(PART:"base", "hidden", 0.0);
21 set_state(PART:"elm.swallow.background", "visible", 0.0);
22 } else {
23 set_state(PART:"elm.swallow.background", "default", 0.0);
24 if (!d) {
25 if (!p)
26 {
27 set_state(PART:"base", "default", 0.0);
28 set_state(PART:"base", "default", 0.0);
29 }
30 else {
31 set_state(PART:"base", "pressed", 0.0);
32 }
33 } else {
34 set_state(PART:"base", "disabled", 0.0);
35 }
36 }
37 if (m1 == (ICON | LABEL)) {
38 if (!d) {
39 set_state(PART:"elm.swallow.content", "visible", 0.0);
40 set_state(PART:"sizer.content", "visible", 0.0);
41 set_state(PART:"event", "default", 0.0);
42 if (!p) {
43 set_state(PART:"elm.text", "visible", 0.0);
44 set_state(PART:"icon_clip", "default", 0.0);
45 } else {
46 set_state(PART:"elm.text", "pressed_visible", 0.0);
47 set_state(PART:"icon_clip", "pressed", 0.0);
48 }
49 } else {
50 set_state(PART:"elm.swallow.content", "visible", 0.0);
51 set_state(PART:"sizer.content", "visible", 0.0);
52 set_state(PART:"elm.text", "disabled_visible", 0.0);
53 set_state(PART:"icon_clip", "disabled", 0.0);
54 set_state(PART:"event", "disabled", 0.0);
55 }
56 } else if (m1 == (ICON)) {
57 if (!d) {
58 set_state(PART:"elm.swallow.content", "icononly", 0.0);
59 set_state(PART:"sizer.content", "icononly", 0.0);
60 set_state(PART:"event", "default", 0.0);
61 set_state(PART:"elm.text", "default", 0.0);
62 if (!p)
63 set_state(PART:"icon_clip", "default", 0.0);
64 else
65 set_state(PART:"icon_clip", "pressed", 0.0);
66 } else {
67 set_state(PART:"elm.swallow.content", "icononly", 0.0);
68 set_state(PART:"sizer.content", "icononly", 0.0);
69 set_state(PART:"elm.text", "default", 0.0);
70 set_state(PART:"icon_clip", "disabled", 0.0);
71 set_state(PART:"event", "disabled", 0.0);
72 }
73 } else if (m1 == (LABEL)) {
74 if (!d) {
75 set_state(PART:"elm.swallow.content", "default", 0.0);
76 set_state(PART:"sizer.content", "default", 0.0);
77 set_state(PART:"icon_clip", "default", 0.0);
78 set_state(PART:"event", "default", 0.0);
79 if (!p)
80 set_state(PART:"elm.text", "textonly", 0.0);
81 else
82 set_state(PART:"elm.text", "pressed_textonly", 0.0);
83 } else {
84 set_state(PART:"elm.swallow.content", "default", 0.0);
85 set_state(PART:"sizer.content", "default", 0.0);
86 set_state(PART:"elm.text", "disabled_textonly", 0.0);
87 set_state(PART:"icon_clip", "disabled", 0.0);
88 set_state(PART:"event", "disabled", 0.0);
89 }
90 } else {
91 if (!d) {
92 set_state(PART:"elm.swallow.content", "default", 0.0);
93 set_state(PART:"sizer.content", "default", 0.0);
94 set_state(PART:"icon_clip", "default", 0.0);
95 set_state(PART:"event", "default", 0.0);
96 } else {
97 set_state(PART:"elm.swallow.content", "default", 0.0);
98 set_state(PART:"sizer.content", "default", 0.0);
99 set_state(PART:"icon_clip", "disabled", 0.0);
100 set_state(PART:"event", "disabled", 0.0);
101 }
102 }
103 }
104 }
105 parts {
106 image { "base";
107 desc { "default";
108 image.normal: "button_normal.png";
109 image.border: 4 4 3 5;
110 image.middle: SOLID;
111 rel1.offset: -1 0;
112 rel2.offset: 0 1;
113 fill.smooth: 0;
114 color_class: "button_bg";
115 }
116 desc { "pressed";
117 inherit: "default";
118 image.normal: "button_clicked.png";
119 image.border: 5 5 4 6;
120 color_class: "button_bg_pressed";
121 }
122 desc { "disabled";
123 inherit: "default";
124 color_class: "button_bg_disabled";
125 }
126 desc { "hidden";
127 inherit: "default";
128 visible: 0;
129 }
130 }
131 swallow { "elm.swallow.background"; nomouse;
132 desc { "default";
133 rel1.to: "base";
134 rel2.to: "base";
135 visible: 0;
136 }
137 desc { "visible";
138 inherit: "default";
139 visible: 1;
140 }
141 }
142 rect { "icon_clip";
143 desc { "default";
144 color_class: "button_icon";
145 }
146 desc { "pressed";
147 inherit: "default";
148 color_class: "button_icon_pressed";
149 }
150 desc { "disabled";
151 inherit: "default";
152 color_class: "button_icon_disabled";
153 }
154 }
155 swallow { "elm.swallow.content"; nomouse;
156 clip_to: "icon_clip";
157 desc { "default";
158 fixed: 1 0;
159 align: 0.0 0.5;
160 rel1.offset: 6 5;
161 rel1.to: "base";
162 rel2.relative: 0.0 1.0;
163 rel2.offset: 6 -8;
164 rel2.to: "base";
165 visible: 0;
166 }
167 desc { "visible";
168 inherit: "default";
169 fixed: 1 0;
170 aspect: 1.0 1.0;
171 visible: 1;
172 }
173 desc { "icononly";
174 inherit: "default";
175 fixed: 0 0;
176 align: 0.5 0.5;
177 rel2.relative: 1.0 1.0;
178 rel2.offset: -7 -8;
179 visible: 1;
180 }
181 }
182 text { "sizer.content"; nomouse;
183 scale: 1;
184 desc { "default";
185// fixed: 1 1;
186 visible: 0;
187 text { font: FN; size: 10;
188 min: 0 0;
189 text_class: "button_text";
190 }
191 }
192 desc { "visible";
193 inherit: "default";
194 rel1.to: "elm.swallow.content";
195 rel2.to: "elm.swallow.content";
196 text {
197 min: 1 1;
198 ellipsis: -1;
199 text: "M";
200 }
201 }
202 desc { "icononly";
203 inherit: "default";
204 rel1.to: "elm.swallow.content";
205 rel2.to: "elm.swallow.content";
206 text {
207 min: 1 1;
208 ellipsis: -1;
209 text: "M";
210 }
211 }
212 }
213 text { "elm.text"; nomouse;
214 effect: SHADOW BOTTOM;
215 scale: 1;
216 desc { "default";
217 rel1.offset: 0 5;
218 rel1.relative: 1.0 0.0;
219 rel1.to_x: "elm.swallow.content";
220 rel1.to_y: "base";
221 rel2.offset: -8 -8;
222 rel2.to: "base";
223 color_class: "button_text";
224 color3: 255 255 255 255;
225 text { font: FN; size: 10;
226 align: 0.5 0.5;
227 min: 0 0;
228 text_class: "button";
229 }
230 visible: 0;
231 fixed: 1 1;
232 }
233 desc { "visible";
234 inherit: "default";
235 rel1.offset: 2 5;
236 text.min: 1 1;
237 text.ellipsis: -1;
238 visible: 1;
239 fixed: 0 0;
240 }
241 desc { "pressed_visible";
242 inherit: "default";
243 rel1.offset: 2 5;
244 text.min: 1 1;
245 text.ellipsis: -1;
246 visible: 1;
247 fixed: 0 0;
248 color_class: "button_text_pressed";
249 }
250 desc { "textonly";
251 inherit: "default";
252 text.min: 1 1;
253 text.ellipsis: -1;
254 visible: 1;
255 fixed: 0 0;
256 }
257 desc { "pressed_textonly";
258 inherit: "default";
259 text.min: 1 1;
260 text.ellipsis: -1;
261 visible: 1;
262 fixed: 0 0;
263 color_class: "button_text_pressed";
264 }
265 desc { "disabled_visible";
266 inherit: "default";
267 rel1.offset: 2 5;
268 color_class: "button_text_disabled";
269 color3: 255 255 255 255;
270 text.min: 1 1;
271 text.ellipsis: -1;
272 visible: 1;
273 fixed: 0 0;
274 }
275 desc { "disabled_textonly";
276 inherit: "default";
277 color_class: "button_text_disabled";
278 color3: 255 255 255 255;
279 text.min: 1 1;
280 text.ellipsis: -1;
281 visible: 1;
282 fixed: 0 0;
283 }
284 }
285 rect { "event";
286 desc { "default";
287 color: 0 0 0 0;
288 }
289 desc { "disabled";
290 inherit: "default";
291 visible: 0;
292 }
293 }
294 }
295 programs {
296 program {
297 signal: "mouse,down,1"; source: "event";
298 action: SIGNAL_EMIT "elm,action,press" "elm";
299 after: "button_click_anim";
300 }
301 program { name: "button_click_anim";
302 script {
303 new m = get_int(btmode);
304 m |= PRESSED; set_int(btmode, m);
305 eval_mode(m);
306 }
307 }
308 program { name: "button_unclick";
309 signal: "mouse,up,1"; source: "event";
310 action: SIGNAL_EMIT "elm,action,unpress" "elm";
311 after: "button_unclick_anim";
312 }
313 program { name: "button_unclick_anim";
314 script {
315 new m = get_int(btmode);
316 m &= ~PRESSED; set_int(btmode, m);
317 eval_mode(m);
318 }
319 }
320 program { name: "buttonactivate";
321 signal: "elm,anim,activate"; source: "elm";
322 action: STATE_SET "pressed" 0.0;
323 target: "base";
324 after: "button_unpressed_anim";
325 }
326 program { name: "button_unpressed_anim";
327 action: STATE_SET "default" 0.0;
328 in: 0.5 0.0;
329 target: "base";
330 }
331 program {
332 signal: "mouse,clicked,1"; source: "event";
333 action: SIGNAL_EMIT "elm,action,click" "elm";
334 }
335 program { name: "button_text_visible";
336 signal: "elm,state,text,visible"; source: "elm";
337 script {
338 new m = get_int(btmode);
339 m |= LABEL; set_int(btmode, m);
340 eval_mode(m);
341 }
342 }
343 program { name: "button_text_hidden";
344 signal: "elm,state,text,hidden"; source: "elm";
345 script {
346 new m = get_int(btmode);
347 m &= ~LABEL; set_int(btmode, m);
348 eval_mode(m);
349 }
350 }
351 program { name: "button_icon_visible";
352 signal: "elm,state,icon,visible"; source: "elm";
353 script {
354 new m = get_int(btmode);
355 m |= ICON; set_int(btmode, m);
356 eval_mode(m);
357 }
358 }
359 program { name: "button_icon_hidden";
360 signal: "elm,state,icon,hidden"; source: "elm";
361 script {
362 new m = get_int(btmode);
363 m &= ~ICON; set_int(btmode, m);
364 eval_mode(m);
365 }
366 }
367 program { name: "button_background_visible";
368 signal: "elm,state,background,visible"; source: "elm";
369 script {
370 new m = get_int(btmode);
371 m |= BACKGROUND; set_int(btmode, m);
372 eval_mode(m);
373 }
374 }
375 program { name: "button_background_hidden";
376 signal: "elm,state,background,hidden"; source: "elm";
377 script {
378 new m = get_int(btmode);
379 m &= ~BACKGROUND; set_int(btmode, m);
380 eval_mode(m);
381 }
382 }
383 program { name: "button_state_disabled";
384 signal: "elm,state,disabled"; source: "elm";
385 script {
386 new m = get_int(btmode);
387 m |= DISABLE; set_int(btmode, m);
388 eval_mode(m);
389 }
390 }
391 program { name: "button_state_enabled";
392 signal: "elm,state,enabled"; source: "elm";
393 script {
394 new m = get_int(btmode);
395 m &= ~DISABLE; set_int(btmode, m);
396 eval_mode(m);
397 }
398 }
399 }
400#undef ICON
401#undef LABEL
402#undef MASK
403#undef DISABLE
404#undef PRESSED
405#undef BACKGROUND
406}
407
408group { name: "elm/button/base/anchor";
409 images.image: "horizontal_separated_bar_small_glow.png" COMP;
410#define ICON 1
411#define LABEL 2
412#define MASK 3
413#define DISABLE 4
414 script {
415 public btmode;
416 public eval_mode(m) {
417 new m1 = m & MASK;
418 new d = m & DISABLE;
419 if (m1 == (ICON | LABEL)) {
420 if (!d) {
421 set_state(PART:"elm.swallow.content", "visible", 0.0);
422 set_state(PART:"sizer.content", "visible", 0.0);
423 set_state(PART:"elm.text", "visible", 0.0);
424 set_state(PART:"icon_clip", "default", 0.0);
425 set_state(PART:"bar", "default", 0.0);
426 set_state(PART:"event", "default", 0.0);
427 } else {
428 set_state(PART:"elm.swallow.content", "visible", 0.0);
429 set_state(PART:"sizer.content", "visible", 0.0);
430 set_state(PART:"elm.text", "disabled_visible", 0.0);
431 set_state(PART:"icon_clip", "disabled", 0.0);
432 set_state(PART:"bar", "disabled", 0.0);
433 set_state(PART:"event", "disabled", 0.0);
434 }
435 } else if (m1 == (ICON)) {
436 if (!d) {
437 set_state(PART:"elm.swallow.content", "icononly", 0.0);
438 set_state(PART:"sizer.content", "icononly", 0.0);
439 set_state(PART:"elm.text", "default", 0.0);
440 set_state(PART:"icon_clip", "default", 0.0);
441 set_state(PART:"bar", "default", 0.0);
442 set_state(PART:"event", "default", 0.0);
443 } else {
444 set_state(PART:"elm.swallow.content", "icononly", 0.0);
445 set_state(PART:"sizer.content", "icononly", 0.0);
446 set_state(PART:"elm.text", "default", 0.0);
447 set_state(PART:"icon_clip", "disabled", 0.0);
448 set_state(PART:"bar", "disabled", 0.0);
449 set_state(PART:"event", "disabled", 0.0);
450 }
451 } else if (m1 == (LABEL)) {
452 if (!d) {
453 set_state(PART:"elm.swallow.content", "default", 0.0);
454 set_state(PART:"sizer.content", "default", 0.0);
455 set_state(PART:"elm.text", "textonly", 0.0);
456 set_state(PART:"icon_clip", "default", 0.0);
457 set_state(PART:"bar", "default", 0.0);
458 set_state(PART:"event", "default", 0.0);
459 } else {
460 set_state(PART:"elm.swallow.content", "default", 0.0);
461 set_state(PART:"sizer.content", "default", 0.0);
462 set_state(PART:"elm.text", "disabled_textonly", 0.0);
463 set_state(PART:"icon_clip", "disabled", 0.0);
464 set_state(PART:"bar", "disabled", 0.0);
465 set_state(PART:"event", "disabled", 0.0);
466 }
467 } else {
468 if (!d) {
469 set_state(PART:"elm.swallow.content", "default", 0.0);
470 set_state(PART:"sizer.content", "default", 0.0);
471 set_state(PART:"icon_clip", "default", 0.0);
472 set_state(PART:"bar", "default", 0.0);
473 set_state(PART:"event", "default", 0.0);
474 } else {
475 set_state(PART:"elm.swallow.content", "default", 0.0);
476 set_state(PART:"sizer.content", "default", 0.0);
477 set_state(PART:"icon_clip", "disabled", 0.0);
478 set_state(PART:"bar", "disabled", 0.0);
479 set_state(PART:"event", "disabled", 0.0);
480 }
481 }
482 }
483 }
484 parts {
485 rect { "base";
486 desc { "default";
487 color: 0 0 0 0;
488 }
489 }
490 rect { "icon_clip";
491 desc { "default";
492 }
493 desc { "disabled";
494 inherit: "default";
495 color: 255 255 255 64;
496 }
497 }
498 swallow { "elm.swallow.background"; nomouse;
499 desc { "default";
500 rel1.to: "base";
501 rel2.to: "base";
502 visible: 0;
503 }
504 desc { "visible";
505 inherit: "default";
506 visible: 1;
507 }
508 }
509 swallow { "elm.swallow.content"; nomouse;
510 clip_to: "icon_clip";
511 desc { "default";
512 fixed: 1 0;
513 align: 0.0 0.5;
514 rel1.offset: 0 4;
515 rel1.to: "base";
516 rel2.relative: 0.0 1.0;
517 rel2.offset: 0 -5;
518 rel2.to: "base";
519 visible: 0;
520 }
521 desc { "visible";
522 inherit: "default";
523 fixed: 1 0;
524 aspect: 1.0 1.0;
525 visible: 1;
526 }
527 desc { "icononly";
528 inherit: "default";
529 fixed: 0 0;
530 align: 0.5 0.5;
531 rel2.relative: 1.0 1.0;
532 rel2.offset: -1 -5;
533 visible: 1;
534 }
535 }
536 text { "sizer.content"; nomouse;
537 scale: 1;
538 desc { "default";
539 visible: 0;
540 text { font: FN; size: 10;
541 min: 0 0;
542 text_class: "button_text";
543 }
544 }
545 desc { "visible";
546 inherit: "default";
547 rel1.to: "elm.swallow.content";
548 rel2.to: "elm.swallow.content";
549 text {
550 min: 1 1;
551 ellipsis: -1;
552 text: "M";
553 }
554 }
555 desc { "icononly";
556 inherit: "default";
557 rel1.to: "elm.swallow.content";
558 rel2.to: "elm.swallow.content";
559 text {
560 min: 1 1;
561 ellipsis: -1;
562 text: "M";
563 }
564 }
565 }
566 text { "elm.text"; nomouse;
567 effect: GLOW;
568 scale: 1;
569 desc { "default";
570 rel1.offset: -2 0;
571 rel1.relative: 1.0 0.0;
572 rel1.to_x: "elm.swallow.content";
573 rel1.to_y: "base";
574 rel2.offset: -1 -1;
575 rel2.to: "base";
576 color_class: "button_text_anchor";
577 color2: 255 255 255 255;
578 color3: 255 255 255 255;
579 text { font: FN; size: 10;
580 align: 0.5 0.5;
581 min: 0 0;
582 text_class: "button_anchor";
583 }
584 visible: 0;
585 }
586 desc { "visible";
587 inherit: "default";
588 rel1.offset: 0 0;
589 text.min: 1 1;
590 text.ellipsis: -1;
591 visible: 1;
592 }
593 desc { "textonly";
594 inherit: "default";
595 text.min: 1 1;
596 text.ellipsis: -1;
597 visible: 1;
598 }
599 desc { "disabled_visible";
600 inherit: "default";
601 rel1.offset: 0 0;
602 color_class: "button_text_anchor_disabled";
603 text.min: 1 1;
604 text.ellipsis: -1;
605 visible: 1;
606 }
607 desc { "disabled_textonly";
608 inherit: "default";
609 color_class: "button_text_anchor_disabled";
610 text.min: 1 1;
611 text.ellipsis: -1;
612 visible: 1;
613 }
614 }
615 text { "text2"; nomouse;
616 effect: GLOW;
617 scale: 1;
618 desc { "default";
619 fixed: 1 1;
620 rel1.to: "elm.text";
621 rel2.to: "elm.text";
622 color_class: "button_text_anchor";
623 color2: 255 255 255 255;
624 color3: 255 255 255 255;
625 text { font: FN; size: 10;
626 text_source: "elm.text";
627 min: 1 1;
628 ellipsis: -1;
629 text_class: "button_anchor";
630 }
631 visible: 0;
632 }
633 desc { "clicked";
634 inherit: "default";
635 visible: 1;
636 }
637 }
638 image { "bar"; nomouse;
639 desc { "default";
640 image.normal: "horizontal_separated_bar_small_glow.png";
641 image.border: 4 4 4 4;
642 fill.smooth: 0;
643 fixed: 0 1;
644 rel1.relative: 0.0 1.0;
645 rel1.offset: -3 -6;
646 rel2.offset: 2 3;
647 }
648 desc { "disabled";
649 inherit: "default";
650 color: 255 255 255 64;
651 }
652 }
653 image { "bar2"; nomouse;
654 desc { "default";
655 image.normal: "horizontal_separated_bar_small_glow.png";
656 image.border: 4 4 4 4;
657 fill.smooth: 0;
658 rel1.to: "bar";
659 rel2.to: "bar";
660 color: 255 255 255 0;
661 visible: 0;
662 }
663 desc { "clicked";
664 inherit: "default";
665 color: 255 255 255 255;
666 visible: 1;
667 }
668 }
669 rect { "event";
670 desc { "default";
671 color: 0 0 0 0;
672 }
673 desc { "disabled";
674 inherit: "default";
675 visible: 0;
676 }
677 }
678 }
679 programs {
680 program {
681 signal: "mouse,down,1"; source: "event";
682 action: SIGNAL_EMIT "elm,action,press" "elm";
683 after: "button_click_anim";
684 }
685 program { name: "button_click_anim";
686 action: STATE_SET "clicked" 0.0;
687 target: "bar2";
688 target: "text2";
689 }
690 program {
691 signal: "mouse,up,1"; source: "event";
692 action: SIGNAL_EMIT "elm,action,unpress" "elm";
693 after: "button_unclick_anim";
694 }
695 program { name: "button_unclick_anim";
696 action: STATE_SET "default" 0.0;
697 target: "bar2";
698 target: "text2";
699 }
700 program {
701 signal: "elm,anim,activate"; source: "elm";
702 action: STATE_SET "clicked" 0.0;
703 target: "bar2";
704 target: "text2";
705 after: "button_unpressed_anim";
706 }
707 program { name: "button_unpressed_anim";
708 action: STATE_SET "default" 0.0;
709 in: 0.5 0.0;
710 target: "bar2";
711 target: "text2";
712 }
713 program {
714 signal: "mouse,clicked,1"; source: "event";
715 action: SIGNAL_EMIT "elm,action,click" "elm";
716 }
717 program { name: "button_text_visible";
718 signal: "elm,state,text,visible"; source: "elm";
719 script {
720 new m = get_int(btmode);
721 m |= LABEL; set_int(btmode, m);
722 eval_mode(m);
723 }
724 }
725 program { name: "button_text_hidden";
726 signal: "elm,state,text,hidden"; source: "elm";
727 script {
728 new m = get_int(btmode);
729 m &= ~LABEL; set_int(btmode, m);
730 eval_mode(m);
731 }
732 }
733 program { name: "button_icon_visible";
734 signal: "elm,state,icon,visible"; source: "elm";
735 script {
736 new m = get_int(btmode);
737 m |= ICON; set_int(btmode, m);
738 eval_mode(m);
739 }
740 }
741 program { name: "button_icon_hidden";
742 signal: "elm,state,icon,hidden"; source: "elm";
743 script {
744 new m = get_int(btmode);
745 m &= ~ICON; set_int(btmode, m);
746 eval_mode(m);
747 }
748 }
749 program { name: "button_background_visible";
750 signal: "elm,state,background,visible"; source: "elm";
751 action: STATE_SET "visible" 0.0;
752 target: "elm.swallow.background";
753 }
754 program { name: "button_background_hidden";
755 signal: "elm,state,background,hidden"; source: "elm";
756 action: STATE_SET "default" 0.0;
757 target: "elm.swallow.background";
758 }
759 program { name: "button_state_disabled";
760 signal: "elm,state,disabled"; source: "elm";
761 script {
762 new m = get_int(btmode);
763 m |= DISABLE; set_int(btmode, m);
764 eval_mode(m);
765 }
766 }
767 program { name: "button_state_enabled";
768 signal: "elm,state,enabled"; source: "elm";
769 script {
770 new m = get_int(btmode);
771 m &= ~DISABLE; set_int(btmode, m);
772 eval_mode(m);
773 }
774 }
775 }
776#undef ICON
777#undef LABEL
778#undef MASK
779#undef DISABLE
780}
781
782group { name: "elm/button/base/colorselector/left/default";
783 inherit: "elm/button/base/default";
784 images.image: "sym_left_light_normal.png" COMP;
785 parts {
786 image { "ic"; nomouse;
787 desc { "default";
788 min: 15 15;
789 max: 15 15;
790 fixed: 1 1;
791 image.normal: "sym_left_light_normal.png";
792 }
793 }
794 }
795}
796
797group { name: "elm/button/base/colorselector/right/default";
798 inherit: "elm/button/base/default";
799 images.image: "sym_right_light_normal.png" COMP;
800 parts {
801 image { "ic"; nomouse;
802 desc { "default";
803 min: 15 15;
804 max: 15 15;
805 fixed: 1 1;
806 image.normal: "sym_right_light_normal.png";
807 }
808 }
809 }
810}
811
812group { name: "elm/button/base/media_player/prev/default";
813 alias: "elm/button/base/media_player/rewind/default";
814 alias: "elm/button/base/media_player/play/default";
815 alias: "elm/button/base/media_player/pause/default";
816 alias: "elm/button/base/media_player/stop/default";
817 alias: "elm/button/base/media_player/forward/default";
818 alias: "elm/button/base/media_player/next/default";
819 alias: "elm/button/base/media_player/info/default";
820 alias: "elm/button/base/media_player/eject/default";
821 alias: "elm/button/base/media_player/volume/default";
822 alias: "elm/button/base/media_player/mute/default";
823
824 alias: "elm/button/base/media_player/prev/flush";
825 alias: "elm/button/base/media_player/rewind/flush";
826 alias: "elm/button/base/media_player/play/flush";
827 alias: "elm/button/base/media_player/pause/flush";
828 alias: "elm/button/base/media_player/stop/flush";
829 alias: "elm/button/base/media_player/forward/flush";
830 alias: "elm/button/base/media_player/next/flush";
831 alias: "elm/button/base/media_player/info/flush";
832 alias: "elm/button/base/media_player/eject/flush";
833 alias: "elm/button/base/media_player/volume/flush";
834 alias: "elm/button/base/media_player/mute/flush";
835
836 images.image: "shadow_inset_bevels.png" COMP;
837 images.image: "shadow_angled_in_sides.png" COMP;
838 parts {
839 rect { "clip";
840 desc { "default";
841 }
842 }
843 image { "shadow1"; nomouse;
844 clip_to: "clip";
845 desc { "default";
846 rel2.offset: -1 0;
847 image.normal: "shadow_inset_bevels.png";
848 image.border: 2 2 0 1;
849 visible: 0;
850 }
851 desc { "selected";
852 inherit: "default";
853 visible: 1;
854 }
855 }
856 image { "shadow2"; nomouse;
857 clip_to: "clip";
858 desc { "default";
859 rel1.offset: 1 0;
860 rel2.offset: -2 -1;
861 image.normal: "shadow_angled_in_sides.png";
862 image.border: 8 8 0 1;
863 image.middle: 0;
864 visible: 0;
865 }
866 desc { "selected";
867 inherit: "default";
868 visible: 1;
869 }
870 }
871 swallow { "elm.swallow.content"; nomouse;
872 desc { "default";
873 rel1.offset: 3 1;
874 rel2.offset: -4 -2;
875 }
876 }
877 rect { "event";
878 ignore_flags: ON_HOLD;
879 desc { "default";
880 color: 0 0 0 0;
881 }
882 }
883 }
884 programs {
885 program {
886 signal: "mouse,down,1"; source: "event";
887 action: SIGNAL_EMIT "elm,action,press" "elm";
888 after: "button_click_anim";
889 }
890 program { name: "button_click_anim";
891 action: STATE_SET "selected" 0.0;
892 target: "shadow1";
893 target: "shadow2";
894 }
895 program {
896 signal: "mouse,up,1"; source: "event";
897 action: SIGNAL_EMIT "elm,action,unpress" "elm";
898 after: "button_unclick_anim";
899 }
900 program { name: "button_unclick_anim";
901 action: STATE_SET "default" 0.0;
902 target: "shadow1";
903 target: "shadow2";
904 }
905 program {
906 signal: "elm,anim,activate"; source: "elm";
907 action: STATE_SET "clicked" 0.0;
908 target: "shadow1";
909 target: "shadow2";
910 after: "button_unpressed_anim";
911 }
912 program { name: "button_unpressed_anim";
913 action: STATE_SET "default" 0.0;
914 in: 0.5 0.0;
915 target: "shadow1";
916 target: "shadow2";
917 }
918 program {
919 signal: "mouse,clicked,1"; source: "event";
920 action: SIGNAL_EMIT "elm,action,click" "elm";
921 }
922 }
923}
924
925group { name: "elm/button/base/hoversel_vertical/default";
926 inherit: "elm/button/base/default";
927 alias: "elm/button/base/hoversel_vertical/entry";
928 alias: "elm/button/base/hoversel_horizontal/default";
929 alias: "elm/button/base/hoversel_horizontal/entry";
930
931 images.image: "vertical_separated_bar_glow.png" COMP;
932
933 parts {
934 text { "elm.text";
935 desc { "default";
936 rel1.offset: 0 5;
937 rel1.relative: 1.0 0.0;
938 rel1.to_x: "elm.swallow.content";
939 rel1.to_y: "base";
940 rel2.to_y: "base";
941 rel2.to_x: "select_line";
942 rel2.offset: -3 -8;
943 rel2.relative: 0.0 1.0;
944 text.text_class: "hoversel";
945 text.ellipsis: -1;
946 color3: 255 255 255 255;
947 fixed: 1 1;
948 }
949 desc { "visible";
950 inherit: "default";
951 rel1.offset: 5 5;
952 text.min: 1 1;
953 text.ellipsis: -1;
954 visible: 1;
955 fixed: 0 0;
956 }
957 desc { "textonly";
958 inherit: "default";
959 text.min: 1 1;
960 text.ellipsis: -1;
961 visible: 1;
962 fixed: 0 0;
963 }
964 desc { "disabled_visible";
965 inherit: "default";
966 rel1.offset: 5 5;
967 color_class: "hoversel_text_disabled";
968 text.min: 1 1;
969 text.ellipsis: -1;
970 visible: 1;
971 fixed: 0 0;
972 }
973 desc { "disabled_textonly";
974 inherit: "default";
975 color_class: "hoversel_text_disabled";
976 text.min: 1 1;
977 text.ellipsis: -1;
978 visible: 1;
979 fixed: 0 0;
980 }
981 }
982 image { "select_line"; nomouse;
983 desc { "default";
984 fixed: 1 1;
985 align: 1.0 0.5;
986 min: 15 10;
987 rel1.to: "base";
988 rel1.relative: 1.0 0.0;
989 rel1.offset: 1 -3;
990 rel2.to: "base";
991 rel2.offset: 1 0;
992 image.normal: "vertical_separated_bar_glow.png";
993 image.border: 7 7 7 7;
994 fill.smooth : 0;
995 }
996 desc { "pressed";
997 inherit: "default";
998 rel1.offset: 0 -2;
999 rel2.offset: 0 -1;
1000 }
1001 }
1002 }
1003 programs {
1004 program { name: "button_click_anim";
1005 action: STATE_SET "pressed" 0.0;
1006 target: "base";
1007 target: "select_line";
1008 }
1009 program { name: "button_unclick_anim";
1010 action: STATE_SET "default" 0.0;
1011 target: "base";
1012 target: "select_line";
1013 }
1014 program { name: "buttonactivate";
1015 target: "select_line";
1016 }
1017 program { name: "button_unpressed_anim";
1018 target: "select_line";
1019 }
1020 }
1021}
1022
1023group { name: "elm/button/base/hoversel_vertical_entry/default";
1024 alias: "elm/button/base/hoversel_vertical_entry/entry";
1025 images.image: "vgrad_med_dark.png" COMP;
1026 images.image: "bevel_horiz_out.png" COMP;
1027 images.image: "shadow_rounded_horiz.png" COMP;
1028 images.image: "shine.png" COMP;
1029#define ICON 1
1030#define LABEL 2
1031#define MASK 3
1032#define DISABLE 4
1033 script {
1034 public btmode;
1035 public is_selected;
1036 public eval_mode(m) {
1037 new m1 = m & MASK;
1038 new d = m & DISABLE;
1039 if (m1 == (ICON | LABEL)) {
1040 if (!d) {
1041 set_state(PART:"elm.swallow.content", "visible", 0.0);
1042 set_state(PART:"sizer.content", "visible", 0.0);
1043 set_state(PART:"elm.text", "visible", 0.0);
1044 set_state(PART:"icon_clip", "default", 0.0);
1045 set_state(PART:"event", "default", 0.0);
1046 } else {
1047 set_state(PART:"elm.swallow.content", "visible", 0.0);
1048 set_state(PART:"sizer.content", "visible", 0.0);
1049 set_state(PART:"elm.text", "disabled_visible", 0.0);
1050 set_state(PART:"icon_clip", "disabled", 0.0);
1051 set_state(PART:"event", "disabled", 0.0);
1052 }
1053 } else if (m1 == (ICON)) {
1054 if (!d) {
1055 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1056 set_state(PART:"sizer.content", "icononly", 0.0);
1057 set_state(PART:"elm.text", "default", 0.0);
1058 set_state(PART:"icon_clip", "default", 0.0);
1059 set_state(PART:"event", "default", 0.0);
1060 } else {
1061 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1062 set_state(PART:"sizer.content", "icononly", 0.0);
1063 set_state(PART:"elm.text", "default", 0.0);
1064 set_state(PART:"icon_clip", "disabled", 0.0);
1065 set_state(PART:"event", "disabled", 0.0);
1066 }
1067 } else if (m1 == (LABEL)) {
1068 if (!d) {
1069 set_state(PART:"elm.swallow.content", "default", 0.0);
1070 set_state(PART:"sizer.content", "default", 0.0);
1071 set_state(PART:"elm.text", "textonly", 0.0);
1072 set_state(PART:"icon_clip", "default", 0.0);
1073 set_state(PART:"event", "default", 0.0);
1074 } else {
1075 set_state(PART:"elm.swallow.content", "default", 0.0);
1076 set_state(PART:"sizer.content", "default", 0.0);
1077 set_state(PART:"elm.text", "disabled_textonly", 0.0);
1078 set_state(PART:"icon_clip", "disabled", 0.0);
1079 set_state(PART:"event", "disabled", 0.0);
1080 }
1081 } else {
1082 if (!d) {
1083 set_state(PART:"elm.swallow.content", "default", 0.0);
1084 set_state(PART:"sizer.content", "default", 0.0);
1085 set_state(PART:"icon_clip", "default", 0.0);
1086 set_state(PART:"event", "default", 0.0);
1087 } else {
1088 set_state(PART:"elm.swallow.content", "default", 0.0);
1089 set_state(PART:"sizer.content", "default", 0.0);
1090 set_state(PART:"icon_clip", "disabled", 0.0);
1091 set_state(PART:"event", "disabled", 0.0);
1092 }
1093 }
1094 }
1095 }
1096 parts {
1097 image { "shadow"; nomouse;
1098 desc { "default";
1099 fixed: 1 1;
1100 image.normal: "shadow_rounded_horiz.png";
1101 image.border: 0 0 9 9;
1102 rel1.to: "base";
1103 rel1.offset: 0 -4;
1104 rel2.to: "base";
1105 rel2.offset: -1 5;
1106 fill.smooth: 0;
1107 visible: 0;
1108 }
1109 desc { "clicked";
1110 inherit: "default";
1111 visible: 1;
1112 }
1113 }
1114 image { "base"; nomouse;
1115 desc { "default";
1116 fixed: 1 1;
1117 rel1.offset: 0 0;
1118 image.normal: "vgrad_med_dark.png";
1119 fill.smooth: 0;
1120 TILED_HORIZ(120)
1121 visible: 0;
1122 }
1123 desc { "clicked";
1124 inherit: "default";
1125 visible: 1;
1126 }
1127 }
1128 rect { "icon_clip";
1129 desc { "default";
1130 }
1131 desc { "disabled";
1132 inherit: "default";
1133 color: 255 255 255 64;
1134 }
1135 }
1136 swallow { "elm.swallow.content"; nomouse;
1137 clip_to: "icon_clip";
1138 desc { "default";
1139 fixed: 1 0;
1140 align: 0.0 0.5;
1141 rel1.offset: 6 5;
1142 rel1.to: "base";
1143 rel2.relative: 0.0 1.0;
1144 rel2.offset: 6 -8;
1145 rel2.to: "base";
1146 visible: 0;
1147 }
1148 desc { "visible";
1149 inherit: "default";
1150 fixed: 1 0;
1151 aspect: 1.0 1.0;
1152 visible: 1;
1153 }
1154 desc { "icononly";
1155 inherit: "default";
1156 fixed: 0 0;
1157 align: 0.5 0.5;
1158 rel2.relative: 1.0 1.0;
1159 rel2.offset: -7 -8;
1160 visible: 1;
1161 }
1162 }
1163 text { "sizer.content"; nomouse;
1164 scale: 1;
1165 desc { "default";
1166 fixed: 1 1;
1167 visible: 0;
1168 text { font: FN; size: 10;
1169 min: 0 0;
1170 text_class: "button_text";
1171 }
1172 }
1173 desc { "visible";
1174 inherit: "default";
1175 rel1.to: "elm.swallow.content";
1176 rel2.to: "elm.swallow.content";
1177 text {
1178 min: 1 1;
1179 ellipsis: -1;
1180 text: "M";
1181 }
1182 }
1183 desc { "icononly";
1184 inherit: "default";
1185 rel1.to: "elm.swallow.content";
1186 rel2.to: "elm.swallow.content";
1187 text {
1188 min: 1 1;
1189 ellipsis: -1;
1190 text: "M";
1191 }
1192 }
1193 }
1194 rect { "click_clip";
1195 desc { "default";
1196 }
1197 desc { "clicked";
1198 inherit: "default";
1199 visible: 0;
1200 }
1201 }
1202 spacer { "text_container";
1203 desc { "default";
1204 rel1.relative: 1.0 0.0;
1205 rel1.to_x: "elm.swallow.content";
1206 rel1.to_y: "base";
1207 rel2.to: "base";
1208 }
1209 }
1210 text { "elm.text"; nomouse;
1211 effect: SHADOW BOTTOM;
1212 scale: 1;
1213 clip_to: "click_clip";
1214 desc { "default";
1215 rel1.offset: 0 5;
1216 rel2.offset: -8 -8;
1217 rel1.to: "text_container";
1218 rel2.to: "text_container";
1219 color_class: "hoversel_text";
1220 color3: 255 255 255 255;
1221 text { font: FN; size: 10;