summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-06-29 11:32:03 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-29 11:32:03 -0400
commitce9f568cc9aec134f93326d876211dda0d82626d (patch)
treeea836f877e8d14fad6e8e0eb7f4e6fbbbfd8b548 /data
parent2137ce7e1ea2b4ef9e180694836f8e616b53b0a5 (diff)
default theme: fix part names in elm/calendar
Summary: Ref T6967 Reviewers: zmike, devilhorns Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6967 Differential Revision: https://phab.enlightenment.org/D6453
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/calendar.edc162
1 files changed, 81 insertions, 81 deletions
diff --git a/data/elementary/themes/edc/elm/calendar.edc b/data/elementary/themes/edc/elm/calendar.edc
index 8dfffc1..cc60f67 100644
--- a/data/elementary/themes/edc/elm/calendar.edc
+++ b/data/elementary/themes/edc/elm/calendar.edc
@@ -98,7 +98,7 @@
98 } 98 }
99 99
100#define CH(_pos) \ 100#define CH(_pos) \
101 part { name: "ch_"#_pos".base"; type: SPACER; \ 101 part { name: "ch_"#_pos"_base"; type: SPACER; \
102 description { state: "default" 0.0; \ 102 description { state: "default" 0.0; \
103 rel1 { \ 103 rel1 { \
104 relative: (_pos % 7 / 7) 0.0; \ 104 relative: (_pos % 7 / 7) 0.0; \
@@ -110,13 +110,13 @@
110 } \ 110 } \
111 } \ 111 } \
112 } \ 112 } \
113 part { name: "ch_"#_pos".text"; type: TEXT; mouse_events: 0; \ 113 part { name: "elm.ch_"#_pos".text"; type: TEXT; mouse_events: 0; \
114 effect: SHADOW BOTTOM; \ 114 effect: SHADOW BOTTOM; \
115 scale: 1; \ 115 scale: 1; \
116 clip_to: "ch_"#_pos".clipper"; \ 116 clip_to: "ch_"#_pos"_clipper"; \
117 description { state: "default" 0.0; \ 117 description { state: "default" 0.0; \
118 rel1.to: "ch_"#_pos".base"; \ 118 rel1.to: "ch_"#_pos"_base"; \
119 rel2.to: "ch_"#_pos".base"; \ 119 rel2.to: "ch_"#_pos"_base"; \
120 text { font: FN; size: 8; \ 120 text { font: FN; size: 8; \
121 min: 1 1; \ 121 min: 1 1; \
122 ellipsis: -1; \ 122 ellipsis: -1; \
@@ -125,15 +125,15 @@
125 color_class: "calendar_weekday_text"; \ 125 color_class: "calendar_weekday_text"; \
126 } \ 126 } \
127 } \ 127 } \
128 part { name: "ch_"#_pos".clipper"; type: RECT; \ 128 part { name: "ch_"#_pos"_clipper"; type: RECT; \
129 description { state: "default" 0.0; \ 129 description { state: "default" 0.0; \
130 rel1.to: "ch_"#_pos".base"; \ 130 rel1.to: "ch_"#_pos"_base"; \
131 rel2.to: "ch_"#_pos".base"; \ 131 rel2.to: "ch_"#_pos"_base"; \
132 } \ 132 } \
133 } 133 }
134 134
135#define CIT(_pos) \ 135#define CIT(_pos) \
136 part { name: "cit_"#_pos".rect"; type: SPACER; \ 136 part { name: "cit_"#_pos"_rect"; type: SPACER; \
137 description { state: "default" 0.0; \ 137 description { state: "default" 0.0; \
138 rel1 { \ 138 rel1 { \
139 relative: (_pos % 7 / 7) \ 139 relative: (_pos % 7 / 7) \
@@ -147,18 +147,18 @@
147 } \ 147 } \
148 } \ 148 } \
149 } \ 149 } \
150 part { name: "cit_"#_pos".event"; type: RECT; repeat_events: 1; \ 150 part { name: "cit_"#_pos"_event"; type: RECT; repeat_events: 1; \
151 description { state: "default" 0.0; \ 151 description { state: "default" 0.0; \
152 rel1.to: "cit_"#_pos".rect"; \ 152 rel1.to: "cit_"#_pos"_rect"; \
153 rel2.to: "cit_"#_pos".rect"; \ 153 rel2.to: "cit_"#_pos"_rect"; \
154 color: 0 0 0 0; \ 154 color: 0 0 0 0; \
155 } \ 155 } \
156 } \ 156 } \
157 part { name: "cit_"#_pos".pat"; mouse_events: 0; \ 157 part { name: "cit_"#_pos"_pat"; mouse_events: 0; \
158 description { state: "default" 0.0; \ 158 description { state: "default" 0.0; \
159 rel1.to: "cit_"#_pos".selected"; \ 159 rel1.to: "cit_"#_pos"_selected"; \
160 rel1.offset: 1 1; \ 160 rel1.offset: 1 1; \
161 rel2.to: "cit_"#_pos".selected"; \ 161 rel2.to: "cit_"#_pos"_selected"; \
162 rel2.offset: -2 -2; \ 162 rel2.offset: -2 -2; \
163 image.normal: "diagonal_stripes.png"; \ 163 image.normal: "diagonal_stripes.png"; \
164 color: 255 255 255 25; \ 164 color: 255 255 255 25; \
@@ -171,10 +171,10 @@
171 visible: 1; \ 171 visible: 1; \
172 } \ 172 } \
173 } \ 173 } \
174 part { name: "cit_"#_pos".selected"; mouse_events: 0; \ 174 part { name: "cit_"#_pos"_selected"; mouse_events: 0; \
175 description { state: "default" 0.0; \ 175 description { state: "default" 0.0; \
176 rel1.to: "cit_"#_pos".rect"; \ 176 rel1.to: "cit_"#_pos"_rect"; \
177 rel2.to: "cit_"#_pos".rect"; \ 177 rel2.to: "cit_"#_pos"_rect"; \
178 image.normal: "outline_glow.png"; \ 178 image.normal: "outline_glow.png"; \
179 image.border: 4 4 4 4; \ 179 image.border: 4 4 4 4; \
180 color_class: "calendar_day_selected"; \ 180 color_class: "calendar_day_selected"; \
@@ -185,10 +185,10 @@
185 visible: 1; \ 185 visible: 1; \
186 } \ 186 } \
187 } \ 187 } \
188 part { name: "cit_"#_pos".selected2"; mouse_events: 0; \ 188 part { name: "cit_"#_pos"_selected2"; mouse_events: 0; \
189 description { state: "default" 0.0; \ 189 description { state: "default" 0.0; \
190 rel1.to: "cit_"#_pos".rect"; \ 190 rel1.to: "cit_"#_pos"_rect"; \
191 rel2.to: "cit_"#_pos".rect"; \ 191 rel2.to: "cit_"#_pos"_rect"; \
192 image.normal: "outline_glow.png"; \ 192 image.normal: "outline_glow.png"; \
193 image.border: 4 4 4 4; \ 193 image.border: 4 4 4 4; \
194 color: 255 255 255 128; \ 194 color: 255 255 255 128; \
@@ -200,10 +200,10 @@
200 visible: 1; \ 200 visible: 1; \
201 } \ 201 } \
202 } \ 202 } \
203 part { name: "cit_"#_pos".glow"; mouse_events: 0; \ 203 part { name: "cit_"#_pos"_glow"; mouse_events: 0; \
204 description { state: "default" 0.0; \ 204 description { state: "default" 0.0; \
205 rel1.to: "cit_"#_pos".rect"; \ 205 rel1.to: "cit_"#_pos"_rect"; \
206 rel2.to: "cit_"#_pos".rect"; \ 206 rel2.to: "cit_"#_pos"_rect"; \
207 image.normal: "box_glow.png"; \ 207 image.normal: "box_glow.png"; \
208 image.border: 12 12 12 12; \ 208 image.border: 12 12 12 12; \
209 image.middle: 0; \ 209 image.middle: 0; \
@@ -215,11 +215,11 @@
215 visible: 1; \ 215 visible: 1; \
216 } \ 216 } \
217 } \ 217 } \
218 part { name: "cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \ 218 part { name: "elm.cit_"#_pos".text"; type: TEXTBLOCK; mouse_events: 0; \
219 scale: 1; \ 219 scale: 1; \
220 description { state: "default" 0.0; \ 220 description { state: "default" 0.0; \
221 rel1.to: "cit_"#_pos".rect"; \ 221 rel1.to: "cit_"#_pos"_rect"; \
222 rel2.to: "cit_"#_pos".rect"; \ 222 rel2.to: "cit_"#_pos"_rect"; \
223 text.style: "calendar_date_style"; \ 223 text.style: "calendar_date_style"; \
224 text.min: 1 1; \ 224 text.min: 1 1; \
225 text.ellipsis: -1; \ 225 text.ellipsis: -1; \
@@ -245,16 +245,16 @@
245 text.style: "calendar_date_weekend2_style"; \ 245 text.style: "calendar_date_weekend2_style"; \
246 } \ 246 } \
247 } \ 247 } \
248 part { name: "cit_"#_pos".check"; mouse_events: 0; \ 248 part { name: "cit_"#_pos"_check"; mouse_events: 0; \
249 scale: 1; \ 249 scale: 1; \
250 description { state: "default" 0.0; \ 250 description { state: "default" 0.0; \
251 fixed: 1 1; \ 251 fixed: 1 1; \
252 rel1 { \ 252 rel1 { \
253 to: "cit_"#_pos".rect"; \ 253 to: "cit_"#_pos"_rect"; \
254 relative: 0.6 0.5; \ 254 relative: 0.6 0.5; \
255 } \ 255 } \
256 rel2 { \ 256 rel2 { \
257 to: "cit_"#_pos".rect"; \ 257 to: "cit_"#_pos"_rect"; \
258 relative: 0.6 0.5; \ 258 relative: 0.6 0.5; \
259 } \ 259 } \
260 min: 16 16; \ 260 min: 16 16; \
@@ -270,173 +270,173 @@
270 visible: 1; \ 270 visible: 1; \
271 } \ 271 } \
272 } \ 272 } \
273 part { name: "cit_"#_pos".access"; type: RECT; repeat_events: 1; \ 273 part { name: "elm.cit_"#_pos".access"; type: RECT; repeat_events: 1; \
274 description { state: "default" 0.0; \ 274 description { state: "default" 0.0; \
275 rel1.to: "cit_"#_pos".event"; \ 275 rel1.to: "cit_"#_pos"_event"; \
276 rel2.to: "cit_"#_pos".event"; \ 276 rel2.to: "cit_"#_pos"_event"; \
277 color: 0 0 0 0; \ 277 color: 0 0 0 0; \
278 } \ 278 } \
279 } \ 279 } \
280 programs { \ 280 programs { \
281 program { \ 281 program { \
282 name: "cit_"#_pos".go_active"; \ 282 name: "cit_"#_pos"_go_active"; \
283 signal: "cit_"#_pos",selected"; \ 283 signal: "cit_"#_pos",selected"; \
284 source: "elm"; \ 284 source: "elm"; \
285 action: STATE_SET "selected" 0.0; \ 285 action: STATE_SET "selected" 0.0; \
286 target: "cit_"#_pos".pat"; \ 286 target: "cit_"#_pos"_pat"; \
287 target: "cit_"#_pos".selected"; \ 287 target: "cit_"#_pos"_selected"; \
288 } \ 288 } \
289 program { \ 289 program { \
290 name: "cit_"#_pos".go_passive"; \ 290 name: "cit_"#_pos"_go_passive"; \
291 signal: "cit_"#_pos",unselected"; \ 291 signal: "cit_"#_pos",unselected"; \
292 source: "elm"; \ 292 source: "elm"; \
293 action: STATE_SET "default" 0.0; \ 293 action: STATE_SET "default" 0.0; \
294 target: "cit_"#_pos".pat"; \ 294 target: "cit_"#_pos"_pat"; \
295 target: "cit_"#_pos".selected"; \ 295 target: "cit_"#_pos"_selected"; \
296 } \ 296 } \
297 program { \ 297 program { \
298 name: "cit_"#_pos".focus_highlighted"; \ 298 name: "cit_"#_pos"_focus_highlighted"; \
299 signal: "cit_"#_pos",focused"; \ 299 signal: "cit_"#_pos",focused"; \
300 source: "elm"; \ 300 source: "elm"; \
301 script { \ 301 script { \
302 set_int(item_focus_enabled, 1); \ 302 set_int(item_focus_enabled, 1); \
303 set_int(last_focused_item, _pos); \ 303 set_int(last_focused_item, _pos); \
304 if (get_int(win_focus_enabled) == 1) \ 304 if (get_int(win_focus_enabled) == 1) \
305 set_state(PART:"cit_"#_pos".glow", "focused", 0.0); \ 305 set_state(PART:"cit_"#_pos"_glow", "focused", 0.0); \
306 } \ 306 } \
307 } \ 307 } \
308 program { \ 308 program { \
309 name: "cit_"#_pos".focus_unhighlighed"; \ 309 name: "cit_"#_pos"_focus_unhighlighed"; \
310 signal: "cit_"#_pos",unfocused"; \ 310 signal: "cit_"#_pos",unfocused"; \
311 source: "elm"; \ 311 source: "elm"; \
312 script { \ 312 script { \
313 set_int(item_focus_enabled, 0); \ 313 set_int(item_focus_enabled, 0); \
314 set_state(PART:"cit_"#_pos".glow", "default", 0.0); \ 314 set_state(PART:"cit_"#_pos"_glow", "default", 0.0); \
315 } \ 315 } \
316 } \ 316 } \
317 program { \ 317 program { \
318 name: "cit_"#_pos".is_today"; \ 318 name: "cit_"#_pos"_is_today"; \
319 signal: "cit_"#_pos",today"; \ 319 signal: "cit_"#_pos",today"; \
320 source: "elm"; \ 320 source: "elm"; \
321 action: STATE_SET "today" 0.0; \ 321 action: STATE_SET "today" 0.0; \
322 target: "cit_"#_pos".text"; \ 322 target: "elm.cit_"#_pos".text"; \
323 } \ 323 } \
324 program { \ 324 program { \
325 name: "cit_"#_pos".not_today"; \ 325 name: "cit_"#_pos"_not_today"; \
326 signal: "cit_"#_pos",not_today"; \ 326 signal: "cit_"#_pos",not_today"; \
327 source: "elm"; \ 327 source: "elm"; \
328 action: STATE_SET "default" 0.0; \ 328 action: STATE_SET "default" 0.0; \
329 target: "cit_"#_pos".text"; \ 329 target: "elm.cit_"#_pos".text"; \
330 } \ 330 } \
331 program { \ 331 program { \
332 name: "cit_"#_pos".enable"; \ 332 name: "cit_"#_pos"_enable"; \
333 signal: "cit_"#_pos",enable"; \ 333 signal: "cit_"#_pos",enable"; \
334 source: "elm"; \ 334 source: "elm"; \
335 script { \ 335 script { \
336 new st[31]; \ 336 new st[31]; \
337 new Float:vl; \ 337 new Float:vl; \
338 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 338 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
339 if (!strcmp(st, "disabled")) \ 339 if (!strcmp(st, "disabled")) \
340 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 340 set_state(PART:"elm.cit_"#_pos".text", "default", 0.0); \
341 } \ 341 } \
342 } \ 342 } \
343 program { \ 343 program { \
344 name: "cit_"#_pos".disable"; \ 344 name: "cit_"#_pos"_disable"; \
345 signal: "cit_"#_pos",disable"; \ 345 signal: "cit_"#_pos",disable"; \
346 source: "elm"; \ 346 source: "elm"; \
347 action: STATE_SET "disabled" 0.0; \ 347 action: STATE_SET "disabled" 0.0; \
348 target: "cit_"#_pos".text"; \ 348 target: "elm.cit_"#_pos".text"; \
349 } \ 349 } \
350 program { \ 350 program { \
351 source: "cit_"#_pos".clicked"; \ 351 source: "cit_"#_pos"_clicked"; \
352 signal: "mouse,down,1"; \ 352 signal: "mouse,down,1"; \
353 source: "cit_"#_pos".event"; \ 353 source: "cit_"#_pos"_event"; \
354 action: STATE_SET "highlighted" 0.0; \ 354 action: STATE_SET "highlighted" 0.0; \
355 target: "cit_"#_pos".selected2"; \ 355 target: "cit_"#_pos"_selected2"; \
356 } \ 356 } \
357 program { \ 357 program { \
358 source: "cit_"#_pos".clicked"; \ 358 source: "cit_"#_pos"_clicked"; \
359 signal: "mouse,up,1"; \ 359 signal: "mouse,up,1"; \
360 source: "cit_"#_pos".event"; \ 360 source: "cit_"#_pos"_event"; \
361 action: STATE_SET "default" 0.0; \ 361 action: STATE_SET "default" 0.0; \
362 target: "cit_"#_pos".selected2"; \ 362 target: "cit_"#_pos"_selected2"; \
363 } \ 363 } \
364 program { \ 364 program { \
365 source: "cit_"#_pos".clicked"; \ 365 source: "cit_"#_pos"_clicked"; \
366 signal: "mouse,clicked,1"; \ 366 signal: "mouse,clicked,1"; \
367 source: "cit_"#_pos".event"; \ 367 source: "cit_"#_pos"_event"; \
368 action: SIGNAL_EMIT "elm,action,selected" #_pos; \ 368 action: SIGNAL_EMIT "elm,action,selected" #_pos; \
369 } \ 369 } \
370 program { \ 370 program { \
371 name: "cit_"#_pos".clear"; \ 371 name: "cit_"#_pos"_clear"; \
372 signal: "cit_"#_pos",clear"; \ 372 signal: "cit_"#_pos",clear"; \
373 source: "elm"; \ 373 source: "elm"; \
374 action: STATE_SET "default" 0.0; \ 374 action: STATE_SET "default" 0.0; \
375 target: "cit_"#_pos".check"; \ 375 target: "cit_"#_pos"_check"; \
376 after: "cit_"#_pos".weekends_clear"; \ 376 after: "cit_"#_pos"_weekends_clear"; \
377 after: "cit_"#_pos".holiday_clear"; \ 377 after: "cit_"#_pos"_holiday_clear"; \
378 } \ 378 } \
379 program { \ 379 program { \
380 name: "cit_"#_pos".weekends_clear"; \ 380 name: "cit_"#_pos"_weekends_clear"; \
381 script { \ 381 script { \
382 new st[31]; \ 382 new st[31]; \
383 new Float:vl; \ 383 new Float:vl; \
384 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 384 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
385 if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \ 385 if (!strcmp(st, "weekend/day1") || !strcmp(st, "weekend/day2")) \
386 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 386 set_state(PART:"elm.cit_"#_pos".text", "default", 0.0); \
387 } \ 387 } \
388 } \ 388 } \
389 program { \ 389 program { \
390 name: "cit_"#_pos".holiday_clear"; \ 390 name: "cit_"#_pos"_holiday_clear"; \
391 script { \ 391 script { \
392 new st[31]; \ 392 new st[31]; \
393 new Float:vl; \ 393 new Float:vl; \
394 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 394 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
395 if (!strcmp(st, "holiday")) \ 395 if (!strcmp(st, "holiday")) \
396 set_state(PART:"cit_"#_pos".text", "default", 0.0); \ 396 set_state(PART:"elm.cit_"#_pos".text", "default", 0.0); \
397 } \ 397 } \
398 } \ 398 } \
399 program { \ 399 program { \
400 name: "cit_"#_pos".checked"; \ 400 name: "cit_"#_pos"_checked"; \
401 signal: "cit_"#_pos",checked"; \ 401 signal: "cit_"#_pos",checked"; \
402 source: "elm"; \ 402 source: "elm"; \
403 action: STATE_SET "visible" 0.0; \ 403 action: STATE_SET "visible" 0.0; \
404 target: "cit_"#_pos".check"; \ 404 target: "cit_"#_pos"_check"; \
405 } \ 405 } \
406 program { \ 406 program { \
407 name: "cit_"#_pos".holiday"; \ 407 name: "cit_"#_pos"_holiday"; \
408 signal: "cit_"#_pos",holiday"; \ 408 signal: "cit_"#_pos",holiday"; \
409 source: "elm"; \ 409 source: "elm"; \
410 script { \ 410 script { \
411 new st[31]; \ 411 new st[31]; \
412 new Float:vl; \ 412 new Float:vl; \
413 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 413 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
414 if (strcmp(st, "today")) \ 414 if (strcmp(st, "today")) \
415 set_state(PART:"cit_"#_pos".text", "holiday", 0.0); \ 415 set_state(PART:"elm.cit_"#_pos".text", "holiday", 0.0); \
416 } \ 416 } \
417 } \ 417 } \
418 program { \ 418 program { \
419 name: "cit_"#_pos".weekend/day1"; \ 419 name: "cit_"#_pos"_weekend/day1"; \
420 signal: "cit_"#_pos",weekend/day1"; \ 420 signal: "cit_"#_pos",weekend/day1"; \
421 source: "elm"; \ 421 source: "elm"; \
422 script { \ 422 script { \
423 new st[31]; \ 423 new st[31]; \
424 new Float:vl; \ 424 new Float:vl; \
425 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 425 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
426 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ 426 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
427 set_state(PART:"cit_"#_pos".text", "weekend/day1", 0.0); \ 427 set_state(PART:"elm.cit_"#_pos".text", "weekend/day1", 0.0); \
428 } \ 428 } \
429 } \ 429 } \
430 program { \ 430 program { \
431 name: "cit_"#_pos".weekend/day2"; \ 431 name: "cit_"#_pos"_weekend/day2"; \
432 signal: "cit_"#_pos",weekend/day2"; \ 432 signal: "cit_"#_pos",weekend/day2"; \
433 source: "elm"; \ 433 source: "elm"; \
434 script { \ 434 script { \
435 new st[31]; \ 435 new st[31]; \
436 new Float:vl; \ 436 new Float:vl; \
437 get_state(PART:"cit_"#_pos".text", st, 30, vl); \ 437 get_state(PART:"elm.cit_"#_pos".text", st, 30, vl); \
438 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\ 438 if ((strcmp(st, "today")) && (strcmp(st, "holiday")) )\
439 set_state(PART:"cit_"#_pos".text", "weekend/day2", 0.0); \ 439 set_state(PART:"elm.cit_"#_pos".text", "weekend/day2", 0.0); \
440 } \ 440 } \
441 } \ 441 } \
442 } 442 }