From: Sungtaek Hong Date: Thu, 12 Jan 2017 09:47:12 +0000 (+0900) Subject: theme: set min size when icon is set X-Git-Tag: accepted/tizen/ivi/20170117.054829~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=264a02ca703f6517d5295f93e14d9c324ee9add4;p=platform%2Fcore%2Fcsapi%2Felm-sharp.git theme: set min size when icon is set Change-Id: I4e31dbb3d3930d7e4a147ba69b1fa2c478618389 Signed-off-by: Sungtaek Hong --- diff --git a/ElmSharp/theme/tv/widgets/button.edc b/ElmSharp/theme/tv/widgets/button.edc index b4e313a..d459557 100644 --- a/ElmSharp/theme/tv/widgets/button.edc +++ b/ElmSharp/theme/tv/widgets/button.edc @@ -93,11 +93,16 @@ group { name: "elm/button/base/default"; min: 0 0; max: 37 37; } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 37 37; + fixed: 1 1; + } } part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; - rel1.to_x: "pad.left"; + rel1.to_x: "elm.swallow.content"; rel1.relative: 1.0 0.0; rel2.to_x: "pad.right"; rel2.relative: 0.0 1.0; @@ -164,6 +169,16 @@ group { name: "elm/button/base/default"; target: "button_base"; target: "elm.text"; } + program { name: "icon_show"; + signal: "elm,state,icon,visible"; source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.content"; + } + program { name: "icon_hide"; + signal: "elm,state,icon,hidden"; source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + } program { name: "text_show"; signal: "elm,state,text,visible"; source: "elm"; script {