summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-06-29 11:32:54 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-29 11:32:54 -0400
commitf115d878a0db4390ea6b5045f4c2e36c1a05846d (patch)
tree7bd12d216d5154906cc1bfcd32ac1eb98e02fe0c /data
parentce9f568cc9aec134f93326d876211dda0d82626d (diff)
default theme: fix part names in efl/calendar
Summary: Ref T6967 Depends on D6453 Reviewers: zmike, devilhorns Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6967 Differential Revision: https://phab.enlightenment.org/D6454
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/efl/calendar.edc162
1 files changed, 81 insertions, 81 deletions
diff --git a/data/elementary/themes/edc/efl/calendar.edc b/data/elementary/themes/edc/efl/calendar.edc
index 5c51fdf..5408d44 100644
--- a/data/elementary/themes/edc/efl/calendar.edc
+++ b/data/elementary/themes/edc/efl/calendar.edc
@@ -89,7 +89,7 @@
89 } 89 }
90 90
91#define CH(_pos) \ 91#define CH(_pos) \
92 part { name: "ch_"#_pos".base"; type: SPACER; \ 92 part { name: "ch_"#_pos"_base"; type: SPACER; \
93 description { state: "default" 0.0; \ 93 description { state: "default" 0.0; \
94 rel1 { \ 94 rel1 { \
95 relative: (_pos % 7 / 7) 0.0; \ 95 relative: (_pos % 7 / 7) 0.0; \
@@ -101,13 +101,13 @@
101 } \ 101 } \
102 } \ 102 } \
103 } \ 103 } \
104 part { name: "ch_"#_pos".text"; type: TEXT; mouse_events: 0; \ 104 part { name: "efl.ch_"#_pos".text"; type: TEXT; mouse_events: 0; \
105 effect: SHADOW BOTTOM; \ 105 effect: SHADOW BOTTOM; \
106 scale: 1; \ 106 scale: 1; \
107 clip_to: "ch_"#_pos".clipper"; \ 107 clip_to: "ch_"#_pos"_clipper"; \
108 description { state: "default" 0.0; \ 108 description { state: "default" 0.0; \
109 rel1.to: "ch_"#_pos".base"; \ 109 rel1.to: "ch_"#_pos"_base"; \
110 rel2.to: "ch_"#_pos".base"; \ 110 rel2.to: "ch_"#_pos"_base"; \
111 text { font: FN; size: 8; \ 111 text { font: FN; size: 8; \
112 min: 1 1; \ 112 min: 1 1; \
113 ellipsis: -1; \ 113 ellipsis: -1; \
@@ -116,15 +116,15 @@
116 color_class: "calendar_weekday_text"; \ 116 color_class: "calendar_weekday_text"; \
117 } \ 117 } \
118 } \ 118 } \
119 part { name: "ch_"#_pos".clipper"; type: RECT; \ 119 part { name: "ch_"#_pos"_clipper"; type: RECT; \
120 description { state: "default" 0.0; \ 120 description { state: "default" 0.0; \
121 rel1.to: "ch_"#_pos".base"; \ 121 rel1.to: "ch_"#_pos"_base"; \
122 rel2.to: "ch_"#_pos".base"; \ 122 rel2.to: "ch_"#_pos"_base"; \
123 } \ 123 } \
124 } 124 }
125 125
126#define CIT(_pos) \ 126#define CIT(_pos) \
127 part { name: "cit_"#_pos".rect"; type: SPACER; \ 127 part { name: "cit_"#_pos"_rect"; type: SPACER; \
128 description { state: "default" 0.0; \ 128 description { state: "default" 0.0; \
129 rel1 { \ 129 rel1 { \
130 relative: (_pos % 7 / 7) \ 130 relative: (_pos % 7 / 7) \
@@ -138,18 +138,18 @@
138 } \ 138 } \
139 } \ 139 } \
140 } \ 140 } \
141 part { name: "cit_"#_pos".event"; type: RECT; repeat_events: 1; \ 141 part { name: "cit_"#_pos"_event"; type: RECT; repeat_events: 1; \
142 description { state: "default" 0.0; \ 142 description { state: "default" 0.0; \
143 rel1.to: "cit_"#_pos".rect"; \ 143 rel1.to: "cit_"#_pos"_rect"; \
144 rel2.to: "cit_"#_pos".rect"; \ 144 rel2.to: "cit_"#_pos"_rect"; \
145 color: 0 0 0 0; \ 145 color: 0 0 0 0; \
146 } \ 146 } \
147 } \ 147 } \
148 part { name: "cit_"#_pos".pat"; mouse_events: 0; \ 148 part { name: "cit_"#_pos"_pat"; mouse_events: 0; \
149 description { state: "default" 0.0; \ 149 description { state: "default" 0.0; \
150 rel1.to: "cit_"#_pos".selected"; \ 150 rel1.to: "cit_"#_pos"_selected"; \
151 rel1.offset: 1 1; \ 151 rel1.offset: 1 1; \
152 rel2.to: "cit_"#_pos".selected"; \ 152 rel2.to: "cit_"#_pos"_selected"; \
153 rel2.offset: -2 -2; \ 153 rel2.offset: -2 -2; \
154 image.normal: "diagonal_stripes.png"; \ 154 image.normal: "diagonal_stripes.png"; \
155 color: 255 255 255 25; \ 155 color: 255 255 255 25; \
@@ -162,10 +162,10 @@
162 visible: 1; \ 162 visible: 1; \
163 } \ 163 } \
164 } \ 164 } \
165 part { name: "cit_"#_pos".selected"; mouse_events: 0; \ 165 part { name: "cit_"#_pos"_selected"; mouse_events: 0; \
166 description { state: "default" 0.0; \ 166 description { state: "default" 0.0; \
167 rel1.to: "cit_"#_pos".rect"; \ 167 rel1.to: "cit_"#_pos"_rect"; \
168 rel2.to: "cit_"#_pos".rect"; \ 168 rel2.to: "cit_"#_pos"_rect"; \
169 image.normal: "outline_glow.png"; \ 169 image.normal: "outline_glow.png"; \
170 image.border: 4 4 4 4; \ 170 image.border: 4 4 4 4; \
171 color_class: "calendar_day_selected"; \ 171 color_class: "calendar_day_selected"; \
@@ -176,10 +176,10 @@
176 visible: 1; \ 176 visible: 1; \
177 } \ 177 } \
178 } \ 178 } \
179 part { name: "cit_"#_pos".selected2"; mouse_events: 0; \ 179 part { name: "cit_"#_pos"_selected2"; mouse_events: 0; \
180 description { state: "default" 0.0; \ 180 description { state: "default" 0.0; \
181 rel1.to: "cit_"#_pos".rect"; \ 181 rel1.to: "cit_"#_pos"_rect"; \
182 rel2.to: "cit_"#_pos".rect"; \ 182 rel2.to: "cit_"#_pos"_rect"; \
183 image.normal: "outline_glow.png"; \ 183 image.normal: "outline_glow.png"; \
184 image.border: 4 4 4 4; \ 184 image.border: 4 4 4 4; \
185 color: 255 255 255 128; \ 185 color: 255 255 255 128; \
@@ -191,10 +191,10 @@
191 visible: 1; \ 191 visible: 1; \
192 } \ 192 } \
193 } \ 193 } \
194 part { name: "cit_"#_pos".glow"; mouse_events: 0; \ 194 part { name: "cit_"#_pos"_glow"; mouse_events: 0; \
195 description { state: "default" 0.0; \ 195 description { state: "default" 0.0; \
196 rel1.to: "cit_"#_pos".rect"; \ 196 rel1.to: "cit_"#_pos"_rect"; \
197 rel2.to: "cit_"#_pos".rect"; \ 197 rel2.to: "cit_"#_pos"_rect"; \
198 image.normal: "box_glow.png"; \ 198 image.normal: "box_glow.png"; \
199 image.border: 12 12 12 12; \ 199 image.border: 12 12 12 12; \
200 image.middle: 0; \ 200 image.middle: 0; \
@@ -206,11 +206,11 @@
206 visible: 1; \ 206 visible: 1; \
207 } \ 207 } \
208 } \ 208 } \
209 part { name: "cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \ 209 part { name: "efl.cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \
210 scale: 1; \ 210 scale: 1; \
211 description { state: "default" 0.0; \ 211 description { state: "default" 0.0; \
212 rel1.to: "cit_"#_pos".rect"; \ 212 rel1.to: "cit_"#_pos"_rect"; \
213 rel2.to: "cit_"#_pos".rect"; \ 213 rel2.to: "cit_"#_pos"_rect"; \
214 text.style: "efl_ui_calendar_date_style"; \ 214 text.style: "efl_ui_calendar_date_style"; \
215 text.min: 1 1; \ 215 text.min: 1 1; \
216 text.ellipsis: -1; \ 216 text.ellipsis: -1; \
@@ -224,16 +224,16 @@
224 text.style: "efl_ui_calendar_date_disabled_style"; \ 224 text.style: "efl_ui_calendar_date_disabled_style"; \
225 } \ 225 } \
226 } \ 226 } \
227 part { name: "cit_"#_pos".check"; mouse_events: 0; \ 227 part { name: "cit_"#_pos"_check"; mouse_events: 0; \
228 scale: 1; \ 228 scale: 1; \
229 description { state: "default" 0.0; \ 229 description { state: "default" 0.0; \
230 fixed: 1 1; \ 230 fixed: 1 1; \
231 rel1 { \ 231 rel1 { \
232 to: "cit_"#_pos".rect"; \ 232 to: "cit_"#_pos"_rect"; \
233 relative: 0.6 0.5; \ 233 relative: 0.6 0.5; \
234 } \ 234 } \
235 rel2 { \ 235 rel2 { \
236 to: "cit_"#_pos".rect"; \ 236 to: "cit_"#_pos"_rect"; \
237 relative: 0.6 0.5; \ 237 relative: 0.6 0.5; \
238 } \ 238 } \
239 min: 16 16; \ 239 min: 16 16; \
@@ -249,173 +249,173 @@
249 visible: 1; \ 249 visible: 1; \
250 } \ 250 } \
251 } \ 251 } \
252 part { name: "cit_"#_pos".access"; type: RECT; repeat_events: 1; \ 252 part { name: "efl.cit_"#_pos".access"; type: RECT; repeat_events: 1; \
253 description { state: "default" 0.0; \ 253 description { state: "default" 0.0; \
254 rel1.to: "cit_"#_pos".event"; \ 254 rel1.to: "cit_"#_pos"_event"; \
255 rel2.to: "cit_"#_pos".event"; \ 255 rel2.to: "cit_"#_pos"_event"; \
256 color: 0 0 0 0; \ 256 color: 0 0 0 0; \
257 } \ 257 } \
258 } \ 258 } \
259 programs { \ 259 programs { \
260 program { \ 260 program { \
261 name: "cit_"#_pos".go_active"; \ 261 name: "cit_"#_pos"_go_active"; \
262 signal: "cit_"#_pos",selected"; \ 262 signal: "cit_"#_pos",selected"; \
263 source: "efl"; \ 263 source: "efl"; \
264 action: STATE_SET "selected" 0.0; \ 264 action: STATE_SET "selected" 0.0; \
265 target: "cit_"#_pos".pat"; \ 265 target: "cit_"#_pos"_pat"; \
266 target: "cit_"#_pos".selected"; \ 266 target: "cit_"#_pos"_selected"; \
267 } \ 267 } \
268 program { \ 268 program { \
269 name: "cit_"#_pos".go_passive"; \ 269 name: "cit_"#_pos"_go_passive"; \
270 signal: "cit_"#_pos",unselected"; \ 270 signal: "cit_"#_pos",unselected"; \
271 source: "efl"; \ 271 source: "efl"; \
272 action: STATE_SET "default" 0.0; \ 272 action: STATE_SET "default" 0.0; \
273 target: "cit_"#_pos".pat"; \ 273 target: "cit_"#_pos"_pat"; \
274 target: "cit_"#_pos".selected"; \ 274 target: "cit_"#_pos"_selected"; \
275 } \ 275 } \
276 program { \ 276 program { \
277 name: "cit_"#_pos".focus_highlighted"; \ 277 name: "cit_"#_pos"_focus_highlighted"; \
278 signal: "cit_"#_pos",focused"; \ 278 signal: "cit_"#_pos",focused"; \
279 source: "efl"; \ 279 source: "efl"; \
280 script { \ 280 script { \
281 set_int(item_focus_enabled, 1); \ 281 set_int(item_focus_enabled, 1); \
282 set_int(last_focused_item, _pos); \ 282 set_int(last_focused_item, _pos); \
283 if (get_int(win_focus_enabled) == 1) \ 283 if (get_int(win_focus_enabled) == 1) \
284 set_state(PART:"cit_"#_pos".glow", "focused", 0.0); \ 284 set_state(PART:"cit_"#_pos"_glow", "focused", 0.0); \
285 } \ 285 } \
286 } \ 286 } \
287 program { \ 287 program { \
288 name: "cit_"#_pos".focus_unhighlighed"; \ 288 name: "cit_"#_pos"_focus_unhighlighed"; \
289 signal: "cit_"#_pos",unfocused"; \ 289 signal: "cit_"#_pos",unfocused"; \
290 source: "efl"; \ 290 source: "efl"; \
291 script { \ 291 script { \
292 set_int(item_focus_enabled, 0); \ 292 set_int(item_focus_enabled, 0); \
293 set_state(PART:"cit_"#_pos".glow", "default", 0.0); \ 293 set_state(PART:"cit_"#_pos"_glow", "default", 0.0); \
294 } \ 294 } \
295 } \ 295 } \
296 program { \ 296 program { \
297 name: "cit_"#_pos".is_today"; \ 297 name: "cit_"#_pos"_is_today"; \
298 signal: "cit_"#_pos",today"; \ 298 signal: "cit_"#_pos",today"; \
299 source: "efl"; \ 299 source: "efl"; \
300 action: STATE_SET "today" 0.0; \ 300 action: STATE_SET "today" 0.0; \
301 target: "cit_"#_pos".text"; \ 301 target: "efl.cit_"#_pos".text"; \
302 } \ 302 } \
303 program { \ 303 program { \
304 name: "cit_"#_pos".not_today"; \ 304 name: "cit_"#_pos"_not_today"; \
305 signal: "cit_"#_pos",not_today"; \ 305 signal: "cit_"#_pos",not_today"; \
306 source: "efl"; \ 306 source: "efl"; \
307 action: STATE_SET "default" 0.0; \ 307 action: STATE_SET "default" 0.0; \
308 target: "cit_"#_pos".text"; \ 308 target: "efl.cit_"#_pos".text"; \
309 } \ 309 } \
310 program { \ 310 program { \
311 name: "cit_"#_pos".enable"; \ 311 name: "cit_"#_pos"_enable"; \
312 signal: "cit_"#_pos",enable"; \ 312 signal: "cit_"#_pos",enable"; \
313 source: "efl"; \ 313 source: "efl"; \
314 script { \ 314 script { \
315 new st[31]; \ 315 new st[31]; \
316 new Float:vl; \ 316 new Float:vl; \
317 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 317 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
318 if (!strcmp(st, "disabled")) \ 318 if (!strcmp(st, "disabled")) \
319 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 319 set_state(PART:"efl.cit_"#_pos".text", "default", 0.0); \
320 } \ 320 } \
321 } \ 321 } \
322 program { \ 322 program { \
323 name: "cit_"#_pos".disable"; \ 323 name: "cit_"#_pos"_disable"; \
324 signal: "cit_"#_pos",disable"; \ 324 signal: "cit_"#_pos",disable"; \
325 source: "efl"; \ 325 source: "efl"; \
326 action: STATE_SET "disabled" 0.0; \ 326 action: STATE_SET "disabled" 0.0; \
327 target: "cit_"#_pos".text"; \ 327 target: "efl.cit_"#_pos".text"; \
328 } \ 328 } \
329 program { \ 329 program { \
330 source: "cit_"#_pos".clicked"; \ 330 source: "cit_"#_pos"_clicked"; \
331 signal: "mouse,down,1"; \ 331 signal: "mouse,down,1"; \
332 source: "cit_"#_pos".event"; \ 332 source: "cit_"#_pos"_event"; \
333 action: STATE_SET "highlighted" 0.0; \ 333 action: STATE_SET "highlighted" 0.0; \
334 target: "cit_"#_pos".selected2"; \ 334 target: "cit_"#_pos"_selected2"; \
335 } \ 335 } \
336 program { \ 336 program { \
337 source: "cit_"#_pos".clicked"; \ 337 source: "cit_"#_pos"_clicked"; \
338 signal: "mouse,up,1"; \ 338 signal: "mouse,up,1"; \
339 source: "cit_"#_pos".event"; \ 339 source: "cit_"#_pos"_event"; \
340 action: STATE_SET "default" 0.0; \ 340 action: STATE_SET "default" 0.0; \
341 target: "cit_"#_pos".selected2"; \ 341 target: "cit_"#_pos"_selected2"; \
342 } \ 342 } \
343 program { \ 343 program { \
344 source: "cit_"#_pos".clicked"; \ 344 source: "cit_"#_pos"_clicked"; \
345 signal: "mouse,clicked,1"; \ 345 signal: "mouse,clicked,1"; \
346 source: "cit_"#_pos".event"; \ 346 source: "cit_"#_pos"_event"; \
347 action: SIGNAL_EMIT "efl,action,selected" #_pos; \ 347 action: SIGNAL_EMIT "efl,action,selected" #_pos; \
348 } \ 348 } \
349 program { \ 349 program { \
350 name: "cit_"#_pos".clear"; \ 350 name: "cit_"#_pos"_clear"; \
351 signal: "cit_"#_pos",clear"; \ 351 signal: "cit_"#_pos",clear"; \
352 source: "efl"; \ 352 source: "efl"; \
353 action: STATE_SET "default" 0.0; \ 353 action: STATE_SET "default" 0.0; \
354 target: "cit_"#_pos".check"; \ 354 target: "cit_"#_pos"_check"; \
355 after: "cit_"#_pos".weekends_clear"; \ 355 after: "cit_"#_pos"_weekends_clear"; \
356 after: "cit_"#_pos".holiday_clear"; \ 356 after: "cit_"#_pos"_holiday_clear"; \
357 } \ 357 } \
358 program { \ 358 program { \
359 name: "cit_"#_pos".weekends_clear"; \ 359 name: "cit_"#_pos"_weekends_clear"; \
360 script { \ 360 script { \
361 new st[31]; \ 361 new st[31]; \
362 new Float:vl; \ 362 new Float:vl; \
363 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 363 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
364 if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \ 364 if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \
365 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 365 set_state(PART:"efl.cit_"#_pos".text", "default", 0.0); \
366 } \ 366 } \
367 } \ 367 } \
368 program { \ 368 program { \
369 name: "cit_"#_pos".holiday_clear"; \ 369 name: "cit_"#_pos"_holiday_clear"; \
370 script { \ 370 script { \
371 new st[31]; \ 371 new st[31]; \
372 new Float:vl; \ 372 new Float:vl; \
373 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 373 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
374 if (!strcmp(st, "holiday")) \ 374 if (!strcmp(st, "holiday")) \
375 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 375 set_state(PART:"efl.cit_"#_pos".text", "default", 0.0); \
376 } \ 376 } \
377 } \ 377 } \
378 program { \ 378 program { \
379 name: "cit_"#_pos".checked"; \ 379 name: "cit_"#_pos"_checked"; \
380 signal: "cit_"#_pos",checked"; \ 380 signal: "cit_"#_pos",checked"; \
381 source: "efl"; \ 381 source: "efl"; \
382 action: STATE_SET "visible" 0.0; \ 382 action: STATE_SET "visible" 0.0; \
383 target: "cit_"#_pos".check"; \ 383 target: "cit_"#_pos"_check"; \
384 } \ 384 } \
385 program { \ 385 program { \
386 name: "cit_"#_pos".holiday"; \ 386 name: "cit_"#_pos"_holiday"; \
387 signal: "cit_"#_pos",holiday"; \ 387 signal: "cit_"#_pos",holiday"; \
388 source: "efl"; \ 388 source: "efl"; \
389 script { \ 389 script { \
390 new st[31]; \ 390 new st[31]; \
391 new Float:vl; \ 391 new Float:vl; \
392 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 392 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
393 if (strcmp(st, "today")) \ 393 if (strcmp(st, "today")) \
394 set_state(PART:"cit_"#_pos".text", "holiday", 0.0); \ 394 set_state(PART:"efl.cit_"#_pos".text", "holiday", 0.0); \
395 } \ 395 } \
396 } \ 396 } \
397 program { \ 397 program { \
398 name: "cit_"#_pos".weekend/day1"; \ 398 name: "cit_"#_pos"_weekend/day1"; \
399 signal: "cit_"#_pos",weekend/day1"; \ 399 signal: "cit_"#_pos",weekend/day1"; \
400 source: "efl"; \ 400 source: "efl"; \
401 script { \ 401 script { \
402 new st[31]; \ 402 new st[31]; \
403 new Float:vl; \ 403 new Float:vl; \
404 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 404 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
405 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ 405 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
406 set_state(PART:"cit_"#_pos".text", "weekend/day1", 0.0); \ 406 set_state(PART:"efl.cit_"#_pos".text", "weekend/day1", 0.0); \
407 } \ 407 } \
408 } \ 408 } \
409 program { \ 409 program { \
410 name: "cit_"#_pos".weekend/day2"; \ 410 name: "cit_"#_pos"_weekend/day2"; \
411 signal: "cit_"#_pos",weekend/day2"; \ 411 signal: "cit_"#_pos",weekend/day2"; \
412 source: "efl"; \ 412 source: "efl"; \
413 script { \ 413 script { \
414 new st[31]; \ 414 new st[31]; \
415 new Float:vl; \ 415 new Float:vl; \
416 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 416 get_state(PART:"efl.cit_"#_pos".text", st, 30, vl); \
417 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ 417 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
418 set_state(PART:"cit_"#_pos".text", "weekend/day2", 0.0); \ 418 set_state(PART:"efl.cit_"#_pos".text", "weekend/day2", 0.0); \
419 } \ 419 } \
420 } \ 420 } \
421 } 421 }