diff options
author | shilpa singh <shilpa.singh@samsung.com> | 2013-07-02 16:29:43 +0530 |
---|---|---|
committer | Sungho Kwak <sungho1.kwak@samsung.com> | 2013-07-04 16:18:13 +0900 |
commit | fd55b236f30032514f89550e57c5d608208101ad (patch) | |
tree | 7033e0d259f739b221c7d0366ee5dae0b2debe09 /themes | |
parent | d0f6baf1179a4e03587fc8406cc7d00c7784a427 (diff) | |
download | efl-theme-tizen-fd55b236f30032514f89550e57c5d608208101ad.tar.gz efl-theme-tizen-fd55b236f30032514f89550e57c5d608208101ad.tar.bz2 efl-theme-tizen-fd55b236f30032514f89550e57c5d608208101ad.zip |
[Progressbar]: 0.9 Landscape mode based changes for pending_list style.
Change-Id: I37c970e9ac7381050991eccd97570ee8d0f3c83e
Diffstat (limited to 'themes')
-rw-r--r-- | themes/widgets/progressbar.edc | 66 |
1 files changed, 62 insertions, 4 deletions
diff --git a/themes/widgets/progressbar.edc b/themes/widgets/progressbar.edc index 6878fa4a..ea7c2d0a 100644 --- a/themes/widgets/progressbar.edc +++ b/themes/widgets/progressbar.edc @@ -991,8 +991,11 @@ group { name: "elm/progressbar/horizontal/pending_list"; images { + image: "00_progress_bg.png" COMP; image: "00_progress_pending_01_bg.png" COMP; image: "00_progress_pending_02_bg.png" COMP; + image: "00_progress_pending_01_bg_h.png" COMP; + image: "00_progress_pending_02_bg_h.png" COMP; } parts { part { name: "access"; @@ -1083,6 +1086,14 @@ inherit: "default" 0.0; } description { + state: "state_begin_landscape" 0.0; + inherit: "default" 0.0; + image { + normal: "00_progress_pending_01_bg_h.png"; + border: 0 0 0 0; + } + } + description { state: "state_end" 0.0; inherit: "default" 0.0; image { @@ -1090,20 +1101,39 @@ border: 0 0 0 0; } } + description { + state: "state_end_landscape" 0.0; + inherit: "default" 0.0; + image { + normal: "00_progress_pending_02_bg_h.png"; + border: 0 0 0 0; + } + } } } + script { + public landscape = 0; + } programs { program { name: "slide_to_end"; - action: STATE_SET "state_end" 0.0; in: 0.3 0.0; - target: "elm.progress.progressbar"; + script { + if (!get_int(landscape)) + set_state(PART:"elm.progress.progressbar", "state_end", 0.0); + else + set_state(PART:"elm.progress.progressbar", "state_end_landscape", 0.0); + } after: "slide_to_begin"; } program { name: "slide_to_begin"; signal: "elm,state,slide,begin"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; in: 0.3 0.0; + script { + if (!get_int(landscape)) + set_state(PART:"elm.progress.progressbar", "state_begin", 0.0); + else + set_state(PART:"elm.progress.progressbar", "state_begin_landscape", 0.0); + } after: "slide_to_end"; } program { name: "start_pulse"; @@ -1124,6 +1154,34 @@ action: STATE_SET "default" 0.0; target: "elm.progress.progressbar"; } + program { name: "landscape_mode"; + source: "elm"; + signal: "elm,state,orient,90"; + script { + set_int(landscape, 1); + } + } + program { name: "landscape_mode2"; + source: "elm"; + signal: "elm,state,orient,270"; + script { + set_int(landscape, 1); + } + } + program { name: "portrait_mode"; + source: "elm"; + signal: "elm,state,orient,0"; + script { + set_int(landscape, 0); + } + } + program { name: "portrait_mode2"; + source: "elm"; + signal: "elm,state,orient,180"; + script { + set_int(landscape, 0); + } + } } } |