TizenRefApp-8198 [RTL] Back button reversed 11/128111/1 submit/tizen/20170510.125805
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 5 May 2017 13:39:29 +0000 (16:39 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Fri, 5 May 2017 13:39:29 +0000 (16:39 +0300)
Change-Id: I33f27618b920314bfc11971779a41756ece5922e
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
res/edje/button_theme.edc

index e4abb46d46024ce671026498dce56835d97d8e8d..6bc7b3352adac7b57472827f8fafdfc3048f370f 100755 (executable)
@@ -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";