diff options
author | Jehun Lim <jehun.lim@samsung.com> | 2015-07-14 20:11:02 +0900 |
---|---|---|
committer | Jehun Lim <jehun.lim@samsung.com> | 2015-07-14 20:11:02 +0900 |
commit | 8554fc7c7f97f5ee05563f137853357efc365588 (patch) | |
tree | 704f7a6b3f479e0c88c2eb5ca47f37631ed74329 /res | |
parent | 20c9fb84fbb5a83b8769680b1b8cb1541c59b676 (diff) | |
download | air_mediahub-8554fc7c7f97f5ee05563f137853357efc365588.tar.gz air_mediahub-8554fc7c7f97f5ee05563f137853357efc365588.tar.bz2 air_mediahub-8554fc7c7f97f5ee05563f137853357efc365588.zip |
modify the width of index button to be flexible
Change-Id: I5bc5f3e2524e2cd9be96f69db3a0c6aae7665ba5
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/edc/widgets/button.edc | 48 |
1 files changed, 40 insertions, 8 deletions
diff --git a/res/edc/widgets/button.edc b/res/edc/widgets/button.edc index ea45e4b..f203cd3 100644 --- a/res/edc/widgets/button.edc +++ b/res/edc/widgets/button.edc @@ -127,7 +127,6 @@ group { group { name: "elm/button/base/base_btn_index"; - inherit: "elm/button/base/base_btn_menu"; data.item: "focus_highlight" "on"; parts { part { @@ -135,9 +134,18 @@ group { scale: 1; description { state: "default" 0.0; - min: 0 36; color: 0 0 0 0; - fixed: 0 1; + } + } + part { + name: "bg_text"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + color: 0 0 0 0; } description { state: "focused" 0.0; @@ -152,16 +160,20 @@ group { description { state: "default" 0.0; rel1.to: "bg"; - rel2.to: "bg"; + rel2 { + to: "bg"; + relative: 0.0 0.0; + } text { font: FONT_LIGHT; size: 36; - align: 0.0 0.5; + min: 1 0; + align: 0.0 0.7; + ellipsis: -1; } - min: 82 0; - align: 0.0 0.5; - color: COLOR_TEXT_INDEX; + min: 0 36; align: 0.0 0.0; + color: COLOR_TEXT_INDEX; fixed: 1 1; } description { @@ -172,6 +184,26 @@ group { } } } + programs { + program { + name: "focused"; + signal: "elm,action,focus"; + source: "elm"; + action: STATE_SET "focused" 0.0; + target: "bg_text"; + target: "elm.text"; + transition: LINEAR TRANSITION_TIME; + } + program { + name: "unfocused"; + signal: "elm,action,unfocus"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_text"; + target: "elm.text"; + transition: LINEAR TRANSITION_TIME; + } + } } group { |