summaryrefslogtreecommitdiff
path: root/data/themes/edc/deskmirror.edc
blob: e79de0373500147a68c3e8c3700477d85753f3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
group { name: "e/deskmirror/frame/default";
   alias: "e/deskmirror/frame/dialog";
   script {
      public message(Msg_Type:type, id, ...) {
         /* set scale */
         new sc;

         sc = getarg(2);
         custom_state(PART:"title2", "default", 0.0);
         custom_state(PART:"top", "default", 0.0);
         custom_state(PART:"e.text.title", "default", 0.0);
         custom_state(PART:"bottom", "default", 0.0);
         set_state_val(PART:"title2", STATE_REL1, 0, 0.0 - sc);
         set_state_val(PART:"top", STATE_REL1, 0, 0.0 - sc);
         set_state_val(PART:"e.text.title", STATE_REL1, 0, 0.0 - sc);
         set_state_val(PART:"bottom", STATE_REL2, 1, sc);
         set_state(PART:"title2", "custom", 0.0);
         set_state(PART:"top", "custom", 0.0);
         set_state(PART:"e.text.title", "custom", 0.0);
         set_state(PART:"e.swallow.client", "custom", 0.0);
         set_state(PART:"bottom", "custom", 0.0);
      }
   }
   parts {
      part { name: "client_clip"; type: RECT;
         description { state: "default" 0.0;
            rel1.to_y: "e.swallow.client";
            rel2.to_y: "e.swallow.client";
         }
      }
      part { name: "e.swallow.client"; type: SWALLOW;
         clip_to: "client_clip";
         description { state: "default" 0.0;
            rel1.to_y: "top";
            rel1.relative: 0 1;
         }
      }
      part { name: "top";
         description { state: "default" 0.0;
            color_class: "border_top";
            image.normal: "vgrad_med_lighter.png";
            fill.smooth: 0;
            TILED_HORIZ(120)
            rel2.to_y: "title2";
            rel2.offset: -1 -4;
            min: 0 1;
         }
      }
      part { name: "bevel"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "bevel_out.png";
            image.border: 1 1 1 1;
            image.middle: 0;
            rel1.to: "top";
            rel2.to: "top";
            fill.smooth: 0;
         }
      }
      part { name: "e.text.title"; type: TEXT; mouse_events: 0;
         scale: 1;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            color_class: "border_title";
            rel1.offset: 1 3;
            rel2.relative: 1.0 0.0;
            rel2.offset: -2 3;
            align: 0.5 0.0;
            color: 21 21 21 255;
            color3: 255 255 255 25;
            text { font: "Sans:style=Bold";
               fit: 0 1;
               text_class: "title_bar";
               align: 0.5 0.0;
               min: 0 1;
            }
            fixed: 0 1;
         }
      }
      part { name: "title2"; type: TEXT; mouse_events: 0;
         scale: 1;
         effect: SOFT_SHADOW BOTTOM;
         description { state: "default" 0.0;
            color_class: "border_title_active";
            rel1.offset: 1 2;
            rel2.relative: 1.0 0.0;
            rel2.offset: -1 2;
            align: 0.5 0.0;
            color: 255 255 255 255;
            color3: 0 0 0 18;
            text { font: "Sans:style=Bold";
               fit: 0 1;
               text_source: "e.text.title";
               text_class: "title_bar";
               align: 0.5 0.0;
               min: 0 1;
            }
            visible: 0;
            fixed: 0 1;
         }
      }
      part { name: "bottom"; type: RECT; mouse_events: 0;
         description { state: "default" 0.0;
            color_class: "border_bottom";
            rel1.to_y: "e.swallow.client";
            rel1.relative: 0.0 1.0;
            rel1.offset: 0 -3;
            min: 0 1;
            color: 64 64 64 255;
            fixed: 0 1;
         }
      }
      part { name: "bevel2"; mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "bevel_dark_out.png";
            image.border: 1 1 1 1;
            image.middle: 0;
            rel1.to: "bottom";
            rel2.to: "bottom";
            fill.smooth: 0;
         }
      }
      part { name: "shadow";
         mouse_events: 0;
         description { state: "default" 0.0;
            image.normal: "win_shadow.png";
            image.border: 14 14 14 14;
            image.middle: 0;
            rel1.to: "top";
            rel1.offset: -7 -3;
            rel2.to: "bottom";
            rel2.offset: 6 11;
            fill.smooth: 0;
         }
      }
   }
   programs {
      program { name: "shon";
         signal: "e,state,shadow,on"; source: "e";
         script {
            custom_state(PART:"shadow", "default", 0.0);
            set_state_val(PART:"shadow", STATE_VISIBLE, 1);
            set_state(PART:"shadow", "custom", 0.0);
         }
      }
      program { name: "shoff";
         signal: "e,state,shadow,off"; source: "e";
         script {
            custom_state(PART:"shadow", "default", 0.0);
            set_state_val(PART:"shadow", STATE_VISIBLE, 0);
            set_state(PART:"shadow", "custom", 0.0);
         }
      }
      program {
         name: "focus";
         signal: "e,state,focused"; source: "e";
         script {
            custom_state(PART:"top", "default", 0.0);
            set_state_val(PART:"top", STATE_IMAGE, get_image_id("vgrad_med_dark.png"));
            set_state(PART:"top", "custom", 0.0);
            custom_state(PART:"title2", "default", 0.0);
            set_state_val(PART:"title2", STATE_VISIBLE, 1);
            set_state(PART:"title2", "custom", 0.0);
            custom_state(PART:"e.text.title", "default", 0.0);
            set_state_val(PART:"e.text.title", STATE_VISIBLE, 0);
            set_state(PART:"e.text.title", "custom", 0.0);
         }
      }
      program {
         name: "unfocus";
         signal: "e,state,unfocused"; source: "e";
         script {
            custom_state(PART:"top", "default", 0.0);
            set_state_val(PART:"top", STATE_IMAGE, get_image_id("vgrad_med_lighter.png"));
            set_state(PART:"top", "custom", 0.0);
            custom_state(PART:"title2", "default", 0.0);
            set_state_val(PART:"title2", STATE_VISIBLE, 0);
            set_state(PART:"title2", "custom", 0.0);
            custom_state(PART:"e.text.title", "default", 0.0);
            set_state_val(PART:"e.text.title", STATE_VISIBLE, 1);
            set_state(PART:"e.text.title", "custom", 0.0);
         }
      }
      program {
         name: "shade";
         signal: "e,state,shaded"; source: "e";
         script {
            custom_state(PART:"e.swallow.client", "default", 0.0);
            set_state_val(PART:"e.swallow.client", STATE_MAX, 1, 1);
            set_state_val(PART:"e.swallow.client", STATE_VISIBLE, 0);
            set_state(PART:"e.swallow.client", "custom", 0.0);
            custom_state(PART:"client_clip", "default", 0.0);
            set_state_val(PART:"client_clip", STATE_REL1_TO, get_part_id("top"), get_part_id("top"));
            set_state_val(PART:"client_clip", STATE_REL2_TO, get_part_id("top"), get_part_id("top"));
            set_state(PART:"client_clip", "custom", 0.0);
            custom_state(PART:"bottom", "default", 0.0);
            set_state_val(PART:"bottom", STATE_VISIBLE, 0);
            set_state_val(PART:"bottom", STATE_MIN, 0, 0);
            set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, 0);
            set_state(PART:"bottom", "custom", 0.0);
            custom_state(PART:"bevel2", "default", 0.0);
            set_state_val(PART:"bevel2", STATE_VISIBLE, 0);
            set_state_val(PART:"bevel2", STATE_MIN, 0, 0);
            set_state(PART:"bevel2", "custom", 0.0);
            custom_state(PART:"shadow", "default", 0.0);
            set_state_val(PART:"shadow", STATE_REL2_TO, get_part_id("top"), get_part_id("top"));
            set_state(PART:"shadow", "custom", 0.0);
         }
      }
      program {
         signal: "e,state,maximize*"; source: "e";
         script {
            custom_state(PART:"bottom", "default", 0.0);
            set_state_val(PART:"bottom", STATE_VISIBLE, 0);
            set_state_val(PART:"bottom", STATE_MIN, 0, 0);
            set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, 0);
            set_state(PART:"bottom", "custom", 0.0);
            custom_state(PART:"bevel2", "default", 0.0);
            set_state_val(PART:"bevel2", STATE_VISIBLE, 0);
            set_state_val(PART:"bevel2", STATE_MIN, 0, 0);
            set_state(PART:"bevel2", "custom", 0.0);
         }
      }
      program {
         signal: "e,state,unmaximize*"; source: "e";
         after: "unshade";
      }
      program {
         signal: "e,state,unshaded"; source: "e";
         after: "unshade";
      }
      program {
         name: "unshade";
         signal: "e,state,unshading"; source: "e";
         script {
            custom_state(PART:"e.swallow.client", "default", 0.0);
            set_state_val(PART:"e.swallow.client", STATE_MAX, 99999, 99999);
            set_state_val(PART:"e.swallow.client", STATE_VISIBLE, 1);
            set_state(PART:"e.swallow.client", "custom", 0.0);
            custom_state(PART:"client_clip", "default", 0.0);
            set_state_val(PART:"client_clip", STATE_REL1_TO, get_part_id("e.swallow.client"), get_part_id("e.swallow.client"));
            set_state_val(PART:"client_clip", STATE_REL2_TO, get_part_id("e.swallow.client"), get_part_id("e.swallow.client"));
            set_state(PART:"client_clip", "custom", 0.0);
            custom_state(PART:"bottom", "default", 0.0);
            set_state_val(PART:"bottom", STATE_VISIBLE, 1);
            set_state_val(PART:"bottom", STATE_MIN, 0, 1);
            set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, -3);
            set_state(PART:"bottom", "custom", 0.0);
            custom_state(PART:"bevel2", "default", 0.0);
            set_state_val(PART:"bevel2", STATE_VISIBLE, 1);
            set_state_val(PART:"bevel2", STATE_MIN, 0, 1);
            set_state(PART:"bevel2", "custom", 0.0);
            custom_state(PART:"shadow", "default", 0.0);
            set_state_val(PART:"shadow", STATE_REL2_TO, get_part_id("bottom"), get_part_id("bottom"));
            set_state(PART:"shadow", "custom", 0.0);
         }
      }
      program {
         signal: "e,action,maximize*"; source: "e";
         action: STATE_SET "max" 0.0;
         target: "e.swallow.client";
         target: "bottom";
         target: "bevel2";
      }
      program {
         signal: "e,action,unmaximize*"; source: "e";
         action: STATE_SET "default" 0.0;
         target: "e.swallow.client";
         target: "bottom";
         target: "bevel2";
      }
   }
}

