]> git.tdb.fi Git - libs/gltk.git/blobdiff - helloworld.gui
Add a simple Hello World application to demonstrate the library
[libs/gltk.git] / helloworld.gui
diff --git a/helloworld.gui b/helloworld.gui
new file mode 100644 (file)
index 0000000..94188c7
--- /dev/null
@@ -0,0 +1,106 @@
+/* $Id$ */
+
+default_font "dejavu-10.font";
+
+graphic "button_bg"
+{
+       texture "helloworld.png";
+       slice 0 54 20 10;
+       border { left 3; right 3; top 3; bottom 3; };
+};
+
+graphic "button_bg_pressed"
+{
+       texture "helloworld.png";
+       slice 22 54 20 10;
+       border { left 3; right 3; top 3; bottom 3; };
+};
+
+style "button"
+{
+       font_color 0.0 0.0 0.0;
+
+       part
+       {
+               graphic NORMAL "button_bg";
+               graphic ACTIVE "button_bg_pressed";
+       };
+
+       special "text"
+       {
+               align 0.5 0.5;
+               fill 0.0 0.0;
+               margin { left 3; right 3; top 3; bottom 3; };
+       };
+};
+
+style "label"
+{
+       font_color 0.0 0.0 0.0;
+
+       special "text"
+       {
+               align 0.5 0.5;
+               fill 0.0 0.0;
+       };
+};
+
+graphic "entry_bg"
+{
+       texture "helloworld.png";
+       slice 0 42 20 10;
+       border { left 3; right 3; top 3; bottom 3; };
+};
+
+graphic "entry_cursor"
+{
+       texture "helloworld.png";
+       slice 22 42 1 10;
+};
+
+style "entry"
+{
+       font_color 0.0 0.0 0.0;
+
+       part
+       {
+               graphic NORMAL "entry_bg";
+       };
+
+       special "text"
+       {
+               align 0.0 0.5;
+               fill 0.0 0.0;
+               margin { left 3; right 3; top 3; bottom 3; };
+       };
+
+       special "cursor"
+       {
+               graphic FOCUS "entry_cursor";
+               align 0.0 0.0;
+               fill 0.0 1.0;
+               margin { left 3; right 3; top 3; bottom 3; };
+       };
+};
+
+graphic "panel_bg"
+{
+       texture "helloworld.png";
+       slice 0 20 20 20;
+       border { left 4; right 4; top 4; bottom 4; };
+};
+
+style "panel"
+{
+       part
+       {
+               graphic NORMAL "panel_bg";
+       };
+
+       special "children";
+};
+
+style "root"
+{
+       special "children";
+};