[controlbar] refactoring the controlbar
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 19 May 2011 11:44:11 +0000 (20:44 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 19 May 2011 11:44:11 +0000 (20:44 +0900)
Change-Id: If01838c953bb9be9e0b1041eb53442efeb28e4f3

themes/groups/controlbar.edc

index 8c635c2..53cf74b 100644 (file)
                                }
                        }
                        part{
-                               name: "elm.swallow.text_shadow";
-                               type: SWALLOW;
-                               scale: 1;
-                               mouse_events:1;
-                               description{
-                                       state: "default" 0.0;
-                                       fixed: 1 1;
-                                       visible: 0;
-                                       rel1{offset: 2 2; to: "elm.swallow.text";}
-                                       rel2{offset: 2 2; to: "elm.swallow.text";}
-                               }
-                               description{
-                                       state: "show" 0.0;
-                                       inherit: "default" 0.0;
-                                       visible: 1;
-                               }
-                       }
-                       part{
                                name: "elm.swallow.text";
                                type: SWALLOW;
                                scale: 1;
                                description{
                                        state: "icon_text" 0.0;
                                        inherit: "default" 0.0;
-                                       fixed: 1 1;
-                                       align: 0.5 0.5;
                                        rel1 {relative: 0.5 0.6; }
                                        rel2 {relative: 0.5 1.0; }
                                }
                name: "elm/controlbar/item_bg_move/default";
                images{
                        image: "00_winset_tabbar_focus.png" COMP;
+                       image: "00_winset_tabbar_focus_left.png" COMP;
+                       image: "00_winset_tabbar_focus_right.png" COMP;
                }
 
                parts{
                        part{
-                               name: "bg_img";
+                               name: "selected_box";
                                type: IMAGE;
                                mouse_events: 0;
                                description{
                                        image.normal: "00_winset_tabbar_focus.png";
                                        image.border: 2 2 3 2;
                                }
-                       }
-               }
-       }
-
-       group{
-               name: "elm/controlbar/item_bg_move_left/default";
-               images{
-                       image: "00_winset_tabbar_focus_left.png" COMP;
-               }
-
-               parts{
-                       part{
-                               name: "bg_img";
-                               type: IMAGE;
-                               mouse_events: 0;
                                description{
-                                       state: "default" 0.0;
+                                       state: "left" 0.0;
                                        visible: 1;
                                        image.normal: "00_winset_tabbar_focus_left.png";
                                        image.border: 2 3 2 2;
                                }
-                       }
-               }
-       }
-
-       group{
-               name: "elm/controlbar/item_bg_move_right/default";
-               images{
-                       image: "00_winset_tabbar_focus_right.png" COMP;
-               }
-
-               parts{
-                       part{
-                               name: "bg_img";
-                               type: IMAGE;
-                               mouse_events: 0;
                                description{
-                                       state: "default" 0.0;
+                                       state: "right" 0.0;
                                        visible: 1;
                                        image.normal: "00_winset_tabbar_focus_right.png";
                                        image.border: 3 2 2 2;
                                }
                        }
                }
+
+               programs{
+                       program{
+                               name: "default";
+                               signal: "elm,state,default";
+                               source: "elm";
+                               action: STATE_SET "default" 0.0;
+                               target: "selected_box";
+                       }
+                       program{
+                               name: "left";
+                               signal: "elm,state,left";
+                               source: "elm";
+                               action: STATE_SET "left" 0.0;
+                               target: "selected_box";
+                       }
+                       program{
+                               name: "right";
+                               signal: "elm,state,right";
+                               source: "elm";
+                               action: STATE_SET "right" 0.0;
+                               target: "selected_box";
+                       }
+               }
        }
 
        group{