Elementary theme: Adjusted the elementary theme for better UI-mirroring
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Feb 2011 12:08:35 +0000 (12:08 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Feb 2011 12:08:35 +0000 (12:08 +0000)
support.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56804 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

data/themes/Makefile.am
data/themes/default.edc
data/themes/tog_base.png [deleted file]
data/themes/tog_base_off.png [new file with mode: 0644]
data/themes/tog_base_on.png [new file with mode: 0644]
data/themes/tog_dis_base.png [deleted file]
data/themes/tog_dis_base_off.png [new file with mode: 0644]
data/themes/tog_dis_base_on.png [new file with mode: 0644]

index 4e36cc0..d24fcfa 100644 (file)
@@ -65,8 +65,10 @@ head.png \
 sb_runnerh.png \
 sb_runnerv.png \
 shelf_inset.png \
-tog_base.png \
-tog_dis_base.png \
+tog_base_on.png \
+tog_base_off.png \
+tog_dis_base_on.png \
+tog_dis_base_off.png \
 shad_circ.png \
 bt_dis_base.png \
 bt_dis_hilight.png \
index 3180d8b..d3ee8a1 100644 (file)
@@ -3060,8 +3060,13 @@ collections {
         image: "bt_basew.png" COMP;
         image: "bt_bases.png" COMP;
         image: "bt_hilightw.png" COMP;
-        image: "tog_base.png" COMP;
-        image: "tog_dis_base.png" COMP;
+        image: "tog_base_on.png" COMP;
+        image: "tog_base_off.png" COMP;
+        image: "tog_dis_base_on.png" COMP;
+        image: "tog_dis_base_off.png" COMP;
+      }
+      script {
+         public is_rtl;
       }
       parts {
          part { name: "bg";
@@ -3126,7 +3131,7 @@ collections {
            }
         }
          part { name: "onrect";
-           type: RECT;
+           type: IMAGE;
            scale: 1;
            clip_to: "clipper";
            mouse_events: 0;
@@ -3134,35 +3139,30 @@ collections {
               rel1.to: "button";
               rel1.relative: -5.0 0.0;
               rel2.to: "button";
-              rel2.relative: 0.0 1.0;
-              color: 0 0 0 0;
+              rel2.relative: 0.5 1.0;
+              image.normal: "tog_base_on.png";
            }
+            description { state: "disabled" 0.0;
+               inherit: "default" 0.0;
+               image.normal: "tog_dis_base_on.png";
+            }
         }
          part { name: "offrect";
-           type: RECT;
+           type: IMAGE;
            scale: 1;
            clip_to: "clipper";
            mouse_events: 0;
            description { state: "default" 0.0;
               rel1.to: "button";
-              rel1.relative: 1.0 0.0;
+              rel1.relative: 0.5 0.0;
               rel2.to: "button";
               rel2.relative: 6.0 1.0;
-              color: 0 0 0 0;
-           }
-        }
-        part { name: "togbase";
-           mouse_events:  0;
-           clip_to: "clipper";
-           description { state: "default" 0.0;
-              rel1.to: "onrect";
-              rel2.to: "offrect";
-              image.normal: "tog_base.png";
-           }
-           description { state: "disabled" 0.0;
-              inherit: "default" 0.0;
-              image.normal: "tog_dis_base.png";
+              image.normal: "tog_base_off.png";
            }
+            description { state: "disabled" 0.0;
+               inherit: "default" 0.0;
+               image.normal: "tog_dis_base_off.png";
+            }
         }
          part { name: "elm.offtext";
            type: TEXT;
@@ -3171,7 +3171,8 @@ collections {
            clip_to: "clipper";
            description { state: "default" 0.0;
                fixed: 1 1;
-              rel1.to_x: "offrect";
+              rel1.to_x: "button";
+               rel1.relative: 1.0 0.0;
               rel2.to_x: "offrect";
               color: 0 0 0 255;
               text {
@@ -3197,8 +3198,9 @@ collections {
                fixed: 1 1;
               rel1.to_x: "onrect";
               rel1.offset: 1 1;
-              rel2.to_x: "onrect";
+              rel2.to_x: "button";
               rel2.offset: 0 0;
+               rel2.relative: 0.0 1.0;
               color: 224 224 224 255;
               color3: 0 0 0 64;
               text {
@@ -3359,27 +3361,47 @@ collections {
               if (dx > 0.5)
                 {
                    set_drag(PART:"button", 1.0, 0.0);
-                   emit("elm,action,toggle,on", "");
                 }
               else
                 {
                    set_drag(PART:"button", 0.0, 0.0);
-                   emit("elm,action,toggle,off", "");
                 }
+               if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
+                   (get_int(is_rtl) == 0) && (dx > 0.5)) {
+                  emit("elm,action,toggle,on", "");
+               }
+               else {
+                  emit("elm,action,toggle,off", "");
+               }
+                   
            }
         }
         program { name: "toggle_on";
            signal: "elm,state,toggle,on";
            source: "elm";
            script {
-              set_drag(PART:"button", 100.0, 0.0);
+               new Float:drag;
+               if (get_int(is_rtl) == 0) {
+                  drag = 100.0;
+               }
+               else {
+                  drag = 0.0;
+               }
+              set_drag(PART:"button", drag, 0.0);
            }
         }
         program { name: "toggle_off";
            signal: "elm,state,toggle,off";
            source: "elm";
            script {
-              set_drag(PART:"button", 0.0, 0.0);
+               new Float:drag;
+               if (get_int(is_rtl) == 0) {
+                  drag = 0.0;
+               }
+               else {
+                  drag = 100.0;
+               }
+              set_drag(PART:"button", drag, 0.0);
            }
         }
         program { name: "text_show";
@@ -3410,9 +3432,10 @@ collections {
            signal: "elm,state,disabled";
            source: "elm";
            action: STATE_SET "disabled" 0.0;
-           target: "togbase";
            target: "elm.offtext";
            target: "elm.ontext";
+            target: "onrect";
+            target: "offrect";
            target: "disabler";
             after: "disable_text";
         }
@@ -3438,6 +3461,8 @@ collections {
            source: "elm";
            action: STATE_SET "default" 0.0;
            target: "disabler";
+            target: "onrect";
+            target: "offrect";
             after: "enable_text";
         }
          program { name: "enable_text";
@@ -3457,6 +3482,20 @@ collections {
                 set_state(PART:"elm.swallow.content", "default", 0.0);
            }
          }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               set_int(is_rtl, 1);
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               set_int(is_rtl, 0);
+            }
+         }
       }
    }
 
@@ -4752,6 +4791,7 @@ collections {
            image: "bt_dis_base.png" COMP;
            image: "bt_dis_hilight.png" COMP;
            image: "arrow_right.png" COMP;
+           image: "arrow_left.png" COMP;
        }
        script {
             public menu_text_visible; //0:hide (default), 1:visible
@@ -4808,6 +4848,10 @@ collections {
                        normal: "arrow_right.png";
                    }
                }
+               description { state: "rtl" 0.0;
+                  inherit: "default" 0.0;
+                  image.normal: "arrow_left.png";
+               }
            }
            part { name: "elm.swallow.content";
                type: SWALLOW;
@@ -5108,6 +5152,18 @@ collections {
                    set_int(menu_disable, 0);
                }
            }
+           program { name: "to_rtl";
+               signal: "edje,state,rtl";
+               source: "edje";
+               action: STATE_SET "rtl" 0.0;
+               target: "arrow";
+           }
+           program { name: "to_ltr";
+               signal: "edje,state,ltr";
+               source: "edje";
+               action: STATE_SET "default" 0.0;
+               target: "arrow";
+           }
        }
    }
 
