summaryrefslogtreecommitdiff
path: root/data/elementary/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-10 23:09:52 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-12-10 23:09:52 +0000
commit008b8da792282dc865a96a01aeb3818e538558b3 (patch)
tree70cf6906cc517cc0c85df8a609f263cfc9f6ad97 /data/elementary/themes
parent67fce62aa118cbbaf88321430a864bd2a12d66dd (diff)
TH - diskselector
Diffstat (limited to 'data/elementary/themes')
-rw-r--r--data/elementary/themes/edc/elm/diskselector.edc110
1 files changed, 37 insertions, 73 deletions
diff --git a/data/elementary/themes/edc/elm/diskselector.edc b/data/elementary/themes/edc/elm/diskselector.edc
index a9003e7028..743460dc9a 100644
--- a/data/elementary/themes/edc/elm/diskselector.edc
+++ b/data/elementary/themes/edc/elm/diskselector.edc
@@ -1,57 +1,34 @@
1group { name: "elm/diskselector/base/default"; 1group { name: "elm/diskselector/base/default";
2 images {
3 image: "bar_shine.png" COMP;
4 }
5
6 parts { 2 parts {
7 part { name: "bg"; 3 part { name: "bg"; type: RECT;
8 type: RECT;
9 mouse_events: 0; 4 mouse_events: 0;
10 description { state: "default" 0.0; 5 description { state: "default" 0.0;
11 color: 25 25 25 255; 6 color: 48 48 48 255;
12 } 7 }
13 } 8 }
14 part { name: "shine_center"; 9 part { name: "clipper"; type: RECT;
15 mouse_events: 0;
16 description { state: "default" 0.0; 10 description { state: "default" 0.0;
17 rel1.to: "bg"; 11 rel.to: "bg";
18 rel2.to: "bg";
19 image.normal: "bar_shine.png";
20 color: 255 255 255 127;
21 } 12 }
22 } 13 }
23 part { name: "clipper"; 14 part { name: "elm.swallow.content"; type: SWALLOW;
24 type: RECT;
25 description { state: "default" 0.0;
26 rel1.to: "bg";
27 rel2.to: "bg";
28 rel1.offset: 2 2;
29 rel2.offset: -3 -3;
30 }
31 }
32 part { name: "elm.swallow.content";
33 clip_to: "clipper"; 15 clip_to: "clipper";
34 type: SWALLOW;
35 description { state: "default" 0.0; 16 description { state: "default" 0.0;
36 rel1.to: "bg"; 17 rel.to: "bg";
37 rel2.to: "bg";
38 } 18 }
39 } 19 }
40 } 20 }
41} 21}
42 22
43group { name: "elm/diskselector/item/default"; 23group { name: "elm/diskselector/item/default";
44
45 data { 24 data {
46 item: "len_threshold" "14"; 25 item: "len_threshold" "14";
47 item: "display_item_num" "3"; 26 item: "display_item_num" "3";
48 item: "min_height" "-1"; 27 item: "min_height" "-1";
49 item: "min_width" "-1"; 28 item: "min_width" "-1";
50 } 29 }
51
52 parts { 30 parts {
53 part { name: "elm.swallow.icon"; 31 part { name: "elm.swallow.icon"; type: SWALLOW;
54 type: SWALLOW;
55 scale: 1; 32 scale: 1;
56 description { state: "default" 0.0; 33 description { state: "default" 0.0;
57 fixed: 1 0; 34 fixed: 1 0;
@@ -102,16 +79,16 @@ group { name: "elm/diskselector/item/default";
102 aspect: 1.0 1.0; 79 aspect: 1.0 1.0;
103 } 80 }
104 } 81 }
105 part { name: "elm.text"; 82 part { name: "elm.text"; type: TEXT;
106 type: TEXT;
107 scale: 1; 83 scale: 1;
108 description { state: "default" 0.0; 84 description { state: "default" 0.0;
85 color: 160 160 160 255;
109 rel1.relative: 1 0.0; 86 rel1.relative: 1 0.0;
110 rel1.to_x: "elm.swallow.icon"; 87 rel1.to_x: "elm.swallow.icon";
111 rel2.relative: 1.0 1.0; 88 rel2.relative: 1.0 1.0;
112 visible: 0; 89 visible: 0;
113 text { 90 text {
114 font: "Sans,Edje-Vera"; 91 font: "Sans";
115 size: 10; 92 size: 10;
116 align: 0.5 0.5; 93 align: 0.5 0.5;
117 min: 0 1; 94 min: 0 1;
@@ -128,14 +105,14 @@ group { name: "elm/diskselector/item/default";
128 } 105 }
129 description { state: "left_side" 0.0; 106 description { state: "left_side" 0.0;
130 inherit: "default" 0.0; 107 inherit: "default" 0.0;
131 color: FN_COL_GREY_152; 108 color: 80 80 80 255;
132 text.size: 8; 109 text.size: 8;
133 visible: 1; 110 visible: 1;
134 text.align: 0.2 0.5; 111 text.align: 0.2 0.5;
135 } 112 }
136 description { state: "right_side" 0.0; 113 description { state: "right_side" 0.0;
137 inherit: "default" 0.0; 114 inherit: "default" 0.0;
138 color: FN_COL_GREY_152; 115 color: 80 80 80 255;
139 visible: 1; 116 visible: 1;
140 text.size: 8; 117 text.size: 8;
141 text.align: 0.8 0.5; 118 text.align: 0.8 0.5;
@@ -158,13 +135,11 @@ group { name: "elm/diskselector/item/default";
158 rel2.relative: 1 1; 135 rel2.relative: 1 1;
159 } 136 }
160 } 137 }
161 part { name: "over1"; 138 part { name: "over1"; type: RECT;
162 type: RECT;
163 mouse_events: 1; 139 mouse_events: 1;
164 repeat_events: 1; 140 repeat_events: 1;
165 ignore_flags: ON_HOLD; 141 ignore_flags: ON_HOLD;
166 description { 142 description { state: "default" 0.0;
167 state: "default" 0.0;
168 color: 0 0 0 0; 143 color: 0 0 0 0;
169 } 144 }
170 } 145 }
@@ -299,8 +274,7 @@ group { name: "elm/diskselector/item/datetime/default";
299 text.align: 0.8 0.5; 274 text.align: 0.8 0.5;
300 } 275 }
301 } 276 }
302 part { name: "over1"; 277 part { name: "over1"; type: RECT;
303 type: RECT;
304 mouse_events: 1; 278 mouse_events: 1;
305 repeat_events: 1; 279 repeat_events: 1;
306 ignore_flags: ON_HOLD; 280 ignore_flags: ON_HOLD;
@@ -319,70 +293,60 @@ group { name: "elm/diskselector/item/datetime/default";
319 new pos, is_sel; 293 new pos, is_sel;
320 pos = get_int(field_pos) 294 pos = get_int(field_pos)
321 is_sel = get_int(field_selected); 295 is_sel = get_int(field_selected);
322 if (is_sel == 1) 296 if (is_sel == 1) {
323 { 297 if (pos == 0)
324 if (pos == 0) 298 set_state(PART:"elm.text", "center_sel", 0.0);
325 set_state(PART:"elm.text", "center_sel", 0.0); 299 else if (pos == 1)
326 else if (pos == 1) 300 set_state(PART:"elm.text", "left_side_sel", 0.0);
327 set_state(PART:"elm.text", "left_side_sel", 0.0); 301 else if (pos == 2)
328 else if (pos == 2) 302 set_state(PART:"elm.text", "right_side_sel", 0.0);
329 set_state(PART:"elm.text", "right_side_sel", 0.0); 303 } else if (is_sel == 0) {
330 } 304 if (pos == 0)
331 else if (is_sel == 0) 305 set_state(PART:"elm.text", "default", 0.0);
332 { 306 else if (pos == 1)
333 if (pos == 0) 307 set_state(PART:"elm.text", "left_side", 0.0);
334 set_state(PART:"elm.text", "default", 0.0); 308 else if (pos == 2)
335 else if (pos == 1) 309 set_state(PART:"elm.text", "right_side", 0.0);
336 set_state(PART:"elm.text", "left_side", 0.0); 310 }
337 else if (pos == 2)
338 set_state(PART:"elm.text", "right_side", 0.0);
339 }
340 } 311 }
341 } 312 }
342 program { name: "selected_text"; 313 program { signal: "elm,state,selected"; source: "elm";
343 signal: "elm,state,selected"; source: "elm";
344 script { 314 script {
345 set_int(field_selected, 1); 315 set_int(field_selected, 1);
346 update_state(); 316 update_state();
347 } 317 }
348 } 318 }
349 program { name: "default_text"; 319 program { signal: "elm,state,default"; source: "elm";
350 signal: "elm,state,default"; source: "elm";
351 script { 320 script {
352 set_int(field_selected, 0); 321 set_int(field_selected, 0);
353 update_state(); 322 update_state();
354 } 323 }
355 } 324 }
356 program { name: "center_text"; 325 program { signal: "elm,state,center"; source: "elm";
357 signal: "elm,state,center"; source: "elm";
358 script { 326 script {
359 set_int(field_pos, 0); 327 set_int(field_pos, 0);
360 update_state(); 328 update_state();
361 } 329 }
362 } 330 }
363 program { name: "center_small_text"; 331 program { signal: "elm,state,center_small"; source: "elm";
364 signal: "elm,state,center_small"; source: "elm";
365 script { 332 script {
366 set_int(field_pos, 0); 333 set_int(field_pos, 0);
367 update_state(); 334 update_state();
368 } 335 }
369 } 336 }
370 program { name: "l_side_text"; 337 program { signal: "elm,state,left_side"; source: "elm";
371 signal: "elm,state,left_side"; source: "elm";
372 script { 338 script {
373 set_int(field_pos, 1); 339 set_int(field_pos, 1);
374 update_state(); 340 update_state();
375 } 341 }
376 } 342 }
377 program { name: "r_side_text"; 343 program { signal: "elm,state,right_side"; source: "elm";
378 signal: "elm,state,right_side"; source: "elm";
379 script { 344 script {
380 set_int(field_pos, 2); 345 set_int(field_pos, 2);
381 update_state(); 346 update_state();
382 } 347 }
383 } 348 }
384 program { name: "field_click"; 349 program { signal: "mouse,clicked,1"; source: "over1";
385 signal: "mouse,clicked,1"; source: "over1";
386 action: SIGNAL_EMIT "elm,action,click" "elm"; 350 action: SIGNAL_EMIT "elm,action,click" "elm";
387 } 351 }
388 } 352 }