summaryrefslogtreecommitdiff
path: root/legacy/elementary/data
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-03-07 08:45:49 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-07 08:45:49 +0000
commit8d5ab8026f021e940d996445dd0ac168c25b6ead (patch)
tree29a626eaa7c189db3a50ae107cfec5a9c1cfddfc /legacy/elementary/data
parent123dd6c01cdc118e9e6562824dd2c18c3ce102f5 (diff)
elementary/dayselector - trivial changes
SVN revision: 68903
Diffstat (limited to 'legacy/elementary/data')
-rw-r--r--legacy/elementary/data/themes/widgets/dayselector.edc112
1 files changed, 51 insertions, 61 deletions
diff --git a/legacy/elementary/data/themes/widgets/dayselector.edc b/legacy/elementary/data/themes/widgets/dayselector.edc
index bbce21d..343cd98 100644
--- a/legacy/elementary/data/themes/widgets/dayselector.edc
+++ b/legacy/elementary/data/themes/widgets/dayselector.edc
@@ -59,9 +59,9 @@ group {
59 name: "bg"; 59 name: "bg";
60 type: RECT; 60 type: RECT;
61 mouse_events: 0; 61 mouse_events: 0;
62 scale: 1;
63 clip_to: "clipper"; 62 clip_to: "clipper";
64 description { state: "default" 0.0; 63 description {
64 state: "default" 0.0;
65 rel1 { 65 rel1 {
66 relative: 0.5 0.0; 66 relative: 0.5 0.0;
67 to: "day0"; 67 to: "day0";
@@ -78,16 +78,16 @@ group {
78 type: SWALLOW; 78 type: SWALLOW;
79 scale: 1; 79 scale: 1;
80 clip_to: "clipper"; 80 clip_to: "clipper";
81 description { state: "default" 0.0; 81 description {
82 state: "default" 0.0;
82 visible: 0; 83 visible: 0;
83 min: 0 0; 84 min: 0 0;
84 align: 0.0 0.5; 85 align: 0.0 0.5;
85 fixed: 1 0; 86 fixed: 1 0;
86 rel2 { 87 rel2.relative: 0.0 1.0;
87 relative: 0.0 1.0;
88 }
89 } 88 }
90 description { state: "visible" 0.0; 89 description {
90 state: "visible" 0.0;
91 inherit: "default" 0.0; 91 inherit: "default" 0.0;
92 visible: 1; 92 visible: 1;
93 min: 40 25; 93 min: 40 25;
@@ -102,18 +102,14 @@ group {
102 part { 102 part {
103 name: "clipper"; 103 name: "clipper";
104 type: RECT; 104 type: RECT;
105 description { state: "default" 0.0; 105 description {
106 rel1 { 106 state: "default" 0.0;
107 relative: 0.0 0.0; 107 rel1.to: "day0";
108 to: "day0"; 108 rel2.to: "day6";
109 }
110 rel2 {
111 relative: 1.0 1.0;
112 to: "day6";
113 }
114 color: 255 255 255 255; 109 color: 255 255 255 255;
115 } 110 }
116 description { state: "visible" 0.0; 111 description {
112 state: "visible" 0.0;
117 inherit: "default" 0.0; 113 inherit: "default" 0.0;
118 color: 200 200 200 255; 114 color: 200 200 200 255;
119 } 115 }
@@ -121,11 +117,13 @@ group {
121 part { 117 part {
122 name: "disabler"; 118 name: "disabler";
123 type: RECT; 119 type: RECT;
124 description { state: "default" 0.0; 120 description {
121 state: "default" 0.0;
125 color: 0 0 0 0; 122 color: 0 0 0 0;
126 visible: 0; 123 visible: 0;
127 } 124 }
128 description { state: "visible" 0.0; 125 description {
126 state: "visible" 0.0;
129 inherit: "default" 0.0; 127 inherit: "default" 0.0;
130 visible: 1; 128 visible: 1;
131 } 129 }
@@ -185,46 +183,42 @@ group {
185 public check_state = DAYSELECOR_DAY_STATE_DEFAULT; // Default, Pressed, Selected. 183 public check_state = DAYSELECOR_DAY_STATE_DEFAULT; // Default, Pressed, Selected.
186 184
187 public check_bg_show() { 185 public check_bg_show() {
188 if(get_int(check_pos) == DAYSELECOR_DAY_POS_LEFT) 186 if(get_int(check_pos) == DAYSELECOR_DAY_POS_LEFT) {
189 { 187 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT)
190 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) 188 set_state(PART:"bg", "default_left", 0.0);
191 set_state(PART:"bg", "default_left", 0.0); 189 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED)
192 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) 190 set_state(PART:"bg", "pressed_left", 0.0);
193 set_state(PART:"bg", "pressed_left", 0.0); 191 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
194 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) 192 set_state(PART:"bg", "selected_left", 0.0);
195 set_state(PART:"bg", "selected_left", 0.0); 193 }
196 } 194 else if(get_int(check_pos) == DAYSELECOR_DAY_POS_RIGHT) {
197 else if(get_int(check_pos) == DAYSELECOR_DAY_POS_RIGHT) 195 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT)
198 { 196 set_state(PART:"bg", "default_right", 0.0);
199 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) 197 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED)
200 set_state(PART:"bg", "default_right", 0.0); 198 set_state(PART:"bg", "pressed_right", 0.0);
201 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) 199 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
202 set_state(PART:"bg", "pressed_right", 0.0); 200 set_state(PART:"bg", "selected_right", 0.0);
203 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) 201 }
204 set_state(PART:"bg", "selected_right", 0.0); 202 else if(get_int(check_pos) == DAYSELECOR_DAY_POS_MIDDLE) {
205 } 203 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT)
206 else if(get_int(check_pos) == DAYSELECOR_DAY_POS_MIDDLE) 204 set_state(PART:"bg", "default_middle", 0.0);
207 { 205 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED)
208 if(get_int(check_state) == DAYSELECOR_DAY_STATE_DEFAULT) 206 set_state(PART:"bg", "pressed_middle", 0.0);
209 set_state(PART:"bg", "default_middle", 0.0); 207 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
210 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_PRESSED) 208 set_state(PART:"bg", "selected_middle", 0.0);
211 set_state(PART:"bg", "pressed_middle", 0.0);
212 else if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
213 set_state(PART:"bg", "selected_middle", 0.0);
214 } 209 }
215 } 210 }
216 public check_text_show() { 211 public check_text_show() {
217 if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) 212 if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
218 set_state(PART:"elm.text", "selected", 0.0); 213 set_state(PART:"elm.text", "selected", 0.0);
219 else 214 else {
220 { 215 if(get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKDAY)
221 if(get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKDAY)
222 set_state(PART:"elm.text", "default", 0.0); 216 set_state(PART:"elm.text", "default", 0.0);
223 else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT) 217 else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT)
224 set_state(PART:"elm.text", "weekend_default", 0.0); 218 set_state(PART:"elm.text", "weekend_default", 0.0);
225 else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1) 219 else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1)
226 set_state(PART:"elm.text", "weekend_style1", 0.0); 220 set_state(PART:"elm.text", "weekend_style1", 0.0);
227 } 221 }
228 } 222 }
229 } 223 }
230 parts { 224 parts {
@@ -360,12 +354,12 @@ group {
360 description { 354 description {
361 state: "weekend_default" 0.0; 355 state: "weekend_default" 0.0;
362 inherit: "default" 0.0; 356 inherit: "default" 0.0;
363 color: 8 96 170 255; 357 color: 225 49 8 255;
364 } 358 }
365 description { 359 description {
366 state: "weekend_style1" 0.0; 360 state: "weekend_style1" 0.0;
367 inherit: "default" 0.0; 361 inherit: "default" 0.0;
368 color: 225 49 8 255; 362 color: 8 96 170 255;
369 } 363 }
370 description { 364 description {
371 state: "selected" 0.0; 365 state: "selected" 0.0;
@@ -379,12 +373,8 @@ group {
379 ignore_flags: ON_HOLD; 373 ignore_flags: ON_HOLD;
380 description { 374 description {
381 state: "default" 0.0; 375 state: "default" 0.0;
382 rel1 { 376 rel1.to: "bg";
383 to: "bg"; 377 rel2.to: "bg";
384 }
385 rel2 {
386 to: "bg";
387 }
388 color: 0 0 0 0; 378 color: 0 0 0 0;
389 } 379 }
390 } 380 }