@@ -8959,7 +9015,9 @@ collections {
     alias: "elm/bubble/base/default";
     images {
       image: "bubble_3.png" COMP;
+      image: "bubble_4.png" COMP;
       image: "bubble_shine3.png" COMP;
+      image: "bubble_shine4.png" COMP;
     }
     parts {
       part { name: "event";
@@ -9105,6 +9163,13 @@ collections {
           }
           fill.smooth: 0;
         }
+        description { state: "rtl" 0.0;
+           inherit: "default" 0.0;
+           image {
+              normal: "bubble_shine4.png";
+              border: 5 36 14 0;
+           }
+        }
       }
     }
     programs {
@@ -9321,6 +9386,13 @@ collections {
           }
           fill.smooth: 0;
         }
+        description { state: "rtl" 0.0;
+           inherit: "default" 0.0;
+           image {
+              normal: "bubble_shine3.png";
+              border: 36 5 14 0;
+           }
+        }
       }
     }
     programs {
@@ -17580,6 +17652,7 @@ collections {
          image: "bt_sm_hilight.png" COMP;
          image: "ilist_1.png" COMP;
          image: "ilist_item_shadow.png" COMP;
+         image: "icon_arrow_left.png" COMP;
          image: "icon_arrow_right.png" COMP;
          image: "icon_arrow_down.png" COMP;
       }
@@ -17697,10 +17770,18 @@ collections {
                }
                image.normal: "icon_arrow_right.png";
             }
