diff options
-rw-r--r-- | data/widget/button.edc | 28 |
1 files changed, 28 insertions, 0 deletions
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 |