diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2015-06-25 16:13:56 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-06-25 17:24:08 +0200 |
commit | 60396b1158df8a6ea4ca958c6ead92965ca61822 (patch) | |
tree | 6e6f6da96b9bb9bf477c5e3d251fea00dd285822 /data | |
parent | 4fe4ee851673817043773d66d2b1552b9c0141d1 (diff) | |
download | elementary-60396b1158df8a6ea4ca958c6ead92965ca61822.tar.gz |
calendar: show days of prev/next month.
Summary:
Show days of previous and next month on the blank area of calendar.
@feature
Test Plan: See calendar widget on elementary_test.
Reviewers: raster, seoz, woohyun, cedric
Reviewed By: cedric
Differential Revision: https://phab.enlightenment.org/D2728
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'data')
-rw-r--r-- | data/themes/edc/elm/calendar.edc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/data/themes/edc/elm/calendar.edc b/data/themes/edc/elm/calendar.edc index b1b15c854..35a0367fc 100644 --- a/data/themes/edc/elm/calendar.edc +++ b/data/themes/edc/elm/calendar.edc @@ -8,6 +8,9 @@ style { name: "calendar_date_today_style";\ base: "font="FN" font_size=10 color=#3399ff style=glow glow_color=#3399ff18 align=center";\ }\ + style { name: "calendar_date_disabled_style";\ + base: "font="FN" font_size=10 color=#151515 style=shadow_bottom shadow_color=#ffffffc0 align=center";\ + }\ #define CAL_SPIN(_sufix, _signal_sufix, _text, _relative)\ part { name: "left_bt"#_sufix; type: RECT;\ @@ -291,6 +294,10 @@ inherit: "default" 0.0; \ text.style: "calendar_date_today_style"; \ } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + text.style: "calendar_date_disabled_style"; \ + } \ } \ part { name: "cit_"#_pos".check"; mouse_events: 0; \ scale: 1; \ @@ -355,6 +362,25 @@ target: "cit_"#_pos".text"; \ } \ program { \ + name: "cit_"#_pos".enable"; \ + signal: "cit_"#_pos",enable"; \ + source: "elm"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"cit_"#_pos".text", st, 30, vl); \ + if (!strcmp(st, "disabled")) \ + set_state(PART:"cit_"#_pos".text", "default", 0.0); \ + } \ + } \ + program { \ + name: "cit_"#_pos".disable"; \ + signal: "cit_"#_pos",disable"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + target: "cit_"#_pos".text"; \ + } \ + program { \ source: "cit_"#_pos".clicked"; \ signal: "mouse,down,1"; \ source: "cit_"#_pos".event"; \ |