+            description { state: "default" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_left.png";
+            }
             description { state: "active" 0.0;
                inherit: "default" 0.0;
                image.normal: "icon_arrow_down.png";
             }
+            description { state: "active" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_down.png";
+            }
          }
          part { name: "elm.swallow.icon";
             clip_to: "disclip";
@@ -17876,15 +17957,47 @@ collections {
             name:    "go_expanded";
             signal:  "elm,state,expanded";
             source:  "elm";
-            action:  STATE_SET "active" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "active", vl);
+            }
          }
          program {
             name:    "go_contracted";
             signal:  "elm,state,contracted";
             source:  "elm";
-            action:  STATE_SET "default" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "default", vl);
+            }
+         }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow", st, 0.1);
+               }
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow", st, 0.0);
+               }
+            }
          }
       }
    }
@@ -17901,6 +18014,7 @@ collections {
          image: "bt_sm_hilight.png" COMP;
          image: "ilist_1.png" COMP;
          image: "ilist_item_shadow.png" COMP;
+         image: "icon_arrow_left.png" COMP;
          image: "icon_arrow_right.png" COMP;
          image: "icon_arrow_down.png" COMP;
       }
@@ -18018,10 +18132,18 @@ collections {
                }
                image.normal: "icon_arrow_right.png";
             }
+            description { state: "default" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_left.png";
+            }
             description { state: "active" 0.0;
                inherit: "default" 0.0;
                image.normal: "icon_arrow_down.png";
             }
+            description { state: "active" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_down.png";
+            }
          }
          part { name: "elm.swallow.icon";
             clip_to: "disclip";
@@ -18197,15 +18319,47 @@ collections {
             name:    "go_expanded";
             signal:  "elm,state,expanded";
             source:  "elm";
-            action:  STATE_SET "active" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "active", vl);
+            }
          }
          program {
             name:    "go_contracted";
             signal:  "elm,state,contracted";
             source:  "elm";
-            action:  STATE_SET "default" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "default", vl);
+            }
+         }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow", st, 0.1);
+               }
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow", st, 0.0);
+               }
+            }
          }
       }
    }
@@ -18221,6 +18375,7 @@ collections {
          image: "bt_sm_shine.png" COMP;
          image: "bt_sm_hilight.png" COMP;
          image: "ilist_2.png" COMP;
+         image: "icon_arrow_left.png" COMP;
          image: "icon_arrow_right.png" COMP;
          image: "icon_arrow_down.png" COMP;
       }
@@ -18314,10 +18469,18 @@ collections {
                }
                image.normal: "icon_arrow_right.png";
             }
+            description { state: "default" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_left.png";
+            }
             description { state: "active" 0.0;
                inherit: "default" 0.0;
                image.normal: "icon_arrow_down.png";
             }
+            description { state: "active" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_down.png";
+            }
          }
          part { name: "elm.swallow.icon";
             clip_to: "disclip";
@@ -18493,15 +18656,47 @@ collections {
             name:    "go_expanded";
             signal:  "elm,state,expanded";
             source:  "elm";
-            action:  STATE_SET "active" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "active", vl);
+            }
          }
          program {
             name:    "go_contracted";
             signal:  "elm,state,contracted";
             source:  "elm";
-            action:  STATE_SET "default" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "default", vl);
+            }
+         }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow", st, 0.1);
+               }
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow", st, 0.0);
+               }
+            }
          }
       }
    }
@@ -18517,6 +18712,7 @@ collections {
          image: "bt_sm_shine.png" COMP;
          image: "bt_sm_hilight.png" COMP;
          image: "ilist_2.png" COMP;
+         image: "icon_arrow_left.png" COMP;
          image: "icon_arrow_right.png" COMP;
          image: "icon_arrow_down.png" COMP;
       }
@@ -18610,10 +18806,18 @@ collections {
                }
                image.normal: "icon_arrow_right.png";
             }
+            description { state: "default" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_left.png";
+            }
             description { state: "active" 0.0;
                inherit: "default" 0.0;
                image.normal: "icon_arrow_down.png";
             }
