From 15956bf1aa1f3891282900d79945b3eed4c1ba8d Mon Sep 17 00:00:00 2001 From: Jeonghyun Yun Date: Tue, 8 May 2018 18:12:55 +0900 Subject: layout: Add opacity to editfield layout for CSharp Change-Id: Ic8d63d336d739c7e853ba27f70c3eefd7ef8a40b Signed-off-by: Jeonghyun Yun --- mobile/color_classes.edc | 3 +++ mobile/widgets/layout.edc | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/mobile/color_classes.edc b/mobile/color_classes.edc index 6a62db9f..779225b6 100644 --- a/mobile/color_classes.edc +++ b/mobile/color_classes.edc @@ -1370,6 +1370,9 @@ color_classes { color_class { "layout/editfield/bg"; color: 0 0 0 0; } + color_class { "layout/editfield/opacity"; // Csharp Opacity Property + color: 255 255 255 255; + } color_class { "layout/editfield/underline"; color: 128 128 128 166; } diff --git a/mobile/widgets/layout.edc b/mobile/widgets/layout.edc index 319ffafa..eb509c2a 100644 --- a/mobile/widgets/layout.edc +++ b/mobile/widgets/layout.edc @@ -671,8 +671,14 @@ group { "elm/layout/searchbar/cancel_button"; group { "elm/layout/editfield/singleline"; parts { + rect { "clipper"; + desc { "default"; + color_class: "layout/editfield/opacity"; + } + } rect { "bg"; scale; + clip: "clipper"; desc { "default"; min: 0 EDITFIELD_BG_HEIGHT_INC; color_class: "layout/editfield/bg"; @@ -680,6 +686,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_top_left"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_TOP_LEFT_MIN_INC; fixed: 1 1; @@ -692,6 +699,7 @@ group { "elm/layout/editfield/singleline"; spacer { "padding_bottom_right"; type: SPACER; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_BOTTOM_RIGHT_MIN_INC; fixed: 1 1; @@ -703,6 +711,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_line_left"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_LINE_LEFT_MIN_INC; fixed: 1 0; @@ -714,6 +723,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_line_right"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_LINE_RIGHT_MIN_INC; fixed: 1 0; @@ -725,6 +735,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_line_bottom"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_LINE_BOTTOM_MIN_INC; fixed: 0 1; @@ -736,6 +747,7 @@ group { "elm/layout/editfield/singleline"; } rect { "line_rect"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_LINE_RECT_MIN_INC; fixed: 1 1; @@ -759,6 +771,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_elm.swallow.button_right"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_ELM_SWALLOW_BUTTON_RIGHT_MIN_INC; fixed: 1 0; @@ -772,6 +785,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "sizer_elm.swallow.button"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_ELM_SWALLOW_BUTTON_MIN_INC; fixed: 1 1; @@ -790,6 +804,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_elm.swallow.button_left"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_PADDING_ELM_SWALLOW_CONTENT_LEFT_MIN_INC; fixed: 1 0; @@ -808,6 +823,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_elm.swallow.content_left"; scale; + clip: "clipper"; desc { "default"; fixed: 1 0; min: EDITFIELD_PADDING_ELM_SWALLOW_CONTENT_LEFT_MIN_INC; @@ -825,6 +841,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "padding_elm.swallow.content_right"; scale; + clip: "clipper"; desc { "default"; fixed: 1 0; min: EDITFIELD_PADDING_ELM_SWALLOW_CONTENT_RIGHT_MIN_INC; @@ -842,6 +859,7 @@ group { "elm/layout/editfield/singleline"; } spacer { "sizer_elm.swallow.content"; scale; + clip: "clipper"; desc { "default"; min: EDITFIELD_ELM_SWALLOW_CONTENT_MIN_INC; rel1 { @@ -864,6 +882,7 @@ group { "elm/layout/editfield/singleline"; } swallow { "elm.swallow.content"; scale; + clip: "clipper"; desc { "default"; align: EDITFIELD_ELM_SWALLOW_CONTENT_ALIGN; rel.to: "sizer_elm.swallow.content"; @@ -871,6 +890,7 @@ group { "elm/layout/editfield/singleline"; } swallow { "elm.swallow.button"; scale; + clip: "clipper"; desc { "default"; fixed: 1 0; rel.to: "sizer_elm.swallow.button"; -- cgit v1.2.3