summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-03 21:15:23 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-03 21:15:23 +0100
commite199e6e05552180e124f19d6172075fbb2bf6971 (patch)
treed0b1e6848b7f05fdcd236d4f58c9d69f469512d1 /data/elementary/themes
parentd60cb4a2ea2ea451f8cb28b9c61b7f584211ccd4 (diff)
TH - tasks
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/tasks.edc89
1 files changed, 58 insertions, 31 deletions
diff --git a/data/elementary/themes/edc/tasks.edc b/data/elementary/themes/edc/tasks.edc
index daef1b5b10..777f2049b5 100644
--- a/data/elementary/themes/edc/tasks.edc
+++ b/data/elementary/themes/edc/tasks.edc
@@ -100,6 +100,7 @@ group { name:"e/modules/tasks/item";
100 rel1.offset: 4 4; 100 rel1.offset: 4 4;
101 rel2.offset: -5 -5; 101 rel2.offset: -5 -5;
102 color: 160 160 160 255; 102 color: 160 160 160 255;
103 offscale;
103 text { font: FN; size: 10; 104 text { font: FN; size: 10;
104 min: 0 1; 105 min: 0 1;
105 align: 0.0 0.5; 106 align: 0.0 0.5;
@@ -134,6 +135,7 @@ group { name:"e/modules/tasks/item";
134 rel1.offset: 4 4; 135 rel1.offset: 4 4;
135 rel2.offset: -5 -5; 136 rel2.offset: -5 -5;
136 color: 255 255 255 255; 137 color: 255 255 255 255;
138 offscale;
137 text { font: FNBD; size: 10; 139 text { font: FNBD; size: 10;
138 min: 0 1; 140 min: 0 1;
139 align: 0.0 0.5; 141 align: 0.0 0.5;
@@ -169,6 +171,7 @@ group { name:"e/modules/tasks/item";
169 rel1.offset: 4 4; 171 rel1.offset: 4 4;
170 rel2.offset: -5 -5; 172 rel2.offset: -5 -5;
171 color: 128 128 128 255; 173 color: 128 128 128 255;
174 offscale;
172 text { font: FN; size: 10; 175 text { font: FN; size: 10;
173 min: 0 1; 176 min: 0 1;
174 align: 0.0 0.5; 177 align: 0.0 0.5;
@@ -182,12 +185,14 @@ group { name:"e/modules/tasks/item";
182 } 185 }
183 } 186 }
184 part { name: "icon"; type: SPACER; 187 part { name: "icon"; type: SPACER;
188 scale: 1;
185 description { state: "default" 0.0; 189 description { state: "default" 0.0;
186 aspect: 1.0 1.0; aspect_preference: VERTICAL; 190 aspect: 1.0 1.0; aspect_preference: VERTICAL;
187 align: 0.0 0.5; 191 align: 0.0 0.5;
188 rel1.offset: 4 4; 192 rel1.offset: 4 4;
189 rel2.relative: 0.0 1.0; 193 rel2.relative: 0.0 1.0;
190 rel2.offset: 4 -5; 194 rel2.offset: 4 -5;
195 offscale;
191 } 196 }
192 description { state: "icon_only" 0.0; 197 description { state: "icon_only" 0.0;
193 inherit: "default" 0.0; 198 inherit: "default" 0.0;
@@ -208,8 +213,7 @@ group { name:"e/modules/tasks/item";
208 } 213 }
209 part { name: "icon2"; type: SPACER; 214 part { name: "icon2"; type: SPACER;
210 description { state: "default" 0.0; 215 description { state: "default" 0.0;
211 rel1.to: "icon"; 216 rel.to: "icon";
212 rel2.to: "icon";
213 fixed: 1 1; 217 fixed: 1 1;
214 } 218 }
215 description { state: "focused" 0.0; 219 description { state: "focused" 0.0;
@@ -222,6 +226,7 @@ group { name:"e/modules/tasks/item";
222 } 226 }
223 } 227 }
224 part { name: "bar"; type: RECT; mouse_events: 0; 228 part { name: "bar"; type: RECT; mouse_events: 0;
229 scale: 1;
225 clip_to: "clip"; 230 clip_to: "clip";
226 description { state: "default" 0.0; 231 description { state: "default" 0.0;
227 color: 51 153 255 255; 232 color: 51 153 255 255;
@@ -232,6 +237,7 @@ group { name:"e/modules/tasks/item";
232 fixed: 0 1; 237 fixed: 0 1;
233 visible: 0; 238 visible: 0;
234 min: 0 0; 239 min: 0 0;
240 offscale;
235 } 241 }
236 description { state: "focused" 0.0; 242 description { state: "focused" 0.0;
237 inherit: "default" 0.0; 243 inherit: "default" 0.0;
@@ -243,8 +249,7 @@ group { name:"e/modules/tasks/item";
243 clip_to: "icon_clip"; 249 clip_to: "icon_clip";
244 description { state: "default" 0.0; 250 description { state: "default" 0.0;
245 aspect: 1.0 1.0; aspect_preference: VERTICAL; 251 aspect: 1.0 1.0; aspect_preference: VERTICAL;
246 rel1.to: "icon2"; 252 rel.to: "icon2";
247 rel2.to: "icon2";
248 } 253 }
249 } 254 }
250 part { name: "event"; type: RECT; 255 part { name: "event"; type: RECT;
@@ -424,16 +429,32 @@ group { name:"e/modules/tasks/item";
424 429
425group { name:"e/modules/tasks/item_vert"; 430group { name:"e/modules/tasks/item_vert";
426 inherit: "e/modules/tasks/item"; 431 inherit: "e/modules/tasks/item";
432 script {
433 public focused;
434 public iconic;
435 public eval_mode() {
436 new is_focused = get_int(focused);
437 new is_iconic = get_int(iconic);
438 if (is_iconic) { emit("state,iconic", "int"); }
439 else if (is_focused) { emit("state,focused", "int"); }
440 else { emit("state,default", "int"); }
441 }
442 public set_focused(m) {
443 set_int(focused, m);
444 eval_mode();
445 }
446 public set_iconic(m) {
447 set_int(iconic, m);
448 eval_mode();
449 }
450 }
427 parts { 451 parts {
428 part { name: "e.text.label"; 452 part { name: "e.text.label";
429 description { state: "default" 0.0; 453 description { state: "default" 0.0;
430 rel1.to_y: "icon"; 454 rel.to: "icon";
431 rel1.to_x: ""; 455 rel1.offset: 0 0;
432 rel1.relative: 0.0 1.0; 456 rel2.offset: -1 -1;
433 text { 457 visible: 0;
434 min: 0 1;
435 align: 0.5 0.5;
436 }
437 } 458 }
438 description { state: "clicked" 0.0; 459 description { state: "clicked" 0.0;
439 inherit: "default" 0.0; 460 inherit: "default" 0.0;
@@ -442,13 +463,10 @@ group { name:"e/modules/tasks/item_vert";
442 } 463 }
443 part { name: "label_focused"; 464 part { name: "label_focused";
444 description { state: "default" 0.0; 465 description { state: "default" 0.0;
445 rel1.to_y: "icon"; 466 rel.to: "icon";
446 rel1.to_x: ""; 467 rel1.offset: 0 0;
447 rel1.relative: 0.0 1.0; 468 rel2.offset: -1 -1;
448 text { 469 visible: 0;
449 min: 0 1;
450 align: 0.5 0.5;
451 }
452 } 470 }
453 description { state: "clicked" 0.0; 471 description { state: "clicked" 0.0;
454 inherit: "default" 0.0; 472 inherit: "default" 0.0;
@@ -457,13 +475,10 @@ group { name:"e/modules/tasks/item_vert";
457 } 475 }
458 part { name: "label_iconic"; 476 part { name: "label_iconic";
459 description { state: "default" 0.0; 477 description { state: "default" 0.0;
460 rel1.to_y: "icon"; 478 rel.to: "icon";
461 rel1.to_x: ""; 479 rel1.offset: 0 0;
462 rel1.relative: 0.0 1.0; 480 rel2.offset: -1 -1;
463 text { 481 visible: 0;
464 min: 0 1;
465 align: 0.5 0.5;
466 }
467 } 482 }
468 description { state: "clicked" 0.0; 483 description { state: "clicked" 0.0;
469 inherit: "default" 0.0; 484 inherit: "default" 0.0;
@@ -472,27 +487,39 @@ group { name:"e/modules/tasks/item_vert";
472 } 487 }
473 part { name: "icon"; 488 part { name: "icon";
474 description { state: "default" 0.0; 489 description { state: "default" 0.0;
475 aspect_preference: HORIZONTAL; 490 aspect_preference: BOTH;
476 align: 0.5 0.0; 491 align: 0.5 0.5;
477 rel2.relative: 1.0 0.0; 492 rel2.relative: 1.0 1.0;
478 rel2.offset: -5 4; 493 rel2.offset: -5 -5;
494 }
495 description { state: "icon_only" 0.0;
496 inherit: "default" 0.0;
497 align: 0.5 0.5;
498 rel1.offset: 4 4;
499 rel2.relative: 1.0 1.0;
500 rel2.offset: -5 -5;
479 } 501 }
480 description { state: "text_only" 0.0; 502 description { state: "text_only" 0.0;
481 rel2.relative: 1.0 0.0; 503 rel2.relative: 1.0 0.0;
482 max: 0 0; 504 max: 0 0;
483 } 505 }
484 } 506 }
485 part { name: "bar"; 507 part { name: "bar"; type: RECT;
486 description { state: "default" 0.0; 508 description { state: "default" 0.0;
487 align: 1.0 0.5; 509 align: 1.0 0.5;
488 rel1.offset: -1 0;
489 rel1.relative: 1.0 0.0; 510 rel1.relative: 1.0 0.0;
490 rel2.offset: -1 -1; 511 rel2.offset: -1 -1;
491 fixed: 1 0; 512 fixed: 1 0;
492 } 513 }
493 description { state: "focused" 0.0; 514 description { state: "focused" 0.0;
494 inherit: "default" 0.0; 515 inherit: "default" 0.0;
516 align: 1.0 0.5;
517 rel1.relative: 1.0 0.0;
518 rel1.offset: -1 0;
519 rel2.offset: -1 -1;
520 fixed: 1 0;
495 min: 5 0; 521 min: 5 0;
522 visible: 1;
496 } 523 }
497 } 524 }
498 } 525 }