From: WooHyun Jung Date: Tue, 4 Jun 2013 02:29:50 +0000 (+0900) Subject: [button] Now circle buttons will show their own focus frame. X-Git-Tag: accepted/tizen/20131029.210118~240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac89f821853bb8dff265b3485fdd8be27cd65d33;p=profile%2Fivi%2Fefl-theme-tizen.git [button] Now circle buttons will show their own focus frame. --- diff --git a/themes/images/tizen-hd/Controls/00_circle_button_focus.png b/themes/images/tizen-hd/Controls/00_circle_button_focus.png new file mode 100755 index 0000000..6712258 Binary files /dev/null and b/themes/images/tizen-hd/Controls/00_circle_button_focus.png differ diff --git a/themes/widgets/button.edc b/themes/widgets/button.edc index df5772e..090c1cd 100644 --- a/themes/widgets/button.edc +++ b/themes/widgets/button.edc @@ -2393,12 +2393,16 @@ /////////////////////////////////////////////////////////////////////////////////////// #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \ group { name: "elm/button/base/"style_name; \ + data { \ + item: "focus_highlight" "on"; \ + } \ images { \ image: "00_circle_button.png" COMP; \ image: "00_circle_button_press.png" COMP; \ image: "00_circle_button_dim.png" COMP; \ image: image_normal COMP; \ image: image_press COMP; \ + image: 00_circle_button_focus.png COMP; \ } \ parts { \ part { name: "button_image"; \ @@ -2483,6 +2487,26 @@ color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \ } \ } \ + part { name: "focus_image"; \ + scale: 1; \ + mouse_events: 0; \ + repeat_events: 1; \ + description { state: "default" 0.0; \ + min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \ + max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \ + visible: 0; \ + rel1.to : "button_image"; \ + rel2.to : "button_image"; \ + image { \ + normal: "00_circle_button_focus.png"; \ + border_scale: 1; \ + } \ + } \ + description { state: "focused" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + } \ + } \ part { name: "over1"; \ type: RECT; \ ignore_flags: ON_HOLD; \ @@ -2567,6 +2591,18 @@ target: "button_center_part"; \ target: "icon_clipper"; \ } \ + program { name: "action_focus"; \ + signal: "elm,action,focus_highlight,show"; \ + source: "elm"; \ + action: STATE_SET "focused" 0.0; \ + target: "focus_image"; \ + } \ + program { name: "action_unfocus"; \ + signal: "elm,action,focus_highlight,hide"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "focus_image"; \ + } \ } \ }