diff options
author | Jee-Yong Um <jc9.um@samsung.com> | 2015-08-28 11:09:41 +0900 |
---|---|---|
committer | Jee-Yong Um <jc9.um@samsung.com> | 2015-08-28 11:10:20 +0900 |
commit | 75ad19a2c24a1bde44b399c86276c4e39857ddc1 (patch) | |
tree | 0a8b0925b2200a2da10bb94d45c4fbeac239013f /mobile/widgets/hover.edc | |
parent | b5294f31001b10494d2de3b46e518f51a1ca7649 (diff) | |
download | efl-theme-tizen-mobile-75ad19a2c24a1bde44b399c86276c4e39857ddc1.tar.gz efl-theme-tizen-mobile-75ad19a2c24a1bde44b399c86276c4e39857ddc1.tar.bz2 efl-theme-tizen-mobile-75ad19a2c24a1bde44b399c86276c4e39857ddc1.zip |
[2.4][Hoversel] change align to show item larger
Change-Id: I800e7ecd82e5410a1baa290a3fd1afe58405bd31
Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Diffstat (limited to 'mobile/widgets/hover.edc')
-rw-r--r-- | mobile/widgets/hover.edc | 95 |
1 files changed, 87 insertions, 8 deletions
diff --git a/mobile/widgets/hover.edc b/mobile/widgets/hover.edc index ca244d84..fbee424d 100644 --- a/mobile/widgets/hover.edc +++ b/mobile/widgets/hover.edc @@ -21,6 +21,10 @@ group { name: "elm/hover/base/hoversel_vertical/default"; } } } + script { + public visible = 0; + public right = 0; + } parts { part { name: "elm.swallow.offset"; type: SWALLOW; @@ -232,6 +236,14 @@ group { name: "elm/hover/base/hoversel_vertical/default"; inherit: "default" 0.0; align: 0.0 1.0; } + description { state: "right" 0.0; + inherit: "default" 0.0; + align: 1.0 0.8; + } + description { state: "right_visible" 0.0; + inherit: "default" 0.0; + align: 1.0 1.0; + } } part { name: "bottom_bg"; type: IMAGE; @@ -297,11 +309,20 @@ group { name: "elm/hover/base/hoversel_vertical/default"; relative: 1.0 1.0; offset: -1 -2; } + } description { state: "visible" 0.0; inherit: "default" 0.0; align: 0.0 0.0; } + description { state: "right" 0.0; + inherit: "default" 0.0; + align: 1.0 0.2; + } + description { state: "right_visible" 0.0; + inherit: "default" 0.0; + align: 1.0 0.0; + } } part { name: "over1"; type: RECT; @@ -351,9 +372,16 @@ group { name: "elm/hover/base/hoversel_vertical/default"; after: "topshow2"; } program { name: "topshow2"; - action: STATE_SET "visible" 0.0; transition: DECELERATE 0.25; - target: "elm.swallow.slot.top"; + script { + if (get_int(right) == 0) { + set_state(PART:"elm.swallow.slot.top", "visible", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "right_visible", 0.0); + } + set_int(visible, 1); + } } program { name: "topshow3"; signal: "elm,action,slot,top,show"; @@ -364,9 +392,16 @@ group { name: "elm/hover/base/hoversel_vertical/default"; program { name: "tophide"; signal: "elm,action,slot,top,hide"; source: "elm"; - action: STATE_SET "default" 0.0; transition: DECELERATE 0.25; - target: "elm.swallow.slot.top"; + script { + if (get_int(right) == 0) { + set_state(PART:"elm.swallow.slot.top", "default", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "right", 0.0); + } + set_int(visible, 0); + } after: "tophide2"; } program { name: "tophide2"; @@ -385,9 +420,16 @@ group { name: "elm/hover/base/hoversel_vertical/default"; after: "bottomshow2"; } program { name: "bottomshow2"; - action: STATE_SET "visible" 0.0; transition: DECELERATE 0.25; - target: "elm.swallow.slot.bottom"; + script { + if (get_int(right) == 0) { + set_state(PART:"elm.swallow.slot.bottom", "visible", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.bottom", "right_visible", 0.0); + } + set_int(visible, 1); + } } program { name: "bottomshow3"; signal: "elm,action,slot,bottom,show"; @@ -398,9 +440,16 @@ group { name: "elm/hover/base/hoversel_vertical/default"; program { name: "bottomhide"; signal: "elm,action,slot,bottom,hide"; source: "elm"; - action: STATE_SET "default" 0.0; transition: DECELERATE 0.25; - target: "elm.swallow.slot.bottom"; + script { + if (get_int(right) == 0) { + set_state(PART:"elm.swallow.slot.bottom", "default", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.bottom", "right", 0.0); + } + set_int(visible, 0); + } after: "bottomhide2"; } program { name: "bottomhide2"; @@ -409,5 +458,35 @@ group { name: "elm/hover/base/hoversel_vertical/default"; target: "bottom_clipper"; target: "bottom_border"; } + program { name: "align_right"; + signal: "elm,state,align,right"; + source: "elm"; + script { + set_int(right, 1); + if (get_int(visible) == 0) { + set_state(PART:"elm.swallow.slot.top", "right", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "right", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "right_visible", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "right_visible", 0.0); + } + } + } + program { name: "align_default"; + signal: "elm,state,align,default"; + source: "elm"; + script { + set_int(right, 0); + if (get_int(visible) == 0) { + set_state(PART:"elm.swallow.slot.top", "default", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "default", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "visible", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "visible", 0.0); + } + } + } } } |