Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

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


Modified Files:
        button-groups.edc 


Log Message:
Use the e17 buttons in the EWL theme.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ewl/data/themes/e17/bits/button-groups.edc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- button-groups.edc   24 Oct 2005 06:11:14 -0000      1.6
+++ button-groups.edc   12 Nov 2005 06:15:47 -0000      1.7
@@ -1,24 +1,365 @@
 group {
-    name, "button";
-    data {
-        item, "inset/left" "8";
-        item, "inset/right" "8";
-        item, "inset/top" "5";
-        item, "inset/bottom" "5";
-
-        item, "pad/left" "-3";
-        item, "pad/right" "-3";
-        item, "pad/top" "-3";
-        item, "pad/bottom" "-3";
-    }
-
-    parts {
-BUTTON()
-    }
-
-    programs {
-BUTTON_PROG("mouse,in", "mouse,out")
-    }
+   name: "button";
+   data {
+       item: "inset/left" "8";
+       item: "inset/right" "8";
+       item: "inset/top" "8";
+       item: "inset/bottom" "8";
+   }
+   parts {
+      part {
+        name:          "button_image";
+        type:          IMAGE;
+        mouse_events:  1;
+        description {
+           state:    "default" 0.0;
+           min:      56 16;
+           image {
+              normal: "e17_button_sm.png";
+              border: 8 8 8 8;
+           }
+        }
+        description {
+           state:    "clicked" 0.0;
+           inherit:  "default" 0.0;
+           image {
+              normal: "e17_button_sm2.png";
+           }
+        }
+        description {
+           state:    "disabled" 0.0;
+           inherit:  "default" 0.0;
+           visible:  0;
+        }
+      }
+      part {
+        name:          "button_image2";
+        type:          IMAGE;
+        mouse_events:  1;
+        description {
+           state:    "default" 0.0;
+           visible:  0;
+           rel1 {
+              to: "button_image";
+           }
+           rel2 {
+              to: "button_image";
+           }
+           image {
+              normal: "e17_button_sm_disabled.png";
+           }
+        }
+        description {
+           state:    "disabled" 0.0;
+           inherit:  "default" 0.0;
+           visible:  1;
+        }
+      }
+
+      part {
+        name: "glint_clip";
+        type: RECT;
+        mouse_events: 0;
+        description {
+           state: "default" 0.0;
+           color: 255 255 255 255;
+           rel1 {
+              relative: 0.0 0.0;
+              offset: 3 3;
+           }
+           rel2 {
+              relative: 1.0 1.0;
+              offset: -4 -4;
+           }
+        }
+      }
+
+      part {
+        name: "glint1";
+        mouse_events: 0;
+        description {
+           state: "default" 0.0;
+           visible: 0;
+           color: 255 255 255 0;
+           align: 0.0 0.0;
+           max: 34 13;
+           rel1 {
+              relative: 0.0 0.0;
+              offset: 2 2;
+           }
+           rel2 {
+              relative: 1.0 1.0;
+              offset: -3 -3;
+           }
+           image {
+              normal: "e17_titlebar_glint1.png";
+              border: 5 0 5 0;
+           }
+           fill {
+              smooth: 0;
+           }
+        }
+        description {
+           state: "active" 0.0;
+           inherit: "default" 0.0;
+           visible: 1;
+           color: 255 255 255 255;
+        }
+      }
+
+      part {
+        name: "glint2";
+        mouse_events: 0;
+        clip_to: "glint_clip";
+        description {
+           state: "default" 0.0;
+           visible: 0;
+           color: 255 255 255 0;
+           align: 1.0 0.5;
+           max: 0 0;
+           rel1 {
+              relative: 0.0 0.0;
+              offset: 3 3;
+           }
+           rel2 {
+              relative: 0.0 1.0;
+              offset: 3 -4;
+           }
+           image {
+              normal: "e17_titlebar_glint2.png";
+              border: 0 0 5 5;
+           }
+           fill {
+              smooth: 0;
+           }
+        }
+        description {
+           state: "active" 0.0;
+           inherit: "default" 0.0;
+           visible: 1;
+           color: 255 255 255 255;
+           max: 169 9999;
+           min: 169 8;
+           align: 0.5 0.5;
+        }
+        description {
+           state: "active2" 0.0;
+           inherit: "default" 0.0;
+           visible: 1;
+           color: 255 255 255 128;
+           max: 169 9999;
+           min: 169 8;
+           align: 0.5 0.5;
+           rel1 {
+              relative: 1.0 0.0;
+              offset: -4 3;
+           }
+           rel2 {
+              relative: 1.0 1.0;
+              offset: -4 -4;
+           }
+        }
+        description {
+           state: "active3" 0.0;
+           inherit: "default" 0.0;
+           visible: 0;
+           color: 255 255 255 0;
+           max: 169 9999;
+           min: 169 8;
+           align: 0.0 0.5;
+           rel1 {
+              relative: 1.0 0.0;
+              offset: -4 3;
+           }
+           rel2 {
+              relative: 1.0 1.0;
+              offset: -4 -4;
+           }
+        }
+      }
+      part {
+        name: "glint3";
+        mouse_events: 0;
+        description {
+           state: "default" 0.0;
+           visible: 0;
+           color: 255 255 255 0;
+           align: 1.0 1.0;
+           max: 34 13;
+           rel1 {
+              relative: 0.0 0.0;
+              offset: 2 2;
+           }
+           rel2 {
+              relative: 1.0 1.0;
+              offset: -3 -3;
+           }
+           image {
+              normal: "e17_titlebar_glint3.png";
+              border: 0 5 0 5;
+           }
+           fill {
+              smooth: 0;
+           }
+        }
+        description {
+           state: "active" 0.0;
+           inherit: "default" 0.0;
+           visible: 1;
+           color: 255 255 255 255;
+        }
+      }
+
+      part {
+        name: "focus";
+        mouse_events: 0;
+        description {
+           state: "default" 0.0;
+           visible: 0;
+           color: 255 255 255 0;
+           image {
+              normal: "focus.png";
+              border: 7 7 7 7;
+              middle: 0;
+           }
+           fill {
+              smooth: 0;
+           }
+        }
+        description {
+           state: "focused" 0.0;
+           inherit: "default" 0.0;
+           visible: 1;
+           color: 255 255 255 255;
+        }
+      }
+   }
+
+   programs {
+      program {
+        name:   "button_click";
+        signal: "mouse,down,1";
+        source: "EWL";
+        action: STATE_SET "clicked" 0.0;
+        target: "button_image";
+      }
+
+      program {
+        name:   "button_unclick";
+        signal: "mouse,up,1";
+        source: "EWL";
+        action: STATE_SET "default" 0.0;
+        target: "button_image";
+      }
+
+      program {
+        name:   "button_unclick2";
+        signal: "mouse,clicked,1";
+        source: "EWL";
+        action: SIGNAL_EMIT "click" "";
+      }
+
+      program {
+        name: "button_in";
+        signal: "mouse,in";
+        source: "EWL";
+        action: SIGNAL_EMIT "enter" "";
+      }
+
+      program {      
+        name: "button_enter";
+        signal: "enter";
+        source: "";
+        script {
+           run_program(PROGRAM:"go_active");
+        }
+      }      
+
+      program {
+        name: "go_active";
+        action: STATE_SET "active" 0.0;
+        target: "glint1";
+        target: "glint2";
+        transition: LINEAR 0.05;
+        after: "go_active2";
+        after: "go_active2b";
+      }
+
+      program {
+        name: "go_active2";
+        action: STATE_SET "active2" 0.0;
+        target: "glint2";
+        transition: LINEAR 0.2;
+        after: "go_active3";
+        after: "go_active3b";
+      }
+
+      program {
+        name: "go_active2b";
+        action: STATE_SET "active" 0.0;
+        target: "glint3";
+        transition: LINEAR 0.2;
+      }
+
+      program {
+        name: "go_active3";
+        action: STATE_SET "active3" 0.0;
+        target: "glint2";
+        transition: LINEAR 0.05;
+      }
+
+      program {
+        name: "go_active3b";
+        action: STATE_SET "default" 0.0;
+        target: "glint3";
+        transition: LINEAR 0.1;
+        after: "go_active4";
+      }
+
+      program {
+        name: "go_active4";
+        action: STATE_SET "default" 0.0;
+        target: "glint1";
+        target: "glint2";
+        target: "glint3";
+      }      
+
+      program {
+        name: "focus_in";
+        signal: "focus_in";
+        source: "";
+         action: STATE_SET "focused" 0.0;
+        transition: DECELERATE 0.2;
+        target: "focus";
+      }
+
+      program {
+        name: "focus_out";
+        signal: "focus_out";
+        source: "";
+         action: STATE_SET "default" 0.0;
+        transition: ACCELERATE 0.5;
+        target: "focus";
+      }
+
+      program {
+        name: "disable";
+        signal: "disabled";
+        source: "";
+         action: STATE_SET "disabled" 0.0;
+        target: "button_image";
+        target: "button_image2";
+      }
+
+      program {
+        name: "enable";
+        signal: "enabled";
+        source: "";
+         action: STATE_SET "default" 0.0;
+        target: "button_image";
+        target: "button_image2"; 
+     }
+   }
 }
 
 group {
@@ -46,40 +387,3 @@
 BUTTON_IM("e17_menu_check1.png", "e17_menu_check2.png")
 BUTTON_IM_PROGS()
 }
-
-group {
-    name, "vbutton";
-    data {
-        item, "inset/left" "8";
-        item, "inset/right" "8";
-        item, "inset/top" "5";
-        item, "inset/bottom" "5";
-    }
-
-    parts {
-BUTTON()
-    }
-
-    programs {
-BUTTON_PROG("mouse,in", "mouse,out")
-    }
-}
-
-group {
-    name, "hbutton";
-    data {
-        item, "inset/left" "5";
-        item, "inset/right" "5";
-        item, "inset/top" "8";
-        item, "inset/bottom" "8";
-    }
-
-    parts {
-BUTTON()
-    }
-
-    programs {
-BUTTON_PROG("mouse,in", "mouse,out")
-    }
-}
-




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to