From a16d43c74379d11e45bd01474699b2c4cdd32bb8 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Wed, 24 Apr 2013 19:53:56 +0900 Subject: [PATCH] [button] Add transparent button style for supporting focusable state to unfocusable objects. --- themes/widgets/button.edc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/themes/widgets/button.edc b/themes/widgets/button.edc index cf30280..145a63f 100644 --- a/themes/widgets/button.edc +++ b/themes/widgets/button.edc @@ -7222,6 +7222,47 @@ group { name: "elm/button/base/bubble_circle/sent"; } } + group { name: "elm/button/base/focus"; + parts { + part { name: "elm.content.swallow"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + } + } + part { name: "over2"; + type: RECT; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "over3"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + } + programs { + program { name: "button_click"; + signal: "mouse,down,1"; + source: "over2"; + action: SIGNAL_EMIT "elm,action,press" ""; + } + program { name: "button_unclick"; + signal: "mouse,up,1"; + source: "over3"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + } + program { name: "button_unclick3"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } + } + + group { name: "elm/button/base/search_clear"; inherit: "elm/button/base/editfield_clear"; parts { -- 2.7.4