+            description { state: "active" 0.1;
+               inherit: "default" 0.0;
+               image.normal: "icon_arrow_down.png";
+            }
          }
          part { name: "elm.swallow.icon";
             clip_to: "disclip";
@@ -18789,15 +18993,47 @@ collections {
             name:    "go_expanded";
             signal:  "elm,state,expanded";
             source:  "elm";
-            action:  STATE_SET "active" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "active", vl);
+            }
          }
          program {
             name:    "go_contracted";
             signal:  "elm,state,contracted";
             source:  "elm";
-            action:  STATE_SET "default" 0.0;
-            target:  "arrow";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               set_state(PART:"arrow", "default", vl);
+            }
+         }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow", st, 0.1);
+               }
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow", st, 0.0);
+               }
+            }
          }
       }
    }
@@ -28039,6 +28275,10 @@ collections {
                    aspect_preference: BOTH;
                    image.normal: "sp_bt_l.png";
                }
+               description { state: "rtl" 0.0;
+                   inherit: "default" 0.0;
+                   image.normal: "sp_bt_r.png";
+               }
            }
            part { name: "right_bt_icon";
                repeat_events: 1;
@@ -28053,6 +28293,10 @@ collections {
                    aspect_preference: BOTH;
                    image.normal: "sp_bt_r.png";
                }
+               description { state: "rtl" 0.0;
+                   inherit: "default" 0.0;
+                   image.normal: "sp_bt_l.png";
+               }
            }
            part { name: "elm.text";
                type: TEXT;
@@ -28381,6 +28625,20 @@ collections {
                source: "button_events";
                action: SIGNAL_EMIT "elm,action,entry,toggle" "";
            }
+           program { name: "to_rtl";
+               signal: "edje,state,rtl";
+               source: "edje";
+               action: STATE_SET "rtl" 0.0;
+               target: "right_bt_icon";
+               target: "left_bt_icon";
+           }
+           program { name: "to_ltr";
+               signal: "edje,state,ltr";
+               source: "edje";
+               action: STATE_SET "default" 0.0;
+               target: "right_bt_icon";
+               target: "left_bt_icon";
+           }
        }
    }
 
@@ -29110,8 +29368,8 @@ collections {
                    }
                    rel2 {
                        to: "base";
-                       relative: 1.0  1.0;
-                       offset:   -5 -5;
+                       relative: 0.5  1.0;
+                       offset:   -1 -1;
                    }
                    color: 0 0 0 128;
                    text {
@@ -29119,7 +29377,7 @@ collections {
                        size: 10;
                        min: 1 1;
                             //                  min: 0 1;
-                       align: 0.0 0.5;
+                       align: 0.5 0.5;
                    }
                }
                description { state: "active" 0.0;
@@ -29186,8 +29444,8 @@ collections {
                    }
                    rel2 {
                        to: "base";
-                       relative: 1.0  1.0;
-                       offset:   -5 -5;
+                       relative: 0.5  1.0;
+                       offset:   -1 -1;
                    }
                    color: 0 0 0 128;
                    text {
@@ -29195,7 +29453,7 @@ collections {
                        size: 10;
                        min: 1 1;
                             //                  min: 0 1;
-                       align: 0.0 0.5;
+                       align: 0.5 0.5;
                    }
                }
                description { state: "active" 0.0;
@@ -31575,6 +31833,13 @@ collections {
           image.middle: SOLID;
           fill.smooth: 0;
         }
+        description { state: "rtl" 0.0;
+           inherit: "default" 0.0;
+           image {
+              normal: "bubble_4.png";
+              border: 11 36 18 9;
+           }
+        }
       }
       part { name: "elm.swallow.content";
         type: SWALLOW;
@@ -31809,18 +32074,36 @@ collections {
 
                 fixed: 1 1;
             }
+            description { state: "default" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_left.png";
+            }
             description { state: "anim_1" 0.0;
                 inherit: "default" 0.0;
                 color: 255 255 255 200;
                 rel1.offset: (45/2 + 10) -45/2;
                 rel2.offset: (45/2 +10) 45/2;
             }
+            description { state: "anim_1" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_left.png";
+                color: 255 255 255 200;
+                rel1.offset: (45/2 + 10) -45/2;
+                rel2.offset: (45/2 +10) 45/2;
+            }
             description { state: "anim_2" 0.0;
                 inherit: "default" 0.0;
                 color: 255 255 255 0;
                 rel1.offset: (45/2 + 20) -45/2;
                 rel2.offset: (45/2 + 20) 45/2;
             }
+            description { state: "anim_2" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_left.png";
+                color: 255 255 255 0;
+                rel1.offset: (45/2 + 20) -45/2;
+                rel2.offset: (45/2 + 20) 45/2;
+            }
          }
         part {
             name: "arrow_left";
@@ -31842,18 +32125,36 @@ collections {
 
                 fixed: 1 1;
             }
+            description { state: "default" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_right.png";
+            }
             description { state: "anim_1" 0.0;
                 inherit: "default" 0.0;
                 color: 255 255 255 200;
                 rel1.offset: (-45/2 - 10) -45/2;
                 rel2.offset: (-45/2 - 10) 45/2;
             }
+            description { state: "anim_1" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_right.png";
+                color: 255 255 255 200;
+                rel1.offset: (-45/2 - 10) -45/2;
+                rel2.offset: (-45/2 - 10) 45/2;
+            }
             description { state: "anim_2" 0.0;
                 inherit: "default" 0.0;
                 color: 255 255 255 0;
                 rel1.offset: (-45/2 - 20) -45/2;
                 rel2.offset: (-45/2 - 20) 45/2;
             }
+            description { state: "anim_2" 0.1;
+                inherit: "default" 0.0;
+                image.normal: "arrow_right.png";
+                color: 255 255 255 0;
+                rel1.offset: (-45/2 - 20) -45/2;
+                rel2.offset: (-45/2 - 20) 45/2;
+            }
          }
 
        }
