Enlightenment CVS committal
Author : rephorm
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/data/themes/default/bits
Modified Files:
button-groups.edc button-images.edc button-programs.edc
checkbox-groups.edc checkbox-programs.edc entry-groups.edc
radio-groups.edc radio-images.edc scrollbar-groups.edc
Added Files:
button-macro.edc images.edc radio-programs.edc
Log Message:
clean up winter theme a bit. still lots of work to be done...
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/button-groups.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- button-groups.edc 27 Jan 2004 06:04:53 -0000 1.1
+++ button-groups.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -11,60 +11,30 @@
item, "pad/bottom" "0";
}
parts {
- part {
- name, "base";
- mouse_events, 0;
- description {
- state, "default" 0.0;
- border, 3 3 3 3;
- min, 6 6 6 6;
- color_class, "background";
- rel1 {
- relative, 0.0 0.0;
- offset, 0 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "button-up.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 3 3 3 3;
- color_class, "highlight";
- color, 200 208 216 128;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "button-up.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 3 3 3 3;
- min, 6 6 6 6;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "button-clicked.png";
- }
- }
- }
+BUTTON()
+ }
+ programs {
+BUTTON_PROG()
+ }
+ }
+
+ /* a button with horizontal gradient */
+ group {
+ name, "vbutton";
+ data {
+ item, "inset/left" "5";
+ item, "inset/right" "5";
+ item, "inset/top" "3";
+ item, "inset/bottom" "3";
+ item, "pad/left" "0";
+ item, "pad/right" "0";
+ item, "pad/top" "0";
+ item, "pad/bottom" "0";
+ }
+ parts {
+BUTTON_H()
+ }
+ programs {
+BUTTON_PROG()
}
-#include "button-programs.edc"
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/button-images.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- button-images.edc 27 Jan 2004 06:04:53 -0000 1.1
+++ button-images.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -3,3 +3,9 @@
image, "button-clicked.png" LOSSY 98;
image, "radio.png" LOSSY 98;
image, "radio-on.png" LOSSY 98;
+
+image, "border-square.png" LOSSY 98;
+image, "border-radio.png" LOSSY 98;
+image, "gradient-up.png" LOSSY 98;
+image, "gradient-dn.png" LOSSY 98;
+
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/button-programs.edc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- button-programs.edc 19 Feb 2004 21:47:34 -0000 1.3
+++ button-programs.edc 21 Feb 2004 06:33:14 -0000 1.4
@@ -1,18 +1,32 @@
programs {
+/*
program {
name, "normal";
signal, "mouse,out";
source, "*";
action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
+ transition, DECELERATE, 0.25;
+ //transition, LINEAR, 0.0;
target, "base";
}
+
program {
name, "hilited";
signal, "mouse,in";
source, "*";
action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
+ //transition, LINEAR, 0.0;
+ transition, DECELERATE, 0.25;
+ target, "base";
+ }
+
+ program {
+ name, "unhilight";
+ signal, "mouse,out";
+ source, "*";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE, 0.25;
+ //transition, LINEAR, 0.0;
target, "base";
}
program {
@@ -23,4 +37,14 @@
transition, LINEAR, 0.0;
target, "base";
}
+ program {
+ name, "unclick";
+ signal, "mouse,up,*";
+ source, "*";
+ action, STATE_SET "over" 0.0;
+ transition, LINEAR, 0.0;
+ target, "base";
+ }
+*/
+BUTTON_PROG()
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/checkbox-groups.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- checkbox-groups.edc 27 Jan 2004 06:04:53 -0000 1.1
+++ checkbox-groups.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -9,12 +9,12 @@
parts {
part {
name, "base";
- mouse_events, 0;
+ mouse_events, 1;
description {
state, "default" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ min, 8 8;
+ max, 8 8;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -24,14 +24,15 @@
offset, -1 -1;
}
image {
- normal, "checkbox.png";
+ normal, "gradient-up.png";
}
}
description {
state, "over" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ color, 229 239 255 255;
+ min, 8 8;
+ max, 8 8;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -41,14 +42,15 @@
offset, -1 -1;
}
image {
- normal, "checkbox-over.png";
+ normal, "gradient-up.png";
}
}
description {
state, "clicked" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ min, 8 8;
+ max, 8 8;
+ color, 229 239 255 255;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -58,11 +60,32 @@
offset, -1 -1;
}
image {
- normal, "checkbox.png";
+ normal, "gradient-dn.png";
}
}
}
+ part {
+ name, "border";
+ mouse_events, 0;
+ description {
+ state, "default" 0.0;
+ border, 3 3 3 3;
+ min, 10 10;
+ max, 10 10;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ }
+ image {
+ normal, "border-square.png";
+ }
+ }
+ }
part {
name, "check";
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/checkbox-programs.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- checkbox-programs.edc 28 Jan 2004 05:09:30 -0000 1.2
+++ checkbox-programs.edc 21 Feb 2004 06:33:14 -0000 1.3
@@ -5,7 +5,6 @@
source, "*";
action, STATE_SET "default" 0.0;
transition, LINEAR, 0.0;
- target, "base";
target, "check";
}
program {
@@ -13,7 +12,15 @@
signal, "mouse,in";
source, "*";
action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
+ transition, DECELERATE, 0.25;
+ target, "base";
+ }
+ program {
+ name, "unhilite";
+ signal, "mouse,out";
+ source, "*";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE, 0.25;
target, "base";
}
program {
@@ -23,7 +30,16 @@
action, STATE_SET "clicked" 0.0;
transition, LINEAR, 0.0;
target, "base";
- target, "check";
+ target, "check";
+ }
+ program {
+ name, "unclick";
+ signal, "mouse,up,*";
+ source, "*";
+ action, STATE_SET "hilited" 0.0;
+ transition, LINEAR, 0.0;
+ target, "base";
+ target, "check";
}
program {
name, "checked";
@@ -31,7 +47,6 @@
source, "*";
action, STATE_SET "checked" 0.0;
transition, LINEAR, 0.0;
- target, "base";
target, "check";
}
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/entry-groups.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- entry-groups.edc 27 Jan 2004 06:04:53 -0000 1.1
+++ entry-groups.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -8,7 +8,26 @@
}
parts {
part {
- name, "background";
+ name, "base";
+ mouse_events, 0;
+ description {
+ state, "default" 0.0;
+ border, 3 3 3 3;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ }
+ image {
+ normal, "gradient-dn.png";
+ }
+ }
+ }
+ part {
+ name, "base";
mouse_events, 0;
description {
state, "default" 0.0;
@@ -22,7 +41,7 @@
offset, -1 -1;
}
image {
- normal, "entry-base.png";
+ normal, "border-square.png";
}
}
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/radio-groups.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- radio-groups.edc 29 Jan 2004 14:29:49 -0000 1.2
+++ radio-groups.edc 21 Feb 2004 06:33:14 -0000 1.3
@@ -9,12 +9,12 @@
parts {
part {
name, "base";
- mouse_events, 0;
+ mouse_events, 1;
description {
state, "default" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ min, 8 8;
+ max, 8 8;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -24,14 +24,15 @@
offset, -1 -1;
}
image {
- normal, "radio.png";
+ normal, "gradient-round-up.png";
}
}
description {
state, "over" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ min, 8 8;
+ max, 8 8;
+ color, 229 239 255 255;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -41,14 +42,15 @@
offset, -1 -1;
}
image {
- normal, "radio-over.png";
+ normal, "gradient-round-up.png";
}
}
description {
state, "clicked" 0.0;
border, 3 3 3 3;
- min, 10 10;
- max, 10 10;
+ min, 8 8;
+ max, 8 8;
+ color, 229 239 255 255;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -58,13 +60,35 @@
offset, -1 -1;
}
image {
- normal, "radio.png";
+ normal, "gradient-round-dn.png";
}
}
}
part {
+ name, "border";
+ mouse_events, 0;
+ description {
+ state, "default" 0.0;
+ border, 4 5 4 5;
+ min, 10 10;
+ max, 10 10;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -1 -1;
+ }
+ image {
+ normal, "border-radio.png";
+ }
+ }
+ }
+
+ part {
name, "dot";
mouse_events, 0;
description {
@@ -106,42 +130,5 @@
}
}
-
- programs {
- program {
- name, "normal";
- signal, "default";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- target, "dot";
- }
- program {
- name, "hilited";
- signal, "mouse,in";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "mouse,down,*";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- target, "dot";
- }
- program {
- name, "checked";
- signal, "checked";
- source, "*";
- action, STATE_SET "checked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- target, "dot";
- }
- }
+#include "radio-programs.edc"
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/radio-images.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- radio-images.edc 27 Jan 2004 06:04:54 -0000 1.1
+++ radio-images.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -1,3 +1,4 @@
-image, "radio.png" LOSSY 98;
-image, "radio-over.png" LOSSY 98;
image, "dot.png" LOSSY 98;
+image, "border-radio.png" LOSSY 98;
+image, "gradient-round-up.png" LOSSY 98;
+image, "gradient-round-dn.png" LOSSY 98;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/data/themes/default/bits/scrollbar-groups.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- scrollbar-groups.edc 27 Jan 2004 06:04:54 -0000 1.1
+++ scrollbar-groups.edc 21 Feb 2004 06:33:14 -0000 1.2
@@ -1,65 +1,16 @@
group {
name, "vscroll-up";
- min, 14 12;
- max, 14 12;
+ min, 14 14;
+ max, 14 14;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button-clicked.png";
- }
- }
- }
-
+BUTTON_H()
part {
name, "arrow";
mouse_events, 1;
description {
state, "default" 0.0;
- min, 10 9;
- max, 10 9;
+ min, 8 7;
+ max, 8 7;
rel1 {
relative, 0.0 0.0;
offset, 0 1;
@@ -73,34 +24,13 @@
}
}
}
+
}
-
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+BUTTON_PROG()
}
+//#include "button-programs.edc"
+
} // end vscroll-up
group {
@@ -108,56 +38,7 @@
min, 12 10;
max, 12 10;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 0;
- }
- image {
- normal, "vscroll-button-clicked.png";
- }
- }
- }
-
+ BUTTON_H()
part {
name, "arrow";
mouse_events, 1;
@@ -179,32 +60,9 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
- } // end vscroll-up
+ } // end vscroll-mini-up
group {
@@ -212,63 +70,14 @@
min, 14 13;
max, 14 13;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button-clicked.png";
- }
- }
- }
-
+ BUTTON_H()
part {
name, "arrow";
mouse_events, 1;
description {
state, "default" 0.0;
- min, 10 9;
- max, 10 9;
+ min, 8 7;
+ max, 8 7;
rel1 {
relative, 0.0 0.0;
offset, 0 0;
@@ -285,88 +94,16 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
- } // end vscroll-dn
+ } // end vscroll-down
group {
name, "vscroll-mini-down";
min, 12 10;
max, 12 10;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, 0 -1;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "vscroll-button-clicked.png";
- }
- }
- }
-
+ BUTTON_H()
part {
name, "arrow";
mouse_events, 1;
@@ -388,95 +125,23 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
- } // end vscroll-dn
+ } // end vscroll-mini-down
group {
name, "hscroll-left";
- min, 12 14;
- max, 12 14;
+ min, 13 14;
+ max, 13 14;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button-clicked.png";
- }
- }
- }
-
+ BUTTON()
part {
name, "arrow";
mouse_events, 1;
description {
state, "default" 0.0;
- min, 9 10;
- max, 9 10;
+ min, 7 8;
+ max, 7 8;
rel1 {
relative, 0.0 0.0;
offset, 1 0;
@@ -493,30 +158,7 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
} // end hscroll-left
@@ -525,56 +167,7 @@
min, 10 12;
max, 10 12;
parts {
- part {
- name, "base";
- mouse_events, 1;
- description {
- state, "default" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, 0 -1;
- }
- image {
- normal, "hscroll-button-clicked.png";
- }
- }
- }
-
+ BUTTON()
part {
name, "arrow";
mouse_events, 1;
@@ -596,30 +189,7 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
} // end hscroll-left
@@ -629,70 +199,52 @@
min, 13 14;
max, 13 14;
parts {
+ BUTTON()
part {
- name, "base";
+ name, "arrow";
mouse_events, 1;
description {
state, "default" 0.0;
- border, 2 2 2 2;
+ min, 7 8;
+ max, 7 8;
rel1 {
relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "hscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "hscroll-button-over.png";
- }
- }
- description {
- state, "clicked" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
+ offset, 1 0;
}
rel2 {
relative, 1.0 1.0;
offset, -1 -1;
}
image {
- normal, "hscroll-button-clicked.png";
+ normal, "arrow-right.png";
}
}
}
-
+ }
+
+ programs {
+ BUTTON_PROG()
+ }
+ } // end hscroll-right
+
+ group {
+ name, "hscroll-mini-right";
+ min, 10 12;
+ max, 10 12;
+ parts {
+ BUTTON()
part {
name, "arrow";
mouse_events, 1;
description {
state, "default" 0.0;
- min, 9 10;
- max, 9 10;
rel1 {
relative, 0.0 0.0;
- offset, 1 0;
+ offset, 2 1;
}
rel2 {
relative, 1.0 1.0;
- offset, -1 -1;
+ offset, -2 -2;
}
image {
normal, "arrow-right.png";
@@ -702,37 +254,13 @@
}
programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
+ BUTTON_PROG()
}
} // end hscroll-right
group {
- name, "hscroll-mini-right";
- min, 10 12;
- max, 10 12;
+ name, "htrough";
+ min, 14 14;
parts {
part {
name, "base";
@@ -741,34 +269,25 @@
state, "default" 0.0;
border, 2 2 2 2;
rel1 {
+ to, "border";
relative, 0.0 0.0;
- offset, -1 0;
- }
- rel2 {
- relative, 1.0 1.0;
- offset, -1 -1;
- }
- image {
- normal, "hscroll-button.png";
- }
- }
- description {
- state, "over" 0.0;
- border, 2 2 2 2;
- rel1 {
- relative, 0.0 0.0;
- offset, -1 0;
+ offset, 1 1;
}
rel2 {
+ to, "border";
relative, 1.0 1.0;
- offset, -1 -1;
+ offset, -2 -2;
}
image {
- normal, "hscroll-button-over.png";
+ normal, "gradient-dn.png";
}
}
+ }
+ part {
+ name, "border";
+ mouse_events, 1;
description {
- state, "clicked" 0.0;
+ state, "default" 0.0;
border, 2 2 2 2;
rel1 {
relative, 0.0 0.0;
@@ -776,82 +295,57 @@
}
rel2 {
relative, 1.0 1.0;
- offset, -1 -1;
+ offset, 0 -1;
}
image {
- normal, "hscroll-button-clicked.png";
+ normal, "border-square.png";
}
}
}
-
+ }
+ } // end trough
+
+ group {
+ name, "vtrough";
+ min, 14 14;
+ parts {
part {
- name, "arrow";
+ name, "base";
mouse_events, 1;
description {
state, "default" 0.0;
+ border, 2 2 2 2;
rel1 {
+ to, "border";
relative, 0.0 0.0;
- offset, 2 1;
+ offset, 1 1;
}
rel2 {
+ to, "border";
relative, 1.0 1.0;
offset, -2 -2;
}
image {
- normal, "arrow-right.png";
+ normal, "gradient-hor-dn.png";
}
}
}
- }
-
- programs {
- program {
- name, "normal";
- signal, "normal";
- source, "*";
- action, STATE_SET "default" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "hilited";
- signal, "hilited";
- source, "*";
- action, STATE_SET "over" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- program {
- name, "clicked";
- signal, "clicked";
- source, "*";
- action, STATE_SET "clicked" 0.0;
- transition, LINEAR, 0.0;
- target, "base";
- }
- }
- } // end hscroll-right
-
- group {
- name, "trough";
- min, 14 14;
- parts {
part {
- name, "base";
+ name, "border";
mouse_events, 1;
description {
state, "default" 0.0;
border, 2 2 2 2;
rel1 {
relative, 0.0 0.0;
- offset, 0 0;
+ offset, 0 -1;
}
rel2 {
relative, 1.0 1.0;
- offset, -1 -1;
+ offset, -1 0;
}
image {
- normal, "scroll-trough.png";
+ normal, "border-square.png";
}
}
}
|