aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-01-04 14:34:06 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-01-04 14:34:10 -0800
commitfd142aa2fbd8b9f5a09c571ca91772142de1190e (patch)
treeb50ebe1268b3c063273584a8d94936fe5f23e3e1 /data/themes/edc
parentinwin: remove a meaningless line in sizing_eval (diff)
downloadelementary-fd142aa2fbd8b9f5a09c571ca91772142de1190e.tar.gz
calendar: add color classes and text classes.
Summary: The following new color classes and text classes for calendar widget are added. "calendar_year_text" - Year Text in Title Area "calendar_month_text" - Month Text in Title Area "calendar_weekday_text" - Weekday Text "calendar_day_text" - Day Text "calendar_day_text_holiday" - Holiday Text "calendar_day_text_today" - Today Text "calendar_day_text_disabled" - Disabled Day Text "calendar_day_selected" - Selected Day Effect "calendar_day_highlighted" - Highlighted Day Effect "calendar_day_checked" - Checked Day Effect @feature Test Plan: N/A Reviewers: woohyun, raster, cedric, kimcinoo, jaehwan Subscribers: CHAN Differential Revision: https://phab.enlightenment.org/D3482 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'data/themes/edc')
-rw-r--r--data/themes/edc/elm/calendar.edc24
1 files changed, 15 insertions, 9 deletions
diff --git a/data/themes/edc/elm/calendar.edc b/data/themes/edc/elm/calendar.edc
index b706a82e3..5ba602a31 100644
--- a/data/themes/edc/elm/calendar.edc
+++ b/data/themes/edc/elm/calendar.edc
@@ -1,15 +1,15 @@
#define CIT_STYLES\
style { name: "calendar_date_style";\
- base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 align=center";\
+ base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text color_class=calendar_day_text";\
}\
style { name: "calendar_date_holiday_style";\
- base: "font="FN" font_size=10 color=#808080 style=shadow,bottom shadow_color=#00000080 align=center";\
+ base: "font="FN" font_size=10 color=#808080 style=shadow,bottom shadow_color=#00000080 align=center text_class=calendar_day_text_holiday color_class=calendar_day_text_holiday";\
}\
style { name: "calendar_date_today_style";\
- base: "font="FN" font_size=10 color=#3399ff style=glow glow_color=#3399ff18 align=center";\
+ base: "font="FN" font_size=10 color=#3399ff style=glow glow_color=#3399ff18 align=center text_class=calendar_day_text_today color_class=calendar_day_text_today";\
}\
style { name: "calendar_date_disabled_style";\
- base: "font="FN" font_size=10 color=#151515 style=shadow_bottom shadow_color=#ffffffc0 align=center";\
+ base: "font="FN" font_size=10 color=#151515 style=shadow_bottom shadow_color=#ffffffc0 align=center text_class=calendar_day_text_disabled text_class=calendar_day_text_disabled";\
}\
#define CAL_SPIN(_sufix, _text, _relative)\
@@ -83,10 +83,11 @@
rel2 { relative: 0.0 1.0;\
to: "right_bt"#_sufix;\
}\
- color: FN_COL_DEFAULT;\
text { font: FNBD; size: 10;\
min: 0 1;\
+ text_class: "calendar_"#_text; \
}\
+ color_class: "calendar_"#_text; \
}\
}
@@ -110,11 +111,12 @@
description { state: "default" 0.0; \
rel1.to: "ch_"#_pos".base"; \
rel2.to: "ch_"#_pos".base"; \
- color: FN_COL_DISABLE;\
text { font: FN; size: 8; \
min: 1 1; \
ellipsis: -1; \
+ text_class: "calendar_weekday_text"; \
} \
+ color_class: "calendar_weekday_text"; \
} \
} \
part { name: "ch_"#_pos".clipper"; type: RECT; \
@@ -155,6 +157,7 @@
image.normal: "diagonal_stripes.png"; \
color: 255 255 255 25; \
TILED_PATTERN(240, 240) \
+ color_class: "calendar_day_selected"; \
visible: 0; \
} \
description { state: "selected" 0.0; \
@@ -168,6 +171,7 @@
rel2.to: "cit_"#_pos".rect"; \
image.normal: "outline_glow.png"; \
image.border: 4 4 4 4; \
+ color_class: "calendar_day_selected"; \
visible: 0; \
} \
description { state: "selected" 0.0; \
@@ -181,11 +185,12 @@
rel2.to: "cit_"#_pos".rect"; \
image.normal: "outline_glow.png"; \
image.border: 4 4 4 4; \
+ color: 255 255 255 128; \
+ color_class: "calendar_day_highlighted"; \
visible: 0; \
} \
- description { state: "hilighted" 0.0; \
+ description { state: "highlighted" 0.0; \
inherit: "default" 0.0; \
- color: 255 255 255 128; \
visible: 1; \
} \
} \
@@ -228,6 +233,7 @@
aspect: 1 1; \
align: 0.0 1.0;\
image.normal: "icon_border_remember.png"; \
+ color_class: "calendar_day_checked"; \
visible: 0; \
} \
description { state: "visible" 0.0; \
@@ -296,7 +302,7 @@
source: "cit_"#_pos".clicked"; \
signal: "mouse,down,1"; \
source: "cit_"#_pos".event"; \
- action: STATE_SET "hilighted" 0.0; \
+ action: STATE_SET "highlighted" 0.0; \
target: "cit_"#_pos".selected2"; \
} \
program { \