@@ -31915,42 +32216,141 @@ collections {
          //arrows animation
          program {
             name: "arrow_anim_start";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow_left", st, 30, vl);
+               if (vl == 0.0) {
+                  run_program(PROGRAM:"arrow_anim_start_ltr");
+               }
+               else {
+                  run_program(PROGRAM:"arrow_anim_start_rtl");
+               }
+            }
+         }
+         program {
+            name: "arrow_anim_stop";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow_left", st, 30, vl);
+               if (vl == 0.0) {
+                  run_program(PROGRAM:"arrow_anim_stop_ltr");
+               }
+               else {
+                  run_program(PROGRAM:"arrow_anim_stop_rtl");
+               }
+            }
+         }
+
+         program {
+            name: "arrow_anim_start_ltr";
             action: STATE_SET "anim_1" 0.0;
             target: "arrow_right";
             target: "arrow_left";
             transition: LINEAR 0.6;
-            after: "arrow_anim_1";
+            after: "arrow_anim_1_ltr";
          }
          program {
-            name: "arrow_anim_1";
+            name: "arrow_anim_1_ltr";
             action: STATE_SET "anim_2" 0.0;
             target: "arrow_right";
             target: "arrow_left";
             transition: LINEAR 0.6;
-            after: "arrow_anim_2";
+            after: "arrow_anim_2_ltr";
          }
          program {
-            name: "arrow_anim_2";
+            name: "arrow_anim_2_ltr";
             action: STATE_SET "default" 0.0;
             target: "arrow_right";
             target: "arrow_left";
-            after: "arrow_anim_start";
+            after: "arrow_anim_start_ltr";
          }
          program {
-            name: "arrow_anim_stop";
+            name: "arrow_anim_stop_ltr";
             action: ACTION_STOP;
-            target: "arrow_anim_start";
-            target: "arrow_anim_1";
-            target: "arrow_anim_2";
-            after: "arrow_anim_stop_1";
+            target: "arrow_anim_start_ltr";
+            target: "arrow_anim_1_ltr";
+            target: "arrow_anim_2_ltr";
+            after: "arrow_anim_stop_1_ltr";
          }
          program {
-            name: "arrow_anim_stop_1";
+            name: "arrow_anim_stop_1_ltr";
             action: STATE_SET "default" 0.0;
             target: "arrow_right";
             target: "arrow_left";
             transition: DECELERATE 0.4;
         }
