Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/data/themes/e17/macros


Modified Files:
        button-macros.edc 


Log Message:
- theme up the spinner a bit better. it isn't great but it looks better then
  it did

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ewl/data/themes/e17/macros/button-macros.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- button-macros.edc   14 Oct 2005 15:03:55 -0000      1.2
+++ button-macros.edc   18 Oct 2005 03:45:41 -0000      1.3
@@ -459,3 +459,181 @@
         } \
     }
 
+#define SCROLL_BUTTON(IMAGE) \
+    parts { \
+        part { \
+            name, "shadow2"; \
+            mouse_events, 0; \
+            description { \
+                state, "default" 0.0; \
+                rel1 { \
+                    relative, 0.0 0.0; \
+                    offset, 0 0; \
+                    to, "bg"; \
+                } \
+                rel2 { \
+                    relative, 1.0 1.0; \
+                    offset, -1 -1; \
+                    to, "bg"; \
+                } \
+                image { \
+                    normal, "e17_mini_button_shadow2.png"; \
+                    border, 8 8 8 8; \
+                } \
+            } \
+            description { \
+                state, "active" 0.0; \
+                inherit, "default" 0.0; \
+                visible, 0; \
+                color, 255 255 255 0; \
+            } \
+        } \
+        part { \
+            name, "shadow1"; \
+            mouse_events, 0; \
+            description { \
+                state, "default" 0.0; \
+                rel1 { \
+                    relative, 0.0 0.0; \
+                    offset, 0 0; \
+                    to, "bg"; \
+                } \
+                rel2 { \
+                    relative, 1.0 1.0; \
+                    offset, -1 -1; \
+                    to, "bg"; \
+                } \
+                image { \
+                    normal, "e17_mini_button_shadow1.png"; \
+                    border, 8 8 8 8; \
+                } \
+            } \
+            description { \
+                state, "active" 0.0; \
+                inherit, "default" 0.0; \
+                visible, 0; \
+                color, 255 255 255 0; \
+            } \
+        } \
+        part { \
+            name, "bg"; \
+            mouse_events, 0; \
+            description { \
+                state, "default" 0.0; \
+                rel1 { \
+                    relative, 0.0 0.0; \
+                    offset, 0 0; \
+                } \
+                rel2 { \
+                    relative, 1.0 1.0; \
+                    offset, -1 -1; \
+                } \
+                image { \
+                    normal, "e17_mini_button.png"; \
+                    border, 8 8 8 8; \
+                } \
+            } \
+            description { \
+                state, "active" 0.0; \
+                inherit, "default" 0.0; \
+                rel1 { \
+                    relative, 0.0 0.0; \
+                    offset, 1 1; \
+                } \
+                rel2 { \
+                    relative, 1.0 1.0; \
+                    offset, 0 0; \
+                } \
+            } \
+        } \
+        part { \
+            name, "detail"; \
+            mouse_events, 0; \
+            description { \
+                state, "default" 0.0; \
+                max, 16 16; \
+                rel1 { \
+                    relative, 0.0 0.0; \
+                    offset, 4 4; \
+                    to, "bg"; \
+                } \
+                rel2 { \
+                    relative, 1.0 1.0; \
+                    offset, -5 -5; \
+                    to, "bg"; \
+                } \
+                image { \
+                    normal, IMAGE; \
+                } \
+            } \
+        } \
+    }
+
+#define SCROLL_BUTTON_PROG() \
+    programs { \
+        program { \
+            name, "active_pre"; \
+            signal, "mouse,down,1"; \
+            source, "*"; \
+            action, STATE_SET "default" 0.0; \
+            target, "shadow1"; \
+            target, "shadow2"; \
+            target, "bg"; \
+            target, "detail"; \
+            after, "active"; \
+            after, "active_p"; \
+        } \
+        program { \
+            name, "active"; \
+            action, STATE_SET "active" 0.0; \
+            target, "shadow2"; \
+            transition, LINEAR 0.05; \
+            after, "active2"; \
+        } \
+        program { \
+            name, "active2"; \
+            action, STATE_SET "active" 0.0; \
+            target, "shadow1"; \
+            transition, LINEAR 0.05; \
+        } \
+        program { \
+            name, "active_p"; \
+            action, STATE_SET "active" 0.0; \
+            target, "bg"; \
+            target, "detail"; \
+            transition, LINEAR 0.1; \
+        } \
+        program { \
+            name, "passive_pre"; \
+            signal, "mouse,up,1"; \
+            source, "*"; \
+            action, STATE_SET "active" 0.0; \
+            target, "shadow1"; \
+            target, "shadow2"; \
+            target, "bg"; \
+            target, "detail"; \
+            after, "passive"; \
+            after, "passive_p"; \
+        } \
+        program { \
+            name, "passive"; \
+            action, STATE_SET "default" 0.0; \
+            target, "shadow2"; \
+            transition, LINEAR 0.1; \
+            after, "passive2"; \
+        } \
+        program { \
+            name, "passive2"; \
+            action, STATE_SET "default" 0.0; \
+            target, "shadow1"; \
+            transition, LINEAR 0.1; \
+        } \
+        program { \
+            name, "passive_p"; \
+            action, STATE_SET "default" 0.0; \
+            target, "bg"; \
+            target, "detail"; \
+            transition, LINEAR 0.2; \
+        } \
+    }
+




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to