group { name: "e/deskmirror/frame/noresize";
   inherit: "e/deskmirror/frame/default";
   parts {
      part { name: "e.swallow.client"; type: SWALLOW;
         description { state: "default" 0.0;
            rel2.relative: 1.0 1.0;
         }
      }
      part { name: "bottom"; type: RECT;
         description { state: "default" 0.0;
            color_class: "border_bottom";
            rel1.relative: 0.0 1.0;
            rel1.offset: 0 -1;
            rel2.relative: 1.0 1.0;
            min: 0 0;
            fixed: 0 1;
            visible: 0;
         }
      }
      part { name: "bevel2";
         description { state: "default" 0.0;
            visible: 0;
         }
      }
   }
}

group { name: "e/deskmirror/frame/noresize_dialog";
   inherit: "e/deskmirror/frame/default";
   parts {
      part { name: "e.swallow.client"; type: SWALLOW;
         description { state: "default" 0.0;
            rel2.relative: 1.0 1.0;
         }
      }
      part { name: "bottom"; type: RECT;
         description { state: "default" 0.0;
            color_class: "border_bottom";
            rel1.relative: 0.0 1.0;
            rel1.offset: 0 -1;
            rel2.relative: 1.0 1.0;
            min: 0 0;
            fixed: 0 1;
            visible: 0;
         }
      }
      part { name: "bevel2";
         description { state: "default" 0.0;
            visible: 0;
         }
      }
   }
}