+         program {
+            name: "arrow_anim_start_rtl";
+            action: STATE_SET "anim_1" 0.1;
+            target: "arrow_right";
+            target: "arrow_left";
+            transition: LINEAR 0.6;
+            after: "arrow_anim_1_rtl";
+         }
+         program {
+            name: "arrow_anim_1_rtl";
+            action: STATE_SET "anim_2" 0.1;
+            target: "arrow_right";
+            target: "arrow_left";
+            transition: LINEAR 0.6;
+            after: "arrow_anim_2_rtl";
+         }
+         program {
+            name: "arrow_anim_2_rtl";
+            action: STATE_SET "default" 0.1;
+            target: "arrow_right";
+            target: "arrow_left";
+            after: "arrow_anim_start_rtl";
+         }
+         program {
+            name: "arrow_anim_stop_rtl";
+            action: ACTION_STOP;
+            target: "arrow_anim_start_rtl";
+            target: "arrow_anim_1_rtl";
+            target: "arrow_anim_2_rtl";
+            after: "arrow_anim_stop_1_rtl";
+         }
+         program {
+            name: "arrow_anim_stop_1_rtl";
+            action: STATE_SET "default" 0.1;
+            target: "arrow_right";
+            target: "arrow_left";
+            transition: DECELERATE 0.4;
+        }
+         program { name: "to_rtl";
+            signal: "edje,state,rtl";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow_left", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow_left", st, 0.1);
+               }
+               get_state(PART:"arrow_right", st, 30, vl);
+               if (vl == 0.0) {
+                  set_state(PART:"arrow_right", st, 0.1);
+               }
+            }
+         }
+         program { name: "to_ltr";
+            signal: "edje,state,ltr";
+            source: "edje";
+            script {
+               new st[31];
+               new Float:vl;
+               get_state(PART:"arrow_left", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow_left", st, 0.0);
+               }
+               get_state(PART:"arrow_right", st, 30, vl);
+               if (vl == 0.1) {
+                  set_state(PART:"arrow_right", st, 0.0);
+               }
+            }
+         }
       }
   }
 
@@ -33544,6 +33944,10 @@ collections {
                    max: 16 16;
                    image.normal: "sp_bt_l.png";
                }
+               description { state: "rtl" 0.0;
+                   inherit: "default" 0.0;
+                   image.normal: "sp_bt_r.png";
+               }
            }
            part { name: "right_bt_icon";
                repeat_events: 1;
@@ -33555,6 +33959,10 @@ collections {
                    max: 16 16;
                    image.normal: "sp_bt_r.png";
                }
+               description { state: "rtl" 0.0;
+                   inherit: "default" 0.0;
+                   image.normal: "sp_bt_l.png";
+               }
            }
            part { name: "month_text";
                type: TEXT;
@@ -33669,6 +34077,20 @@ collections {
                transition: DECELERATE 0.5;
                target: "right_over3";
            }
+           program { name: "to_rtl";
+               signal: "edje,state,rtl";
+               source: "edje";
+               action: STATE_SET "rtl" 0.0;
+               target: "right_bt_icon";
+               target: "left_bt_icon";
+           }
+           program { name: "to_ltr";
+               signal: "edje,state,ltr";
+               source: "edje";
+               action: STATE_SET "default" 0.0;
+               target: "right_bt_icon";
+               target: "left_bt_icon";
+           }
        }
    }
 
diff --git a/data/themes/tog_base.png b/data/themes/tog_base.png
deleted file mode 100644 (file)
index 25b9bc4..0000000
Binary files a/data/themes/tog_base.png and /dev/null differ
diff --git a/data/themes/tog_base_off.png b/data/themes/tog_base_off.png
new file mode 100644 (file)
index 0000000..c84da50
Binary files /dev/null and b/data/themes/tog_base_off.png differ
diff --git a/data/themes/tog_base_on.png b/data/themes/tog_base_on.png
new file mode 100644 (file)
index 0000000..1292cbb
Binary files /dev/null and b/data/themes/tog_base_on.png differ
diff --git a/data/themes/tog_dis_base.png b/data/themes/tog_dis_base.png
deleted file mode 100644 (file)
index 7f6865d..0000000
Binary files a/data/themes/tog_dis_base.png and /dev/null differ
diff --git a/data/themes/tog_dis_base_off.png b/data/themes/tog_dis_base_off.png
new file mode 100644 (file)
index 0000000..164a5e2
Binary files /dev/null and b/data/themes/tog_dis_base_off.png differ
diff --git a/data/themes/tog_dis_base_on.png b/data/themes/tog_dis_base_on.png
new file mode 100644 (file)
index 0000000..4dda01e
Binary files /dev/null and b/data/themes/tog_dis_base_on.png differ