From 08c6b9853d52588b59a5bb138d201733224d6f37 Mon Sep 17 00:00:00 2001 From: "jinwoo.shin" Date: Wed, 19 Aug 2015 13:58:15 +0900 Subject: [PATCH] Add button focus Change-Id: I8ec643b06f78729df54375c5a372c99627465b61 Signed-off-by: jinwoo.shin --- data/widget/button.edc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/data/widget/button.edc b/data/widget/button.edc index ff68e9f..0e37d8e 100644 --- a/data/widget/button.edc +++ b/data/widget/button.edc @@ -29,6 +29,11 @@ group { state, "default" 0.0; min, 0 64; } + description { + state: "focused" 0.0; + inherit: "default" 0.0; + color: 0 119 246 255; + } } part { @@ -86,6 +91,11 @@ group { align, 0.5 0.5; } } + description { + state: "focused" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } } part { @@ -166,6 +176,24 @@ group { } } } + programs { + program { + name: "focused"; + signal: "elm,action,focus"; + source: "elm"; + action: STATE_SET "focused" 0.0; + target: "part.bg"; + target: "elm.text"; + } + program { + name: "unfocused"; + signal: "elm,action,unfocus"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "part.bg"; + target: "elm.text"; + } + } } #define DEFAULT 1 -- 2.7.4