From 90ebb371924e77920e89a70a300a38fb8507c4c9 Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Thu, 19 May 2011 20:44:11 +0900 Subject: [PATCH] [controlbar] refactoring the controlbar Change-Id: If01838c953bb9be9e0b1041eb53442efeb28e4f3 --- themes/groups/controlbar.edc | 82 ++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 53 deletions(-) diff --git a/themes/groups/controlbar.edc b/themes/groups/controlbar.edc index 8c635c2..53cf74b 100644 --- a/themes/groups/controlbar.edc +++ b/themes/groups/controlbar.edc @@ -662,24 +662,6 @@ } } 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; @@ -694,8 +676,6 @@ 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; } } @@ -726,11 +706,13 @@ 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{ @@ -739,50 +721,44 @@ 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{ -- 2.7.4