The entry cursor is not shown anymore using the gry theme; this patch
get it back.
From 8d1737c865b70e78001079fdcf693503788ddf63 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <[email protected]>
Date: Thu, 16 Sep 2010 00:22:22 +0200
Subject: [PATCH] gry-theme: re-enable the entry cursor theme

---
 elementary/elementary-theme-gry/gry.edc |  148 +++++++++++++++++++++++++++++++
 1 files changed, 148 insertions(+), 0 deletions(-)

diff --git a/elementary/elementary-theme-gry/gry.edc b/elementary/elementary-theme-gry/gry.edc
index 839fe34..932b9ff 100644
--- a/elementary/elementary-theme-gry/gry.edc
+++ b/elementary/elementary-theme-gry/gry.edc
@@ -4689,6 +4689,154 @@ collections {
       }
    }
 
+   group { name: "elm/entry/cursor/default";
+      images {
+	 image: "cur_box.png" COMP;
+	 image: "cur_hi.png" COMP;
+	 image: "cur_shad.png" COMP;
+	 image: "cur_shine.png" COMP;
+	 image: "cur_glow.png" COMP;
+      }
+      parts {
+         part { name: "clip2";
+	    type: RECT;
+	    mouse_events: 0;
+	    description { state: "default" 0.0;
+	       rel1.to: "clip";
+	       rel2.to: "clip";
+               visible: 0;
+	    }
+	    description { state: "focused" 0.0;
+	       inherit: "default" 0.0;
+	       visible: 1;
+	    }
+	 }
+         part { name: "clip";
+	    type: RECT;
+	    mouse_events: 0;
+            clip_to: "clip2";
+	    description { state: "default" 0.0;
+	       rel1.offset: -10 0;
+	       rel2.offset: 9 9;
+	    }
+	    description { state: "hidden" 0.0;
+	       inherit: "default" 0.0;
+	       visible: 0;
+	    }
+	 }
+         part { name: "bg";
+	    mouse_events: 0;
+	    clip_to: "clip";
+	    description { state: "default" 0.0;
+	       rel1.to: "base";
+	       rel1.offset: -2 0;
+	       rel2.to: "base";
+	       rel2.offset: 1 1;
+	       image.border: 2 2 2 2;
+	       image.normal: "cur_shad.png";
+	    }
+	 }
+         part { name: "base";
+	    mouse_events: 0;
+	    scale: 1;
+	    clip_to: "clip";
+	    description { state: "default" 0.0;
+	       min: 2 2;
+	       align: 0.5 1.0;
+	       rel1.relative: 0.0 1.0;
+	       rel1.offset: 0 -1;
+	       rel2.relative: 1.0 1.0;
+	       rel2.offset: -1 -1;
+	       image.normal: "cur_box.png";
+	    }
+	 }
+         part { name: "hi";
+	    mouse_events: 0;
+	    clip_to: "clip";
+	    description { state: "default" 0.0;
+	       rel1.to: "base";
+	       rel2.to: "base";
+	       rel2.relative: 1.0 0.5;
+	       image.normal: "cur_hi.png";
+	    }
+	 }
+         part { name: "shine";
+	    mouse_events: 0;
+	    clip_to: "clip";
+            clip_to: "clip2";
+	    description { state: "default" 0.0;
+	       rel1.to: "base";
+	       rel2.to: "base";
+	       rel2.relative: 1.0 0.75;
+	       image.border: 2 2 1 0;
+	       image.normal: "cur_shine.png";
+	       fill.smooth: 0;
+	    }
+	 }
+         part { name: "glow";
+	    mouse_events: 0;
+            clip_to: "clip2";
+	    description { state: "default" 0.0;
+	       rel1.to: "base";
+	       rel1.relative: 0.0 -2.0;
+	       rel1.offset: -2 0;
+	       rel2.to: "base";
+	       rel2.relative: 1.0 0.0;
+	       rel2.offset: 1 1;
+	       image.border: 2 2 0 4;
+	       image.normal: "cur_glow.png";
+	       fill.smooth: 0;
+	    }
+	    description { state: "hidden" 0.0;
+	       inherit: "default" 0.0;
+	       color: 255 255 255 0;
+	    }
+	 }
+      }
+      programs {
+	 program { name: "show";
+            signal: "show";
+	    source: "";
+            action: STATE_SET "hidden" 0.0;
+	    in: 1.0 0.0;
+	    transition: DECELERATE 2.0;
+	    target: "glow";
+	    after: "show2";
+	 }
+	 program { name: "show2";
+            action: STATE_SET "hidden" 0.0;
+	    in: 0.2 0.0;
+	    target: "clip";
+	    after: "show3";
+	 }
+	 program { name: "show3";
+            action: STATE_SET "default" 0.0;
+	    in: 0.5 0.0;
+	    target: "clip";
+	    after: "show4";
+	 }
+	 program { name: "show4";
+            action: STATE_SET "default" 0.0;
+	    in: 0.5 0.0;
+	    transition: DECELERATE 0.5;
+	    target: "glow";
+	    after: "show";
+	 }
+	 program { name: "focused";
+	    signal: "elm,action,focus";
+	    source: "elm";
+            action: STATE_SET "focused" 0.0;
+	    target: "clip2";
+	 }
+	 program { name: "unfocused";
+	    signal: "elm,action,unfocus";
+	    source: "elm";
+            action: STATE_SET "default" 0.0;
+	    target: "clip2";
+	 }
+      }
+   }
+
    group { name: "elm/entry/selection/default";
       parts {
          part { name: "bg";
-- 
1.7.0.4

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to