]> git.tdb.fi Git - r2c2.git/blobdiff - marklin.res
Add graphics for toggle widget
[r2c2.git] / marklin.res
index ce53e1ce67e23ed11f1a9870d36ad6fdd99a5a67..f2f69f378979c90410911d581b6b8fee98066aa2 100644 (file)
@@ -140,6 +140,20 @@ graphic "hsliderknob"
        shadow { top 0; right 2; bottom 3; left 0; };
 };
 
+graphic "switchdown"
+{
+       texture "gui.png";
+       slice 46 43 20 21;
+       shadow { top 0; right 2; bottom 3; left 0; };
+};
+
+graphic "switchup"
+{
+       texture "gui.png";
+       slice 67 43 20 21;
+       shadow { top 0; right 2; bottom 3; left 0; };
+};
+
 style "button"
 {
        font_color 0 0 0;
@@ -197,6 +211,25 @@ style "button-red"
        };
 };
 
+style "toggle"
+{
+       font_color 0.0 0.0 0.0;
+
+       special "text"
+       {
+               align 0.5 1.0;
+               fill 0.0 0.0;
+       };
+
+       part
+       {
+               align 0.5 0.0;
+               fill 0.0 0.0;
+               graphic NORMAL "switchdown";
+               graphic ACTIVE "switchup";
+       };
+};
+
 style "panel"
 {
        part