From 48ff4f2b887b473d6d6831b7b5b9610f41a62cdc Mon Sep 17 00:00:00 2001 From: Denis Dolzhenko Date: Fri, 5 May 2017 16:39:29 +0300 Subject: [PATCH] TizenRefApp-8198 [RTL] Back button reversed Change-Id: I33f27618b920314bfc11971779a41756ece5922e Signed-off-by: Denis Dolzhenko --- res/edje/button_theme.edc | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/res/edje/button_theme.edc b/res/edje/button_theme.edc index e4abb46d..6bc7b335 100755 --- a/res/edje/button_theme.edc +++ b/res/edje/button_theme.edc @@ -357,17 +357,32 @@ BUTTON_BODY_STYLES("plus_button",80,80,80,80) type: IMAGE; scale: 1; mouse_events: 0; + clip: "clipper_icon"; description { state: "default" 0.0; min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; fixed: 1 1; - color: BUTTON_NAVIFRAME_BACK_BUTTON_COLOR_WHITE; image.normal: "core_icon_back.png"; } + description { + state: "rtl" 0.0; + inherit: "default" 0.0; + map.on: 1; + map.rotation.y: 180.0; + } + } + part { + name: "clipper_icon"; + type: RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + color: BUTTON_NAVIFRAME_BACK_BUTTON_COLOR_WHITE; + } description { state: "blue" 0.0; - inherit: "default" 0.0; color: BUTTON_NAVIFRAME_BACK_BUTTON_COLOR_BLUE; } } @@ -520,13 +535,25 @@ BUTTON_BODY_STYLES("plus_button",80,80,80,80) signal: "button,color,blue"; source: "*"; action: STATE_SET "blue" 0.0; - target: "button_icon"; + target: "clipper_icon"; } program { name: "make_white"; signal: "button,color,white"; source: "*"; action: STATE_SET "default" 0.0; + target: "clipper_icon"; + } + program { + signal: "edje,state,rtl"; + source: "edje"; + action: STATE_SET "rtl"; + target: "button_icon"; + } + program { + signal: "edje,state,ltr"; + source: "edje"; + action: STATE_SET "default"; target: "button_icon"; } } @@ -572,6 +599,9 @@ BUTTON_BODY_STYLES("plus_button",80,80,80,80) description { "default"; visible: 0; } + description { "rtl"; + visible: 0; + } } part { name: "elm.text"; -- 2.34.1