diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2016-11-14 17:53:01 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2016-11-23 13:04:12 +0900 |
commit | 9fb4f0ab2b27dafccb5fe72a9863b1ba6fb646ec (patch) | |
tree | 97c32b912ef458ad3ce75381937bdbf444ecfcc8 /data | |
parent | 234bc18f02993c29c20120a52079b3081dca0126 (diff) |
theme: Implement CSD & non-CSD styles in window.edc
Also converts border.edc to lazEDC (easier to read, imho).
This is still work in progress but currently this supports
CSD & no-CSD modes for normal, maximized, main menu usage, shadow
on and off.
Note that shaded support is not implemented. I've made some
attempts towards this goal, with some success under X but it
was ugly code, and didn't work under Wayland (weston). So, no
extra support for shaded mode yet.
Diffstat (limited to 'data')
-rw-r--r-- | data/elementary/themes/edc/elm/border.edc | 649 |
1 files changed, 312 insertions, 337 deletions
diff --git a/data/elementary/themes/edc/elm/border.edc b/data/elementary/themes/edc/elm/border.edc index 788e529..ccf0dd2 100644 --- a/data/elementary/themes/edc/elm/border.edc +++ b/data/elementary/themes/edc/elm/border.edc | |||
@@ -1,3 +1,12 @@ | |||
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 | |||
1 | group { name: "elm/border/base/default"; | 10 | group { name: "elm/border/base/default"; |
2 | images.image: "vgrad_med_lighter.png" COMP; | 11 | images.image: "vgrad_med_lighter.png" COMP; |
3 | images.image: "vgrad_med_dark.png" COMP; | 12 | images.image: "vgrad_med_dark.png" COMP; |
@@ -25,80 +34,57 @@ group { name: "elm/border/base/default"; | |||
25 | /* opaque region of the window, to inform the compositor */ | 34 | /* opaque region of the window, to inform the compositor */ |
26 | spacer { "elm.spacer.opaque"; | 35 | spacer { "elm.spacer.opaque"; |
27 | desc { | 36 | desc { |
28 | rel1.to: "top"; | 37 | rel1.to: "top_clip"; |
29 | rel2.to: "bottom"; | 38 | rel2.to: "bottom_clip"; |
30 | } | 39 | } |
31 | desc { "shaded"; | 40 | desc { "max"; inherit: "default"; } |
32 | rel1.to: "top"; | ||
33 | rel2.to: "elm.swallow.client"; | ||
34 | } | ||
35 | desc { "max"; inherit: "shaded"; } | ||
36 | } | 41 | } |
37 | /* covers the entire client contents, including the main menu */ | 42 | /* covers the entire client contents, including the main menu */ |
38 | spacer { "elm.spacer.content"; | 43 | spacer { "elm.spacer.content"; |
39 | required; // since 1.19 | 44 | required; // since 1.19 |
40 | desc { | 45 | desc { |
41 | rel1.to: "top"; | 46 | rel1.to: "top_clip"; |
42 | rel1.relative: 0.0 1.0; | 47 | rel1.relative: 0.0 1.0; |
43 | rel2.to: "bottom"; | 48 | rel2.to: "bottom_clip"; |
44 | rel2.relative: 1.0 0.0; | 49 | rel2.relative: 1.0 0.0; |
45 | } | ||
46 | } | ||
47 | part { name: "shadow_clip"; type: RECT; mouse_events: 0; | ||
48 | description { state: "default"; | ||
49 | rel1.to: "shadow"; | ||
50 | rel2.to: "shadow"; | ||
51 | } | ||
52 | description { state: "hidden"; | ||
53 | visible: 0; | ||
54 | } | 50 | } |
55 | } | 51 | } |
56 | part { name: "shadow_spacer"; type: SPACER; | 52 | /* shadow spacer and clipper */ |
57 | description { state: "default"; | 53 | spacer { "shadow_spacer"; |
54 | desc { "default"; | ||
58 | WIN_SHADOW_SPACER; | 55 | WIN_SHADOW_SPACER; |
59 | } | 56 | } |
60 | description { state: "max"; | 57 | desc { "hidden"; |
61 | rel1.offset: 0 0; | 58 | rel1.offset: 0 0; |
62 | rel2.offset: -1 -1; | 59 | rel2.offset: -1 -1; |
63 | } | 60 | } |
64 | } | 61 | } |
65 | part { name: "shadow"; mouse_events: 0; clip_to: "shadow_clip"; | 62 | image { "shadow"; nomouse; |
66 | description { state: "default" 0.0; | 63 | desc { "default"; |
67 | rel1.to: "shadow_spacer"; | 64 | rel.to: "shadow_spacer"; |
68 | rel2.to: "shadow_spacer"; | ||
69 | WIN_SHADOW; | 65 | WIN_SHADOW; |
70 | } | 66 | } |
71 | description { state: "shaded"; | 67 | desc { "hidden"; inherit: "default"; hid; } |
72 | inherit: "default"; | ||
73 | rel2.to: "elm.swallow.client"; | ||
74 | } | ||
75 | } | 68 | } |
76 | rect { "client_clip"; | 69 | /* window background: solid color */ |
70 | rect { "bg_clip"; | ||
77 | nomouse; | 71 | nomouse; |
78 | desc { "default"; | 72 | desc { "default"; |
79 | rel1.to_y: "elm.swallow.client"; | 73 | rel.to: "elm.spacer.content"; |
80 | rel2.to_y: "elm.swallow.client"; | ||
81 | } | 74 | } |
82 | } | 75 | } |
83 | rect { "bg_clip"; | ||
84 | nomouse; | ||
85 | desc { "default"; | ||
86 | rel.to: "elm.spacer.content"; | ||
87 | } | ||
88 | } | ||
89 | /* window background: solid color */ | ||
90 | rect { "elm.rect.background"; | 76 | rect { "elm.rect.background"; |
91 | required; // @since 1.19 | 77 | required; // @since 1.19 |
92 | clip: "bg_clip"; | 78 | clip: "bg_clip"; |
93 | desc { "default"; | 79 | desc { "default"; |
94 | color: 255 255 255 255; | 80 | color: 255 255 255 255; |
95 | color_class: "elm/win/background"; // FIXME: color_class naming scheme | 81 | color_class: "elm/win/background"; // FIXME: color_class naming scheme |
96 | visible: 0; | 82 | visible: 0; |
97 | } | 83 | } |
98 | desc { "visible"; | 84 | desc { "visible"; |
99 | inherit: "default"; | 85 | inherit: "default"; |
100 | visible: 1; | 86 | visible: 1; |
101 | } | 87 | } |
102 | } | 88 | } |
103 | /* window background: image */ | 89 | /* window background: image */ |
104 | swallow { "elm.swallow.background"; | 90 | swallow { "elm.swallow.background"; |
@@ -116,7 +102,7 @@ group { name: "elm/border/base/default"; | |||
116 | swallow { "elm.swallow.menu"; | 102 | swallow { "elm.swallow.menu"; |
117 | required: 1; // since 1.19 | 103 | required: 1; // since 1.19 |
118 | desc { "default"; | 104 | desc { "default"; |
119 | rel.to: "top"; | 105 | rel.to: "top_clip"; |
120 | rel1.relative: 0.0 1.0; | 106 | rel1.relative: 0.0 1.0; |
121 | rel1.offset: 0 -1; | 107 | rel1.offset: 0 -1; |
122 | visible: 0; | 108 | visible: 0; |
@@ -128,57 +114,78 @@ group { name: "elm/border/base/default"; | |||
128 | fixed: 0 1; | 114 | fixed: 0 1; |
129 | } | 115 | } |
130 | } | 116 | } |
131 | /* application contents */ | 117 | /* application contents - spacer and clipper (without main menu) */ |
132 | part { name: "elm.swallow.client"; type: SWALLOW; | 118 | spacer { "client_spacer"; |
133 | clip_to: "client_clip"; | 119 | desc { "default"; |
134 | description { state: "default" 0.0; | ||
135 | rel1.relative: 0.0 1.0; | ||
136 | rel1.to: "elm.swallow.menu"; | 120 | rel1.to: "elm.swallow.menu"; |
121 | rel1.relative: 0.0 1.0; | ||
122 | rel2.to: "bottom_clip"; | ||
137 | rel2.relative: 1.0 0.0; | 123 | rel2.relative: 1.0 0.0; |
138 | rel2.to: "bottom"; | ||
139 | } | 124 | } |
140 | description { state: "shaded" 0.0; | 125 | } |
141 | inherit: "default" 0.0; | 126 | rect { "client_clip"; |
142 | rel2.relative: 1.0 1.0; | 127 | nomouse; |
143 | rel2.offset: -1 -1; | 128 | desc { "default"; |
129 | rel.to: "client_spacer"; | ||
144 | } | 130 | } |
145 | description { state: "max" 0.0; | 131 | } |
146 | inherit: "default" 0.0; | 132 | /* application contents */ |
147 | rel2.relative: 1.0 1.0; | 133 | swallow { "elm.swallow.client"; |
148 | rel2.offset: -1 -1; | 134 | clip: "client_clip"; |
135 | desc { "default"; | ||
136 | rel.to: "client_spacer"; | ||
149 | } | 137 | } |
150 | } | 138 | } |
151 | part { name: "top"; mouse_events: 0; | 139 | /* top title bar - spacer and clipper */ |
152 | description { state: "default" 0.0; | 140 | rect { "top_clip"; //nomouse; |
153 | image.normal: "vgrad_med_lighter.png"; | 141 | desc { "default"; |
154 | rel1.to: "shadow_spacer"; | 142 | rel1.to: "shadow_spacer"; |
155 | rel2.to_y: "title2"; | 143 | rel2.to_y: "title2"; |
156 | rel2.to_x: "shadow_spacer"; | 144 | rel2.to_x: "shadow_spacer"; |
157 | rel2.offset: -1 0; | 145 | rel2.offset: -1 0; |
146 | vis; | ||
147 | } | ||
148 | desc { "hidden"; | ||
149 | inherit: "default"; | ||
150 | rel1.relative: 0.0 0.0; | ||
151 | rel2.relative: 1.0 0.0; | ||
152 | max: -1 0; | ||
153 | min: 0 0; | ||
154 | fixed: 0 1; | ||
155 | hid; | ||
156 | } | ||
157 | } | ||
158 | /* top title bar */ | ||
159 | image { "top"; nomouse; | ||
160 | clip: "top_clip"; | ||
161 | desc { "default"; | ||
162 | image.normal: "vgrad_med_lighter.png"; | ||
163 | rel.to: "top_clip"; | ||
158 | fill.smooth: 0; | 164 | fill.smooth: 0; |
159 | TILED_HORIZ(120) | 165 | TILED_HORIZ(120) |
160 | color_class: "border_frame"; | 166 | color_class: "border_frame"; |
161 | } | 167 | } |
162 | description { state: "focused" 0.0; | 168 | desc { "focused"; |
163 | inherit: "default" 0.0; | 169 | inherit: "default"; |
164 | image.normal: "vgrad_med_dark.png"; | 170 | image.normal: "vgrad_med_dark.png"; |
165 | color_class: "border_frame_active"; | 171 | color_class: "border_frame_active"; |
166 | } | 172 | } |
167 | } | 173 | } |
168 | part { name: "bevel"; mouse_events: 0; | 174 | image { "bevel"; nomouse; |
169 | description { state: "default" 0.0; | 175 | clip: "top_clip"; |
176 | desc { "default"; | ||
170 | image.normal: "bevel_out.png"; | 177 | image.normal: "bevel_out.png"; |
171 | image.border: 1 1 1 1; | 178 | image.border: 1 1 1 1; |
172 | image.middle: 0; | 179 | image.middle: 0; |
173 | rel1.to: "top"; | 180 | rel.to: "top_clip"; |
174 | rel2.to: "top"; | ||
175 | fill.smooth: 0; | 181 | fill.smooth: 0; |
176 | } | 182 | } |
177 | } | 183 | } |
178 | part { name: "elm.text.title"; type: TEXT; mouse_events: 0; | 184 | text { "elm.text.title"; nomouse; |
179 | scale: 1; | 185 | scale: 1; |
180 | effect: SHADOW BOTTOM; | 186 | effect: SHADOW BOTTOM; |
181 | description { state: "default" 0.0; | 187 | clip: "top_clip"; |
188 | desc { "default"; | ||
182 | rel1.relative: 1.0 0.0; | 189 | rel1.relative: 1.0 0.0; |
183 | rel1.offset: 1 3; | 190 | rel1.offset: 1 3; |
184 | rel1.to_x: "elm.event.icon"; | 191 | rel1.to_x: "elm.event.icon"; |
@@ -197,15 +204,16 @@ group { name: "elm/border/base/default"; | |||
197 | } | 204 | } |
198 | fixed: 0 1; | 205 | fixed: 0 1; |
199 | } | 206 | } |
200 | description { state: "focused" 0.0; | 207 | desc { "focused"; |
201 | inherit: "default" 0.0; | 208 | inherit: "default"; |
202 | visible: 0; | 209 | visible: 0; |
203 | } | 210 | } |
204 | } | 211 | } |
205 | part { name: "title2"; type: TEXT; mouse_events: 0; | 212 | text { "title2"; nomouse; |
206 | scale: 1; | 213 | scale: 1; |
207 | effect: SOFT_SHADOW BOTTOM; | 214 | effect: SOFT_SHADOW BOTTOM; |
208 | description { state: "default" 0.0; | 215 | clip: "top_clip"; |
216 | desc { "default"; | ||
209 | rel1.relative: 1.0 0.0; | 217 | rel1.relative: 1.0 0.0; |
210 | rel1.offset: 1 2; | 218 | rel1.offset: 1 2; |
211 | rel1.to_x: "elm.event.icon"; | 219 | rel1.to_x: "elm.event.icon"; |
@@ -226,29 +234,29 @@ group { name: "elm/border/base/default"; | |||
226 | fixed: 0 1; | 234 | fixed: 0 1; |
227 | visible: 0; | 235 | visible: 0; |
228 | } | 236 | } |
229 | description { state: "focused" 0.0; | 237 | desc { "focused"; |
230 | inherit: "default" 0.0; | 238 | inherit: "default"; |
231 | visible: 1; | 239 | visible: 1; |
232 | } | 240 | } |
233 | } | 241 | } |
234 | part { name: "icon"; type: SPACER; | 242 | spacer { "icon"; |
235 | description { state: "default" 0.0; | 243 | desc { "default"; |
236 | rel1.to: "elm.event.icon"; | 244 | rel1.to: "elm.event.icon"; |
237 | rel2.to: "elm.event.icon"; | 245 | rel2.to: "elm.event.icon"; |
238 | } | 246 | } |
239 | description { state: "bounce1" 0.0; | 247 | desc { "bounce1"; |
240 | inherit: "default" 0.0; | 248 | inherit: "default"; |
241 | rel1.relative: 0.5 0.5; | 249 | rel1.relative: 0.5 0.5; |
242 | rel2.relative: 0.5 0.5; | 250 | rel2.relative: 0.5 0.5; |
243 | } | 251 | } |
244 | description { state: "bounce2" 0.0; | 252 | desc { "bounce2"; |
245 | inherit: "default" 0.0; | 253 | inherit: "default"; |
246 | rel1.relative: -0.5 -0.5; | 254 | rel1.relative: -0.5 -0.5; |
247 | rel2.relative: 1.2 1.2; | 255 | rel2.relative: 1.2 1.2; |
248 | } | 256 | } |
249 | } | 257 | } |
250 | part { name: "elm.swallow.icon"; type: SWALLOW; mouse_events: 0; | 258 | swallow { "elm.swallow.icon"; nomouse; |
251 | description { state: "default" 0.0; | 259 | desc { "default"; |
252 | rel1.to: "icon"; | 260 | rel1.to: "icon"; |
253 | rel1.relative: 0.15 0.15; | 261 | rel1.relative: 0.15 0.15; |
254 | rel2.to: "icon"; | 262 | rel2.to: "icon"; |
@@ -256,20 +264,20 @@ group { name: "elm/border/base/default"; | |||
256 | rel2.offset: 0 0; | 264 | rel2.offset: 0 0; |
257 | } | 265 | } |
258 | } | 266 | } |
259 | part { name: "busy_clip"; type: RECT; mouse_events: 0; | 267 | rect { "busy_clip"; nomouse; |
260 | description { state: "default" 0.0; | 268 | desc { "default"; |
261 | color: 255 255 255 0; | 269 | color: 255 255 255 0; |
262 | visible: 0; | 270 | visible: 0; |
263 | } | 271 | } |
264 | description { state: "hung" 0.0; | 272 | desc { "hung"; |
265 | inherit: "default" 0.0; | 273 | inherit: "default"; |
266 | color: 255 255 255 255; | 274 | color: 255 255 255 255; |
267 | visible: 1; | 275 | visible: 1; |
268 | } | 276 | } |
269 | } | 277 | } |
270 | part { name: "knob"; mouse_events: 0; | 278 | image { "knob"; nomouse; |
271 | clip_to: "busy_clip"; | 279 | clip: "busy_clip"; |
272 | description { state: "default" 0.0; | 280 | desc { "default"; |
273 | fixed: 1 1; | 281 | fixed: 1 1; |
274 | image.normal: "knob_round_small_busy.png"; | 282 | image.normal: "knob_round_small_busy.png"; |
275 | aspect: 1.0 1.0; aspect_preference: VERTICAL; | 283 | aspect: 1.0 1.0; aspect_preference: VERTICAL; |
@@ -284,9 +292,9 @@ group { name: "elm/border/base/default"; | |||
284 | fixed: 1 1; | 292 | fixed: 1 1; |
285 | } | 293 | } |
286 | } | 294 | } |
287 | part { name: "knob_spinner"; mouse_events: 0; | 295 | image { "knob_spinner"; nomouse; |
288 | clip_to: "busy_clip"; | 296 | clip: "busy_clip"; |
289 | description { state: "default" 0.0; | 297 | desc { "default"; |
290 | fixed: 1 1; | 298 | fixed: 1 1; |
291 | rel1.to: "knob"; | 299 | rel1.to: "knob"; |
292 | rel2.to: "knob"; | 300 | rel2.to: "knob"; |
@@ -295,35 +303,35 @@ group { name: "elm/border/base/default"; | |||
295 | map.smooth: 1; | 303 | map.smooth: 1; |
296 | map.rotation.center: "knob"; | 304 | map.rotation.center: "knob"; |
297 | } | 305 | } |
298 | description { state: "spin" 0.0; | 306 | desc { "spin"; |
299 | inherit: "default" 0.0; | 307 | inherit: "default"; |
300 | map.rotation.z: 360; | 308 | map.rotation.z: 360; |
301 | } | 309 | } |
302 | } | 310 | } |
303 | part { name: "clip1"; type: RECT; mouse_events: 0; | 311 | rect { "clip1"; nomouse; |
304 | description { state: "default" 0.0; | 312 | desc { "default"; |
305 | rel1.to: "top"; | 313 | rel1.to: "top_clip"; |
306 | rel2.to: "top"; | 314 | rel2.to: "top_clip"; |
307 | } | 315 | } |
308 | description { state: "focused" 0.0; | 316 | desc { "focused"; |
309 | inherit: "default" 0.0; | 317 | inherit: "default"; |
310 | visible: 0; | 318 | visible: 0; |
311 | } | 319 | } |
312 | } | 320 | } |
313 | part { name: "clip2"; type: RECT; mouse_events: 0; | 321 | rect { "clip2"; nomouse; |
314 | description { state: "default" 0.0; | 322 | desc { "default"; |
315 | rel1.to: "top"; | 323 | rel1.to: "top_clip"; |
316 | rel2.to: "top"; | 324 | rel2.to: "top_clip"; |
317 | visible: 0; | 325 | visible: 0; |
318 | } | 326 | } |
319 | description { state: "focused" 0.0; | 327 | desc { "focused"; |
320 | inherit: "default" 0.0; | 328 | inherit: "default"; |
321 | visible: 1; | 329 | visible: 1; |
322 | } | 330 | } |
323 | } | 331 | } |
324 | part { name: "close1"; mouse_events: 0; | 332 | image { "close1"; nomouse; |
325 | clip_to: "clip1"; | 333 | clip: "clip1"; |
326 | description { state: "default" 0.0; | 334 | desc { "default"; |
327 | image.normal: "sym_close_dark_normal.png"; | 335 | image.normal: "sym_close_dark_normal.png"; |
328 | rel1.to: "elm.event.close"; | 336 | rel1.to: "elm.event.close"; |
329 | rel2.to: "elm.event.close"; | 337 | rel2.to: "elm.event.close"; |
@@ -331,14 +339,14 @@ group { name: "elm/border/base/default"; | |||
331 | max: 15 15; | 339 | max: 15 15; |
332 | fixed: 1 1; | 340 | fixed: 1 1; |
333 | } | 341 | } |
334 | description { state: "selected" 0.0; | 342 | desc { "selected"; |
335 | inherit: "default" 0.0; | 343 | inherit: "default"; |
336 | image.normal: "sym_close_dark_selected.png"; | 344 | image.normal: "sym_close_dark_selected.png"; |
337 | } | 345 | } |
338 | } | 346 | } |
339 | part { name: "max1"; mouse_events: 0; | 347 | image { "max1"; nomouse; |
340 | clip_to: "clip1"; | 348 | clip: "clip1"; |
341 | description { state: "default" 0.0; | 349 | desc { "default"; |
342 | image.normal: "sym_up_dark_normal.png"; | 350 | image.normal: "sym_up_dark_normal.png"; |
343 | rel1.to: "elm.event.maximize"; | 351 | rel1.to: "elm.event.maximize"; |
344 | rel2.to: "elm.event.maximize"; | 352 | rel2.to: "elm.event.maximize"; |
@@ -346,14 +354,14 @@ group { name: "elm/border/base/default"; | |||
346 | max: 15 15; | 354 | max: 15 15; |
347 | fixed: 1 1; | 355 | fixed: 1 1; |
348 | } | 356 | } |
349 | description { state: "selected" 0.0; | 357 | desc { "selected"; |
350 | inherit: "default" 0.0; | 358 | inherit: "default"; |
351 | image.normal: "sym_up_dark_selected.png"; | 359 | image.normal: "sym_up_dark_selected.png"; |
352 | } | 360 | } |
353 | } | 361 | } |
354 | part { name: "min1"; mouse_events: 0; | 362 | image { "min1"; nomouse; |
355 | clip_to: "clip1"; | 363 | clip: "clip1"; |
356 | description { state: "default" 0.0; | 364 | desc { "default"; |
357 | image.normal: "sym_down_dark_normal.png"; | 365 | image.normal: "sym_down_dark_normal.png"; |
358 | rel1.to: "elm.event.minimize"; | 366 | rel1.to: "elm.event.minimize"; |
359 | rel2.to: "elm.event.minimize"; | 367 | rel2.to: "elm.event.minimize"; |
@@ -361,14 +369,14 @@ group { name: "elm/border/base/default"; | |||
361 | max: 15 15; | 369 | max: 15 15; |
362 | fixed: 1 1; | 370 | fixed: 1 1; |
363 | } | 371 | } |
364 | description { state: "selected" 0.0; | 372 | desc { "selected"; |
365 | inherit: "default" 0.0; | 373 | inherit: "default"; |
366 | image.normal: "sym_down_dark_selected.png"; | 374 | image.normal: "sym_down_dark_selected.png"; |
367 | } | 375 | } |
368 | } | 376 | } |
369 | part { name: "close2"; mouse_events: 0; | 377 | image { "close2"; nomouse; |
370 | clip_to: "clip2"; | 378 | clip: "clip2"; |
371 | description { state: "default" 0.0; | 379 | desc { "default"; |
372 | image.normal: "sym_close_light_normal.png"; | 380 | image.normal: "sym_close_light_normal.png"; |
373 | rel1.to: "elm.event.close"; | 381 | rel1.to: "elm.event.close"; |
374 | rel2.to: "elm.event.close"; | 382 | rel2.to: "elm.event.close"; |
@@ -376,14 +384,14 @@ group { name: "elm/border/base/default"; | |||
376 | max: 15 15; | 384 | max: 15 15; |
377 | fixed: 1 1; | 385 | fixed: 1 1; |
378 | } | 386 | } |
379 | description { state: "selected" 0.0; | 387 | desc { "selected"; |
380 | inherit: "default" 0.0; | 388 | inherit: "default"; |
381 | image.normal: "sym_close_light_selected.png"; | 389 | image.normal: "sym_close_light_selected.png"; |
382 | } | 390 | } |
383 | } | 391 | } |
384 | part { name: "max2"; mouse_events: 0; | 392 | image { "max2"; nomouse; |
385 | clip_to: "clip2"; | 393 | clip: "clip2"; |
386 | description { state: "default" 0.0; | 394 | desc { "default"; |
387 | image.normal: "sym_up_light_normal.png"; | 395 | image.normal: "sym_up_light_normal.png"; |
388 | rel1.to: "elm.event.maximize"; | 396 | rel1.to: "elm.event.maximize"; |
389 | rel2.to: "elm.event.maximize"; | 397 | rel2.to: "elm.event.maximize"; |
@@ -391,14 +399,14 @@ group { name: "elm/border/base/default"; | |||
391 | max: 15 15; | 399 | max: 15 15; |
392 | fixed: 1 1; | 400 | fixed: 1 1; |
393 | } | 401 | } |
394 | description { state: "selected" 0.0; | 402 | desc { "selected"; |
395 | inherit: "default" 0.0; | 403 | inherit: "default"; |
396 | image.normal: "sym_up_light_selected.png"; | 404 | image.normal: "sym_up_light_selected.png"; |
397 | } | 405 | } |
398 | } | 406 | } |
399 | part { name: "min2"; mouse_events: 0; | 407 | image { "min2"; nomouse; |
400 | clip_to: "clip2"; | 408 | clip: "clip2"; |
401 | description { state: "default" 0.0; | 409 | desc { "default"; |
402 | image.normal: "sym_down_light_normal.png"; | 410 | image.normal: "sym_down_light_normal.png"; |
403 | rel1.to: "elm.event.minimize"; | 411 | rel1.to: "elm.event.minimize"; |
404 | rel2.to: "elm.event.minimize"; | 412 | rel2.to: "elm.event.minimize"; |
@@ -406,255 +414,258 @@ group { name: "elm/border/base/default"; | |||
406 | max: 15 15; | 414 | max: 15 15; |
407 | fixed: 1 1; | 415 | fixed: 1 1; |
408 | } | 416 | } |
409 | description { state: "selected" 0.0; | 417 | desc { "selected"; |
410 | inherit: "default" 0.0; | 418 | inherit: "default"; |
411 | image.normal: "sym_down_light_selected.png"; | 419 | image.normal: "sym_down_light_selected.png"; |
412 | } | 420 | } |
413 | } | 421 | } |
414 | part { name: "elm.event.icon"; type: RECT; | 422 | rect { "elm.event.icon"; |
415 | description { state: "default" 0.0; | 423 | desc { "default"; |
416 | rel1.relative: 0.0 0.0; | 424 | rel1.relative: 0.0 0.0; |
417 | rel1.to: "top"; | 425 | rel1.to: "top_clip"; |
418 | rel2.relative: 0.0 1.0; | 426 | rel2.relative: 0.0 1.0; |
419 | rel2.to: "top"; | 427 | rel2.to: "top_clip"; |
420 | align: 0.0 0.5; | 428 | align: 0.0 0.5; |
421 | aspect: 1.0 1.0; aspect_preference: VERTICAL; | 429 | aspect: 1.0 1.0; aspect_preference: VERTICAL; |
422 | color: 0 0 0 0; | 430 | color: 0 0 0 0; |
423 | } | 431 | } |
424 | } | 432 | } |
425 | part { name: "elm.event.titlebar"; type: RECT; | 433 | rect { "elm.event.titlebar"; |
426 | description { state: "default" 0.0; | 434 | desc { "default"; |
427 | rel1.relative: 1.0 0.0; | 435 | rel1.relative: 1.0 0.0; |
428 | rel1.to_x: "elm.event.icon"; | 436 | rel1.to_x: "elm.event.icon"; |
429 | rel1.to_y: "top"; | 437 | rel1.to_y: "top_clip"; |
430 | rel2.relative: 0.0 1.0; | 438 | rel2.relative: 0.0 1.0; |
431 | rel2.offset: 0 -1; | 439 | rel2.offset: 0 -1; |
432 | rel2.to_x: "elm.event.minimize"; | 440 | rel2.to_x: "elm.event.minimize"; |
433 | rel2.to_y: "top"; | 441 | rel2.to_y: "top_clip"; |
434 | color: 0 0 0 0; | 442 | color: 0 0 0 0; |
435 | } | 443 | } |
436 | } | 444 | } |
437 | part { name: "elm.event.close"; type: RECT; | 445 | rect { "elm.event.close"; |
438 | description { state: "default" 0.0; | 446 | desc { "default"; |
447 | rel.to: "top_clip"; | ||
439 | rel1.relative: 1.0 0.0; | 448 | rel1.relative: 1.0 0.0; |
440 | rel1.to: "top"; | ||
441 | rel2.relative: 1.0 1.0; | 449 | rel2.relative: 1.0 1.0; |
442 | rel2.to: "top"; | ||
443 | align: 1.0 0.5; | 450 | align: 1.0 0.5; |
444 | aspect: 1.0 1.0; aspect_preference: VERTICAL; | 451 | aspect: 1.0 1.0; aspect_preference: VERTICAL; |
445 | color: 0 0 0 0; | 452 | color: 0 0 0 0; |
446 | } | 453 | } |
447 | } | 454 | } |
448 | part { name: "elm.event.maximize"; type: RECT; | 455 | rect { "elm.event.maximize"; |
449 | description { state: "default" 0.0; | 456 | desc { "default"; |
450 | rel1.relative: -0.25 0.0; | 457 | rel1.relative: -0.25 0.0; |
451 | rel1.offset: -1 0; | 458 | rel1.offset: -1 0; |
452 | rel1.to_x: "elm.event.close"; | 459 | rel1.to_x: "elm.event.close"; |
453 | rel1.to_y: "top"; | 460 | rel1.to_y: "top_clip"; |
454 | rel2.relative: -0.25 1.0; | 461 | rel2.relative: -0.25 1.0; |
455 | rel2.to_x: "elm.event.close"; | 462 | rel2.to_x: "elm.event.close"; |
456 | rel2.to_y: "top"; | 463 | rel2.to_y: "top_clip"; |
457 | align: 1.0 0.5; | 464 | align: 1.0 0.5; |
458 | aspect: 1.0 1.0; aspect_preference: VERTICAL; | 465 | aspect: 1.0 1.0; aspect_preference: VERTICAL; |
459 | color: 0 0 0 0; | 466 | color: 0 0 0 0; |
460 | } | 467 | } |
461 | } | 468 | } |
462 | part { name: "elm.event.minimize"; type: RECT; | 469 | rect { "elm.event.minimize"; |
463 | description { state: "default" 0.0; | 470 | desc { "default"; |
464 | rel1.relative: 0.0 0.0; | 471 | rel1.relative: 0.0 0.0; |
465 | rel1.offset: -1 0; | 472 | rel1.offset: -1 0; |
466 | rel1.to_x: "elm.event.maximize"; | 473 | rel1.to_x: "elm.event.maximize"; |
467 | rel1.to_y: "top"; | 474 | rel1.to_y: "top_clip"; |
468 | rel2.relative: 0.0 1.0; | 475 | rel2.relative: 0.0 1.0; |
469 | rel2.to_y: "top"; | 476 | rel2.to_y: "top_clip"; |
470 | rel2.to_x: "elm.event.maximize"; | 477 | rel2.to_x: "elm.event.maximize"; |
471 | align: 1.0 0.5; | 478 | align: 1.0 0.5; |
472 | aspect: 1.0 1.0; aspect_preference: VERTICAL; | 479 | aspect: 1.0 1.0; aspect_preference: VERTICAL; |
473 | color: 0 0 0 0; | 480 | color: 0 0 0 0; |
474 | } | 481 | } |
475 | } | 482 | } |
476 | part { name: "elm.event.resize.tl"; type: RECT; | 483 | rect { "elm.event.resize.tl"; |
477 | description { state: "default" 0.0; | 484 | clip: "top_clip"; |
478 | rel1.to: "top"; | 485 | desc { "default"; |
486 | rel.to: "top_clip"; | ||
479 | rel2.relative: 0.0 0.0; | 487 | rel2.relative: 0.0 0.0; |
480 | rel2.to: "top"; | ||
481 | min: 32 4; | 488 | min: 32 4; |
482 | align: 0.0 0.0; | 489 | align: 0.0 0.0; |
483 | color: 0 0 0 0; | 490 | color: 0 0 0 0; |
484 | fixed: 1 1; | 491 | fixed: 1 1; |
485 | } | 492 | } |
493 | desc { "hidden"; inherit: "default"; hid; } | ||
486 | } | 494 | } |
487 | part { name: "elm.event.resize.t"; type: RECT; | 495 | rect { "elm.event.resize.t"; |
488 | description { state: "default" 0.0; | 496 | clip: "top_clip"; |
497 | desc { "default"; | ||
489 | rel1.relative: 1.0 0.0; | 498 | rel1.relative: 1.0 0.0; |
490 | rel1.to_y: "top"; | 499 | rel1.to_y: "top_clip"; |
491 | rel1.to_x: "elm.event.resize.tl"; | 500 | rel1.to_x: "elm.event.resize.tl"; |
492 | rel2.relative: 0.0 0.0; | 501 | rel2.relative: 0.0 0.0; |
493 | rel2.to_x: "elm.event.resize.tr"; | 502 | rel2.to_x: "elm.event.resize.tr"; |
494 | rel2.to_y: "top"; | 503 | rel2.to_y: "top_clip"; |
495 | min: 0 4; | 504 | min: 0 4; |
496 | align: 0.5 0.0; | 505 | align: 0.5 0.0; |
497 | color: 0 0 0 0; | 506 | color: 0 0 0 0; |
498 | fixed: 1 1; | 507 | fixed: 1 1; |
499 | } | 508 | } |
509 | desc { "hidden"; inherit: "default"; hid; } | ||
500 | } | 510 | } |
501 | part { name: "elm.event.resize.tr"; type: RECT; | 511 | rect { "elm.event.resize.tr"; |
502 | description { state: "default" 0.0; | 512 | clip: "top_clip"; |
513 | desc { "default"; | ||
514 | rel.to: "top_clip"; | ||
503 | rel1.relative: 1.0 0.0; | 515 | rel1.relative: 1.0 0.0; |
504 | rel1.to: "top"; | ||
505 | rel2.relative: 1.0 0.0; | 516 | rel2.relative: 1.0 0.0; |
506 | rel2.to: "top"; | ||
507 | min: 32 4; | 517 | min: 32 4; |
508 | align: 1.0 0.0; | 518 | align: 1.0 0.0; |
509 | color: 0 0 0 0; | 519 | color: 0 0 0 0; |
510 | fixed: 1 1; | 520 | fixed: 1 1; |
511 | } | 521 | } |
522 | desc { "hidden"; inherit: "default"; hid; } | ||
512 | } | 523 | } |
513 | part { name: "bottom"; type: RECT; mouse_events: 0; | 524 | /* bottom border - spacer and clipper */ |
514 | description { state: "default" 0.0; | 525 | rect { "bottom_clip"; |
515 | color_class: "border_bottom"; | 526 | desc { "default"; |
516 | color: 64 64 64 255; | 527 | rel.to: "shadow_spacer"; |
517 | rel1.relative: 0.0 1.0; | 528 | rel1 { relative: 0.0 1.0; offset: 0 -5; } |
518 | rel1.offset: 0 -5; | ||
519 | rel1.to: "shadow_spacer"; | ||
520 | rel2.to: "shadow_spacer"; | ||
521 | min: 0 5; | 529 | min: 0 5; |
522 | fixed: 0 1; | 530 | fixed: 0 1; |
523 | } | 531 | } |
524 | description { state: "shaded" 0.0; | 532 | desc { "hidden"; |
525 | inherit: "default" 0.0; | 533 | inherit: "default"; |
534 | rel1 { relative: 0.0 1.0; offset: 0 0; } | ||
526 | min: 0 0; | 535 | min: 0 0; |
527 | visible: 0; | 536 | hid; |
528 | } | 537 | } |
529 | description { state: "max" 0.0; | 538 | } |
530 | inherit: "default" 0.0; | 539 | rect { "bottom"; |
531 | min: 0 0; | 540 | nomouse; |
532 | visible: 0; | 541 | desc { "default"; |
542 | color_class: "border_bottom"; | ||
543 | color: 64 64 64 255; /* FIXME */ | ||
544 | rel.to: "bottom_clip"; | ||
533 | } | 545 | } |
534 | } | 546 | } |
535 | part { name: "bevel2"; mouse_events: 0; | 547 | image { "bevel2"; nomouse; |
536 | description { state: "default" 0.0; | 548 | clip: "bottom_clip"; |
549 | desc { "default"; | ||
537 | image.normal: "bevel_dark_out.png"; | 550 | image.normal: "bevel_dark_out.png"; |
538 | image.border: 1 1 1 1; | 551 | image.border: 1 1 1 1; |
539 | image.middle: 0; | 552 | image.middle: 0; |
540 | rel1.to: "bottom"; | 553 | rel.to: "bottom_clip"; |
541 | rel2.to: "bottom"; | ||
542 | fill.smooth: 0; | 554 | fill.smooth: 0; |
543 | } | 555 | } |
544 | description { state: "shaded" 0.0; | ||
545 | inherit: "default" 0.0; | ||
546 | visible: 0; | ||
547 | } | ||
548 | description { state: "max" 0.0; | ||
549 | inherit: "default" 0.0; | ||
550 | visible: 0; | ||
551 | } | ||
552 | } | 556 | } |
553 | part { name: "elm.event.resize.bl"; type: RECT; | 557 | rect { "elm.event.resize.bl"; |
554 | description { state: "default" 0.0; | 558 | clip: "bottom_clip"; |
559 | desc { "default"; | ||
555 | rel1.relative: 0.0 1.0; | 560 | rel1.relative: 0.0 1.0; |
556 | rel1.to: "bottom"; | 561 | rel1.to: "bottom_clip"; |
557 | rel2.relative: 0.0 1.0; | 562 | rel2.relative: 0.0 1.0; |
558 | rel2.to: "bottom"; | 563 | rel2.to: "bottom_clip"; |
559 | min: 32 5; | 564 | min: 32 5; |
560 | align: 0.0 1.0; | 565 | align: 0.0 1.0; |
561 | color: 0 0 0 0; | 566 | color: 0 0 0 0; |
562 | fixed: 1 1; | 567 | fixed: 1 1; |
563 | } | 568 | } |
564 | description { state: "shaded" 0.0; | 569 | desc { "hidden"; inherit: "default"; hid; } |
565 | inherit: "default" 0.0; | ||
566 | min: 0 0; | ||
567 | visible: 0; | ||
568 | } | ||
569 | description { state: "max" 0.0; | ||
570 | inherit: "default" 0.0; | ||
571 | min: 0 0; | ||
572 | visible: 0; | ||
573 | } | ||
574 | } | 570 | } |
575 | part { name: "elm.event.resize.b"; type: RECT; | 571 | rect { "elm.event.resize.b"; |
576 | description { state: "default" 0.0; | 572 | clip: "bottom_clip"; |
573 | desc { "default"; | ||
577 | rel1.relative: 1.0 1.0; | 574 | rel1.relative: 1.0 1.0; |
578 | rel1.to_x: "elm.event.resize.tl"; | 575 | rel1.to_x: "elm.event.resize.tl"; |
579 | rel1.to_y: "bottom"; | 576 | rel1.to_y: "bottom_clip"; |
580 | rel1.offset: 0 -1; | 577 | rel1.offset: 0 -1; |
581 | rel2.relative: 0.0 1.0; | 578 | rel2.relative: 0.0 1.0; |
582 | rel2.to_x: "elm.event.resize.tr"; | 579 | rel2.to_x: "elm.event.resize.tr"; |
583 | rel2.to_y: "bottom"; | 580 | rel2.to_y: "bottom_clip"; |
584 | min: 0 5; | 581 | min: 0 5; |
585 | align: 0.5 1.0; | 582 | align: 0.5 1.0; |
586 | color: 0 0 0 0; | 583 | color: 0 0 0 0; |
587 | fixed: 0 1; | 584 | fixed: 0 1; |
588 | } | 585 | } |
589 | description { state: "shaded" 0.0; | 586 | desc { "hidden"; inherit: "default"; hid; } |
590 | inherit: "default" 0.0; | ||
591 | min: 0 0; | ||
592 | visible: 0; | ||
593 | } | ||
594 | description { state: "max" 0.0; | ||
595 | inherit: "default" 0.0; | ||
596 | min: 0 0; | ||
597 | visible: 0; | ||
598 | } | ||
599 | } | 587 | } |
600 | part { name: "elm.event.resize.br"; type: RECT; | 588 | rect { "elm.event.resize.br"; |
601 | description { state: "default" 0.0; | 589 | clip: "bottom_clip"; |
590 | desc { "default"; | ||
602 | rel1.relative: 1.0 1.0; | 591 | rel1.relative: 1.0 1.0; |
603 | rel1.to: "bottom"; | 592 | rel1.to: "bottom_clip"; |
604 | rel2.relative: 1.0 1.0; | 593 | rel2.relative: 1.0 1.0; |
605 | rel2.to: "bottom"; | 594 | rel2.to: "bottom_clip"; |
606 | min: 32 5; | 595 | min: 32 5; |
607 | align: 1.0 1.0; | 596 | align: 1.0 1.0; |
608 | color: 0 0 0 0; | 597 | color: 0 0 0 0; |
609 | fixed: 1 1; | 598 | fixed: 1 1; |
610 | } | 599 | } |
611 | description { state: "shaded" 0.0; | 600 | desc { "hidden"; inherit: "default"; hid; } |
612 | inherit: "default" 0.0; | ||
613 | min: 0 0; | ||
614 | visible: 0; | ||
615 | } | ||
616 | description { state: "max" 0.0; | ||
617 | inherit: "default" 0.0; | ||
618 | min: 0 0; | ||
619 | visible: 0; | ||
620 | } | ||
621 | } | 601 | } |
622 | part { name: "shine"; mouse_events: 0; | 602 | /* top title bar decoration */ |
623 | description { state: "default" 0.0; | 603 | image { "shine"; nomouse; |
604 | clip: "top_clip"; | ||
605 | desc { "default"; | ||
624 | image.normal: "shine.png"; | 606 | image.normal: "shine.png"; |
607 | rel.to: "top_clip"; | ||
625 | rel1.offset: 0 -2; | 608 | rel1.offset: 0 -2; |
626 | rel1.to: "top"; | ||
627 | rel2.relative: 1.0 0.0; | 609 | rel2.relative: 1.0 0.0; |
628 | rel2.offset: -1 2; | 610 | rel2.offset: -1 2; |
629 | rel2.to: "top"; | ||
630 | FIXED_SIZE(69, 5) | 611 | FIXED_SIZE(69, 5) |
631 | } | 612 | } |
632 | } | 613 | } |
633 | } | 614 | } |
615 | |||
616 | #define BORDERLESS 1 | ||
617 | #define MAXIMIZED 2 | ||
618 | #define SET_MODE(a) script { new m = get_int(border_mode); m |= (a); set_int(border_mode, m); eval_mode(m); } | ||
619 | #define UNSET_MODE(a) script { new m = get_int(border_mode); m &= ~(a); set_int(border_mode, m); eval_mode(m); } | ||
620 | |||
634 | programs { | 621 | programs { |
622 | script { | ||
623 | public border_mode; | ||
624 | public eval_mode(m) { | ||
625 | if (m & (BORDERLESS | MAXIMIZED)) { | ||
626 | set_state(PART:"bottom_clip", "hidden", 0.0); | ||
627 | } else { | ||
628 | set_state(PART:"bottom_clip", "default", 0.0); | ||
629 | } | ||
630 | } | ||
631 | } | ||
632 | program { | ||
633 | signal: "elm,state,borderless,on"; source: "elm"; | ||
634 | action: STATE_SET "hidden"; | ||
635 | targets: "top_clip" "bottom_clip"; | ||
636 | after: "borderless,on"; | ||
637 | } | ||
638 | program { "borderless,on"; SET_MODE(BORDERLESS); } | ||
639 | program { | ||
640 | signal: "elm,state,borderless,off"; source: "elm"; | ||
641 | action: STATE_SET "default"; | ||
642 | targets: "top_clip" "bottom_clip"; | ||
643 | after: "borderless,off"; | ||
644 | } | ||
645 | program { "borderless,off"; UNSET_MODE(BORDERLESS); } | ||
635 | program { | 646 | program { |
636 | signal: "elm,state,shadow,on"; source: "elm"; | 647 | signal: "elm,state,shadow,on"; source: "elm"; |
637 | action: STATE_SET "default" 0.0; | 648 | action: STATE_SET "default"; |
638 | target: "shadow_clip"; | 649 | targets: "shadow_spacer" "shadow"; |
639 | } | 650 | } |
640 | program { | 651 | program { |
641 | signal: "elm,state,shadow,off"; source: "elm"; | 652 | signal: "elm,state,shadow,off"; source: "elm"; |
642 | action: STATE_SET "hidden" 0.0; | 653 | action: STATE_SET "hidden"; |
643 | target: "shadow_clip"; | 654 | targets: "shadow_spacer" "shadow"; |
644 | } | 655 | } |
645 | program { | 656 | program { |
646 | signal: "elm,state,background,solid,on"; source: "elm"; | 657 | signal: "elm,state,background,solid,on"; source: "elm"; |
647 | action: STATE_SET "visible" 0.0; | 658 | action: STATE_SET "visible"; |
648 | target: "elm.rect.background"; | 659 | target: "elm.rect.background"; |
649 | } | 660 | } |
650 | program { | 661 | program { |
651 | signal: "elm,state,background,solid,off"; source: "elm"; | 662 | signal: "elm,state,background,solid,off"; source: "elm"; |
652 | action: STATE_SET "default" 0.0; | 663 | action: STATE_SET "default"; |
653 | target: "elm.rect.background"; | 664 | target: "elm.rect.background"; |
654 | } | 665 | } |
655 | program { | 666 | program { |
656 | signal: "elm,action,focus"; source: "elm"; | 667 | signal: "elm,action,focus"; source: "elm"; |
657 | action: STATE_SET "focused" 0.0; | 668 | action: STATE_SET "focused"; |
658 | target: "top"; | 669 | target: "top"; |
659 | target: "elm.text.title"; | 670 | target: "elm.text.title"; |
660 | target: "title2"; | 671 | target: "title2"; |
@@ -663,7 +674,7 @@ group { name: "elm/border/base/default"; | |||
663 | } | 674 | } |
664 | program { | 675 | program { |
665 | signal: "elm,action,unfocus"; source: "elm"; | 676 | signal: "elm,action,unfocus"; source: "elm"; |
666 | action: STATE_SET "default" 0.0; | 677 | action: STATE_SET "default"; |
667 | target: "top"; | 678 | target: "top"; |
668 | target: "elm.text.title"; | 679 | target: "elm.text.title"; |
669 | target: "title2"; | 680 | target: "title2"; |
@@ -672,48 +683,48 @@ group { name: "elm/border/base/default"; | |||
672 | } | 683 | } |
673 | program { | 684 | program { |
674 | signal: "elm,state,urgent"; source: "elm"; | 685 | signal: "elm,state,urgent"; source: "elm"; |
675 | action: STATE_SET "bounce1" 0.0; | 686 | action: STATE_SET "bounce1"; |
676 | target: "icon"; | 687 | target: "icon"; |
677 | after: "urg1"; | 688 | after: "urg1"; |
678 | } | 689 | } |
679 | program { name: "urg1"; | 690 | program { name: "urg1"; |
680 | action: STATE_SET "bounce2" 0.0; | 691 | action: STATE_SET "bounce2"; |
681 | transition: DECELERATE 0.4; | 692 | transition: DECELERATE 0.4; |
682 | target: "icon"; | 693 | target: "icon"; |
683 | after: "urg2"; | 694 | after: "urg2"; |
684 | } | 695 | } |
685 | program { name: "urg2"; | 696 | program { name: "urg2"; |
686 | action: STATE_SET "bounce1" 0.0; | 697 | action: STATE_SET "bounce1"; |
687 | transition: ACCELERATE 0.3; | 698 | transition: ACCELERATE 0.3; |
688 | target: "icon"; | 699 | target: "icon"; |
689 | after: "urg1"; | 700 | after: "urg1"; |
690 | } | 701 | } |
691 | program { | 702 | program { |
692 | signal: "elm,state,not_urgent"; source: "elm"; | 703 | signal: "elm,state,not_urgent"; source: "elm"; |
693 | action: STATE_SET "default" 0.0; | 704 | action: STATE_SET "default"; |
694 | target: "icon"; | 705 | target: "icon"; |
695 | } | 706 | } |
696 | program { name: "spin"; | 707 | program { name: "spin"; |
697 | signal: "elm,state,hung"; source: "elm"; | 708 | signal: "elm,state,hung"; source: "elm"; |
698 | action: STATE_SET "spin" 0.0; | 709 | action: STATE_SET "spin"; |
699 | transition: LINEAR 1.0; | 710 | transition: LINEAR 1.0; |
700 | target: "knob_spinner"; | 711 | target: "knob_spinner"; |
701 | after: "spin2"; | 712 | after: "spin2"; |
702 | } | 713 | } |
703 | program { name: "spin2"; | 714 | program { name: "spin2"; |
704 | action: STATE_SET "default" 0.0; | 715 | action: STATE_SET "default"; |
705 | target: "knob_spinner"; | 716 | target: "knob_spinner"; |
706 | after: "spin"; | 717 | after: "spin"; |
707 | } | 718 | } |
708 | program { | 719 | program { |
709 | signal: "elm,state,hung"; source: "elm"; | 720 | signal: "elm,state,hung"; source: "elm"; |
710 | action: STATE_SET "hung" 0.0; | 721 | action: STATE_SET "hung"; |
711 | transition: SINUSOIDAL 0.25; | 722 | transition: SINUSOIDAL 0.25; |
712 | target: "busy_clip"; | 723 | target: "busy_clip"; |
713 | } | 724 | } |
714 | program { | 725 | program { |
715 | signal: "elm,state,unhung"; source: "elm"; | 726 | signal: "elm,state,unhung"; source: "elm"; |
716 | action: STATE_SET "default" 0.0; | 727 | action: STATE_SET "default"; |
717 | transition: SINUSOIDAL 1.0; | 728 | transition: SINUSOIDAL 1.0; |
718 | target: "busy_clip"; | 729 | target: "busy_clip"; |
719 | after: "spin3"; | 730 | after: "spin3"; |
@@ -725,124 +736,82 @@ group { name: "elm/border/base/default"; | |||
725 | after: "spin4"; | 736 | after: "spin4"; |
726 | } | 737 | } |
727 | program { name: "spin4"; | 738 | program { name: "spin4"; |
728 | action: STATE_SET "default" 0.0; | 739 | action: STATE_SET "default"; |
729 | target: "knob_spinner"; | 740 | target: "knob_spinner"; |
730 | } | 741 | } |
742 | |||
743 | /* maximize & unmaximize */ | ||
731 | program { | 744 | program { |
732 | signal: "elm,state,shaded"; source: "elm"; | 745 | signal: "elm,state,maximize*"; source: "elm"; |
733 | action: STATE_SET "shaded" 0.0; | 746 | action: STATE_SET "max"; |
734 | target: "shadow"; | ||
735 | after: "shading"; | ||
736 | } | ||
737 | program { name: "shading"; | ||
738 | // signal: "elm,state,shading"; source: "elm"; | ||
739 | action: STATE_SET "shaded" 0.0; | ||
740 | target: "elm.swallow.client"; | ||
741 | target: "elm.spacer.opaque"; | 747 | target: "elm.spacer.opaque"; |
742 | target: "bottom"; | ||
743 | target: "bevel2"; | ||
744 | target: "elm.event.resize.bl"; | ||
745 | target: "elm.event.resize.b"; | ||
746 | target: "elm.event.resize.br"; | ||
747 | } | 748 | } |
748 | program { | 749 | program { |
749 | signal: "elm,state,unshading"; source: "elm"; | ||
750 | action: STATE_SET "default" 0.0; | ||
751 | target: "bottom"; | ||
752 | target: "elm.spacer.opaque"; | ||
753 | target: "bevel2"; | ||
754 | target: "elm.event.resize.bl"; | ||
755 | target: "elm.event.resize.b"; | ||
756 | target: "elm.event.resize.br"; | ||
757 | target: "client_clip"; | ||
758 | after: "unshading"; | ||
759 | } | ||
760 | program { name: "unshading"; | ||
761 | // signal: "elm,state,unshading"; source: "elm"; | ||
762 | action: STATE_SET "default" 0.0; | ||
763 | target: "elm.swallow.client"; | ||
764 | target: "shadow"; | ||
765 | target: "client_clip"; | ||
766 | } | ||
767 | // program { | ||
768 | // signal: "e,action,maximize"; source: "elm"; | ||
769 | // } | ||
770 | // program { | ||
771 | // signal: "e,action,unmaximize"; source: "elm"; | ||
772 | // } | ||
773 | // program { | ||
774 | // signal: "e,action,maximize,fullscreen"; source: "elm"; | ||
775 | // } | ||
776 | // program { | ||
777 | // signal: "e,action,unmaximize,fullscreen"; source: "elm"; | ||
778 | // } | ||
779 | program { | ||
780 | signal: "elm,state,maximize*"; source: "elm"; | 750 | signal: "elm,state,maximize*"; source: "elm"; |
781 | action: STATE_SET "max" 0.0; | 751 | action: STATE_SET "hidden"; |
782 | target: "elm.swallow.client"; | 752 | targets: "elm.event.resize.t" "elm.event.resize.tl" "elm.event.resize.tr" "bottom_clip"; |
783 | target: "elm.spacer.opaque"; | 753 | after: "maximized,on"; |
784 | target: "bottom"; | ||
785 | target: "bevel2"; | ||
786 | target: "shadow_spacer"; | ||
787 | target: "elm.event.resize.bl"; | ||
788 | target: "elm.event.resize.b"; | ||
789 | target: "elm.event.resize.br"; | ||
790 | } | 754 | } |
755 | program { "maximized,on"; SET_MODE(MAXIMIZED); } | ||
791 | program { | 756 | program { |
792 | signal: "elm,state,unmaximize*"; source: "elm"; | 757 | signal: "elm,state,unmaximize*"; source: "elm"; |
793 | action: STATE_SET "default" 0.0; | 758 | action: STATE_SET "default"; |
794 | target: "elm.swallow.client"; | ||
795 | target: "elm.spacer.opaque"; | 759 | target: "elm.spacer.opaque"; |
796 | target: "bottom"; | ||
797 | target: "bevel2"; | ||
798 | target: "shadow_spacer"; | ||
799 | target: "elm.event.resize.bl"; | ||
800 | target: "elm.event.resize.b"; | ||
801 | target: "elm.event.resize.br"; | ||
802 | } | 760 | } |
761 | program { | ||
762 | signal: "elm,state,unmaximize*"; source: "elm"; | ||
763 | action: STATE_SET "default"; | ||
764 | targets: "elm.event.resize.t" "elm.event.resize.tl" "elm.event.resize.tr" "bottom_clip"; | ||
765 | after: "maximized,off"; | ||
766 | } | ||
767 | program { "maximized,off"; UNSET_MODE(MAXIMIZED); } | ||
768 | |||
769 | /* application desktop menu */ | ||
803 | program { name: "show_menu"; | 770 | program { name: "show_menu"; |
804 | signal: "elm,action,show_menu"; source: "elm"; | 771 | signal: "elm,action,show_menu"; source: "elm"; |
805 | action: STATE_SET "visible" 0.0; | 772 | action: STATE_SET "visible"; |
806 | target: "elm.swallow.menu"; | 773 | target: "elm.swallow.menu"; |
807 | } | 774 | } |
808 | program { name: "hide_menu"; | 775 | program { name: "hide_menu"; |
809 | signal: "elm,action,hide"; source: "elm"; | 776 | signal: "elm,action,hide"; source: "elm"; |
810 | action: STATE_SET "default" 0.0; | 777 | action: STATE_SET "default"; |
811 | target: "elm.swallow.menu"; | 778 | target: "elm.swallow.menu"; |
812 | } | 779 | } |
780 | |||
781 | /* minimize, maximize & close buttons */ | ||
813 | program { | 782 | program { |
814 | signal: "mouse,down,*"; source: "elm.event.close"; | 783 | signal: "mouse,down,*"; source: "elm.event.close"; |
815 | action: STATE_SET "selected" 0.0; | 784 | action: STATE_SET "selected"; |
816 | target: "close1"; | 785 | target: "close1"; |
817 | target: "close2"; | 786 | target: "close2"; |
818 | } | 787 | } |
819 | program { | 788 | program { |
820 | signal: "mouse,up,*"; source: "elm.event.close"; | 789 | signal: "mouse,up,*"; source: "elm.event.close"; |
821 | action: STATE_SET "default" 0.0; | 790 | action: STATE_SET "default"; |
822 | target: "close1"; | 791 | target: "close1"; |
823 | target: "close2"; | 792 | target: "close2"; |
824 | } | 793 | } |
825 | program { | 794 | program { |
826 | signal: "mouse,down,*"; source: "elm.event.maximize"; | 795 | signal: "mouse,down,*"; source: "elm.event.maximize"; |
827 | action: STATE_SET "selected" 0.0; | 796 | action: STATE_SET "selected"; |
828 | target: "max1"; | 797 | target: "max1"; |
829 | target: "max2"; | 798 | target: "max2"; |
830 | } | 799 | } |
831 | program { | 800 | program { |
832 | signal: "mouse,up,*"; source: "elm.event.maximize"; | 801 | signal: "mouse,up,*"; source: "elm.event.maximize"; |
833 | action: STATE_SET "default" 0.0; | 802 | action: STATE_SET "default"; |
834 | target: "max1"; | 803 | target: "max1"; |
835 | target: "max2"; | 804 | target: "max2"; |
836 | } | 805 | } |
837 | program { | 806 | program { |
838 | signal: "mouse,down,*"; source: "elm.event.minimize"; | 807 | signal: "mouse,down,*"; source: "elm.event.minimize"; |
839 | action: STATE_SET "selected" 0.0; | 808 | action: STATE_SET "selected"; |
840 | target: "min1"; | 809 | target: "min1"; |
841 | target: "min2"; | 810 | target: "min2"; |
842 | } | 811 | } |
843 | program { | 812 | program { |
844 | signal: "mouse,up,*"; source: "elm.event.minimize"; | 813 | signal: "mouse,up,*"; source: "elm.event.minimize"; |
845 | action: STATE_SET "default" 0.0; | 814 | action: STATE_SET "default"; |
846 | target: "min1"; | 815 | target: "min1"; |
847 | target: "min2"; | 816 | target: "min2"; |
848 | } | 817 | } |
@@ -944,3 +913,9 @@ group { name: "elm/border/base/default"; | |||
944 | } | 913 | } |
945 | } | 914 | } |
946 | } | 915 | } |
916 | |||
917 | #undef BORDERLESS | ||
918 | #undef MAXIMIZED | ||
919 | #undef SET_MODE | ||
920 | #undef UNSET_MODE | ||
921 | |||