add enough stuff to maybe start work on rendering code
[manmower/obtheme.git] / theme.obtheme
1 //#include materials.obtheme
2
3 //version(1)
4
5 material flat {
6         opacity(1)
7 }
8
9 material grad {
10         opacity(1)
11         gradient(split)
12 }
13
14 material none {
15 }
16
17 theme awesome {
18         style regular_window {
19                 decor clientwindow {
20                         space {
21                                 anchor(0, 0, 0)
22                                 up(0, 0, 0)
23                         }
24                         geometry {
25                                 shapeof(client)
26                         }
27                         material(flat)
28                         texture {
29                                 image(client)
30                         }
31
32                         decor titlebar {
33                                 context(titlebar)
34                                 geometry {
35                                         box (0, 0, 0) to (client.width, font.height + 5, 0)
36                                 }
37                                 material(flat)
38
39                                 decor title {
40                                         geometry {
41                                                 box (client.width / 4, font.height + 5, 0) to (3*client.width / 4, font.height + 5, 0)
42 //                                              text(client.title)
43 //                                              justify(center)
44                                         }
45                                 }
46                                 decor minbutton {
47                                         geometry {
48                                                 box (0, 0, 0) to (10, 10, 0)
49                                         }
50                                         material(none)
51                                         context(minimize)
52                                 }
53                                 decor maxbutton {
54                                         material(none)
55                                         context(maximize)
56                                 }
57                         }
58                         decor handle {
59                                 space {
60                                         anchor(0, 0, 0)
61                                         up(0, 0, 0)
62                                 }
63                                 decor leftgrip {
64                                         context(blcorner)
65                                         cursor(SOUTHWEST)
66                                 }
67                                 decor rightgrip {
68                                         context(brcorner)
69                                         cursor(SOUTHEAST)
70                                 }
71                                 context(bottom)
72                                 cursor(SOUTH)
73                         }
74                 }
75         }
76 }