Add button focus 83/46283/1
authorjinwoo.shin <jw0227.shin@samsung.com>
Wed, 19 Aug 2015 04:58:15 +0000 (13:58 +0900)
committerjinwoo.shin <jw0227.shin@samsung.com>
Wed, 19 Aug 2015 04:58:15 +0000 (13:58 +0900)
Change-Id: I8ec643b06f78729df54375c5a372c99627465b61
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
data/widget/button.edc

index ff68e9f..0e37d8e 100644 (file)
@@ -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