group { name: "e/deskmirror/frame/pixel";
   parts {
      part { name: "client_clip"; type: RECT;
         description { state: "default" 0.0;
            rel1.to_y: "e.swallow.client";
            rel2.to_y: "e.swallow.client";
         }
      }
      part { name: "e.swallow.client"; type: SWALLOW;
         clip_to: "client_clip";
         description { state: "default" 0.0;
            rel1.offset: 1 1;
            rel2.offset: -2 -2;
         }
      }
      part { name: "top"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 255;
            align: 0.0 0.0;
            max: 99999 1;
         }
         description { state: "focused" 0.0;
            inherit: "default" 0.0;
            color: 51 153 255 255;
         }
      }
      part { name: "bottom"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 255;
            align: 0.0 1.0;
            max: 99999 1;
         }
         description { state: "focused" 0.0;
            inherit: "default" 0.0;
            color: 51 153 255 255;
         }
      }
      part { name: "left"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 255;
            align: 0.0 0.0;
            max: 1 99999;
         }
         description { state: "focused" 0.0;
            inherit: "default" 0.0;
            color: 51 153 255 255;
         }
      }
      part { name: "right"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 255;
            align: 1.0 0.0;
            max: 1 99999;
         }
         description { state: "focused" 0.0;
            inherit: "default" 0.0;
            color: 51 153 255 255;
         }
      }
   }
   programs {
      program {
         signal: "e,state,focused"; source: "e";
         action: STATE_SET "focused" 0.0;
         target: "top";
         target: "bottom";
         target: "left";
         target: "right";
      }
      program {
         signal: "e,state,unfocused"; source: "e";
         action: STATE_SET "default" 0.0;
         target: "top";
         target: "bottom";
         target: "left";
         target: "right";
      }
   }
}