]> git.tdb.fi Git - libs/gltk.git/blob - helloworld.gui
Support exclusive Toggles for implementing option buttons
[libs/gltk.git] / helloworld.gui
1 /* $Id$ */
2
3 default_font "dejavu-10.font";
4
5 graphic "button_bg"
6 {
7         texture "helloworld.png";
8         slice 0 54 20 10;
9         border { left 3; right 3; top 3; bottom 3; };
10 };
11
12 graphic "button_bg_pressed"
13 {
14         texture "helloworld.png";
15         slice 22 54 20 10;
16         border { left 3; right 3; top 3; bottom 3; };
17 };
18
19 style "button"
20 {
21         font_color 0.0 0.0 0.0;
22
23         part
24         {
25                 graphic NORMAL "button_bg";
26                 graphic ACTIVE "button_bg_pressed";
27         };
28
29         special "text"
30         {
31                 align 0.5 0.5;
32                 fill 0.0 0.0;
33                 margin { left 3; right 3; top 3; bottom 3; };
34         };
35 };
36
37 style "label"
38 {
39         font_color 0.0 0.0 0.0;
40
41         special "text"
42         {
43                 align 0.5 0.5;
44                 fill 0.0 0.0;
45         };
46 };
47
48 graphic "entry_bg"
49 {
50         texture "helloworld.png";
51         slice 0 42 20 10;
52         border { left 3; right 3; top 3; bottom 3; };
53 };
54
55 graphic "entry_cursor"
56 {
57         texture "helloworld.png";
58         slice 22 42 1 10;
59 };
60
61 style "entry"
62 {
63         font_color 0.0 0.0 0.0;
64
65         part
66         {
67                 graphic NORMAL "entry_bg";
68         };
69
70         special "text"
71         {
72                 align 0.0 0.5;
73                 fill 0.0 0.0;
74                 margin { left 3; right 3; top 3; bottom 3; };
75         };
76
77         special "cursor"
78         {
79                 graphic FOCUS "entry_cursor";
80                 align 0.0 0.0;
81                 fill 0.0 1.0;
82                 margin { left 3; right 3; top 3; bottom 3; };
83         };
84 };
85
86 graphic "panel_bg"
87 {
88         texture "helloworld.png";
89         slice 0 20 20 20;
90         border { left 4; right 4; top 4; bottom 4; };
91 };
92
93 style "panel"
94 {
95         part
96         {
97                 graphic NORMAL "panel_bg";
98         };
99
100         special "children";
101 };
102
103 style "root"
104 {
105         special "children";
106 };