[focus highlight] Default focus highlight image is added.
authorWooHyun Jung <wh0705.jung@samsung.com>
Fri, 12 Apr 2013 07:42:50 +0000 (16:42 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Sun, 14 Apr 2013 09:47:07 +0000 (18:47 +0900)
themes/images/tizen-hd/00_focus.png [new file with mode: 0755]
themes/tizen.edc

diff --git a/themes/images/tizen-hd/00_focus.png b/themes/images/tizen-hd/00_focus.png
new file mode 100755 (executable)
index 0000000..b5b4679
Binary files /dev/null and b/themes/images/tizen-hd/00_focus.png differ
index 2639680..6ede05f 100644 (file)
@@ -88,6 +88,66 @@ collections {
 #include "widgets/toggle.edc"
 #include "widgets/toolbar.edc"
 
+
+   group { name: "elm/focus_highlight/top/default";
+      images {
+         image: "00_focus.png" COMP;
+      }
+      data {
+         item: "animate" "off";
+      }
+      parts {
+         part { name: "base";
+            type: RECT;
+            repeat_events: 1;
+            description { state: "default" 0.0;
+               rel1.relative: 0.0 0.0;
+               rel2.relative: 1.0 1.0;
+               visible: 0;
+            }
+         }
+         part { name: "shine";
+            type: IMAGE;
+            mouse_events: 0;
+            repeat_events: 1;
+            ignore_flags: ON_HOLD;
+            description { state: "default" 0.0;
+               visible: 0;
+               image {
+                  normal: "00_focus.png";
+                  border: 7 7 7 7;
+               }
+            }
+            description { state: "show" 0.0;
+               inherit:  "default" 0.0;
+               visible: 1;
+            }
+         }
+      }
+      programs {
+         program { name: "show";
+            signal: "elm,action,focus,show";
+            source: "elm";
+            action: STATE_SET "show" 0.0;
+            target: "shine";
+            after: "show_end";
+         }
+         program { name: "show_end";
+            action: SIGNAL_EMIT "elm,action,focus,show,end" "";
+         }
+         program { name: "hide";
+            signal: "elm,action,focus,hide";
+            source: "elm";
+            action: STATE_SET "default" 0.0;
+            target: "shine";
+            after: "hide_end";
+         }
+         program { name: "hide_end";
+            action: SIGNAL_EMIT "elm,action,focus,hide,end" "";
+         }
+      }
+   }
+
 /*
 sounds{
         sound : "drag-start.wav" 0 100;