rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=e9b474f08d89da2a38a2ff0d7c9cbb7f39231a4c

commit e9b474f08d89da2a38a2ff0d7c9cbb7f39231a4c
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Mon Jul 13 12:45:06 2015 +0300

    Styles: update the entry cursor
    
    Change-Id: I8c3709cb44eb8d7aafb2a1b1a141d43b565516ce
---
 data/themes/default/images/cursor.png | Bin 0 -> 2857 bytes
 data/themes/default/widgets/entry.edc |  59 ++++++++++++++++++++++------------
 2 files changed, 38 insertions(+), 21 deletions(-)

diff --git a/data/themes/default/images/cursor.png 
b/data/themes/default/images/cursor.png
new file mode 100644
index 0000000..7c1677f
Binary files /dev/null and b/data/themes/default/images/cursor.png differ
diff --git a/data/themes/default/widgets/entry.edc 
b/data/themes/default/widgets/entry.edc
index b95bec4..ada4597 100644
--- a/data/themes/default/widgets/entry.edc
+++ b/data/themes/default/widgets/entry.edc
@@ -944,30 +944,46 @@ group { name: "elm/entry/anchor/default";
 }
 
 group { name: "elm/entry/cursor/default";
-   min: 1 0;
-   images.image: "white_bar_vert_glow.png" COMP;
+   images {
+      image: "cursor.png" COMP;
+   }
    parts {
-      part { name: "cursor"; mouse_events: 0;
+      part { name: "cursor";
+         type: IMAGE;
+         scale: 1;
          description { state: "default" 0.0;
-            min: 9 10;
+            min: 5 15;
+            max: 5 15;
             color: 255 255 255 0;
-            rel1.offset: -2 -2;
-            rel2.offset: 1 1;
+            rel1 {
+               offset: -2 -2;
+            }
+            rel2 {
+               offset: 1 1;
+            }
             image {
-               normal: "white_bar_vert_glow.png";
-               border: 4 4 4 4;
+               normal: "cursor.png";
             }
-            fill.smooth: 0;
          }
          description { state: "visible" 0.0;
-            inherit: "default" 0.0;
-            color: 255 255 255 255;
+            min: 5 15;
+            max: 5 15;
+            rel1 {
+               offset: -2 -2;
+            }
+            rel2 {
+               offset: 1 1;
+            }
+            image {
+               normal: "cursor.png";
+            }
          }
       }
    }
    programs {
-      program {
-         signal: "elm,action,focus"; source: "elm";
+      program { name: "focus";
+         signal: "elm,action,focus";
+         source: "elm";
          action: ACTION_STOP;
          target: "cursor_show";
          target: "cursor_hide";
@@ -975,8 +991,9 @@ group { name: "elm/entry/cursor/default";
          target: "cursor_hide_timer";
          after: "cursor_show";
       }
-      program {
-         signal: "elm,action,unfocus"; source: "elm";
+      program { name: "unfocus";
+         signal: "elm,action,unfocus";
+         source: "elm";
          action: ACTION_STOP;
          target: "cursor_show";
          target: "cursor_hide";
@@ -985,26 +1002,26 @@ group { name: "elm/entry/cursor/default";
          after: "cursor_hide_stop";
       }
       program { name: "cursor_hide_stop";
-         action: STATE_SET "default" 0.0;
+         action: STATE_SET "default" 0.00;
          target: "cursor";
       }
       program { name: "cursor_show";
-         action: STATE_SET "visible" 0.0;
+         action: STATE_SET "visible" 0.00;
          target: "cursor";
          after: "cursor_show_timer";
       }
       program { name: "cursor_hide";
-         action: STATE_SET "default" 0.0;
+         action: STATE_SET "default" 0.00;
+         transition: SINUSOIDAL 0.20000;
          target: "cursor";
-         transition: SINUSOIDAL 0.2;
          after: "cursor_hide_timer";
       }
       program { name: "cursor_show_timer";
-         in: 0.5 0.0;
+         in: 0.50000 0.00000;
          after: "cursor_hide";
       }
       program { name: "cursor_hide_timer";
-         in: 0.2 0.0;
+         in: 0.20000 0.00000;
          after: "cursor_show";
       }
    }

-- 


Reply via email to