repair brokeness provided by a foolish Makefile
[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, 1, 0)
23                         }
24                         geometry {
25 //                              shapeof(client)
26                                 box (0, 0, 0) to (client.width, client.height, 0)
27                         }
28                         material(flat)
29                         texture {
30                                 image(client)
31                         }
32
33                         decor titlebar {
34                                 context(titlebar)
35                                 space {
36                                         anchor(0, -font.height + 5, 0)
37                                 }
38                                 geometry {
39                                         box (0, 0, 0) to (client.width, font.height + 5, 0)
40                                 }
41                                 material(flat)
42
43                                 decor title {
44                                         geometry {
45                                                 box (client.width / 4, font.height + 5, 0) to (3*client.width / 4, font.height + 5, 0)
46 //                                              text(client.title)
47 //                                              justify(center)
48                                         }
49                                 }
50                                 decor minbutton {
51                                         space {
52                                                 anchor(client.width - 20, -10, 0)
53                                         }
54                                         geometry {
55                                                 box (0, 0, 0) to (10, 10, 0)
56                                         }
57                                         material(none)
58                                         context(minimize)
59                                 }
60                                 decor maxbutton {
61                                         space {
62                                                 anchor(client.width - 40, -10, 0)
63                                         }
64                                         geometry {
65                                                 box (0, 0, 0) to (10, 10, 0)
66                                         }
67                                         material(none)
68                                         context(maximize)
69                                 }
70                         }
71                         decor handle {
72                                 geometry {
73                                         box (0, 0, 0) to (client.width, 10, 0)
74                                 }
75                                 space {
76                                         anchor(0, client.height, 0)
77                                         up(0, 1, 0)
78                                 }
79                                 decor leftgrip {
80                                         space {
81                                                 anchor(0, client.height, 0)
82                                                 up(0, 1, 0)
83                                         }
84                                         geometry {
85                                                 box (0, 0, 0) to (30, 10, 0)
86                                         }
87                                         context(blcorner)
88                                         cursor(SOUTHWEST)
89                                 }
90                                 decor rightgrip {
91                                         space {
92                                                 anchor(client.width - 30, client.height, 0)
93                                                 up(0, 1, 0)
94                                         }
95                                         geometry {
96                                                 box (0, 0, 0) to (30, 10, 0)
97                                         }
98                                         context(brcorner)
99                                         cursor(SOUTHEAST)
100                                 }
101                                 context(bottom)
102                                 cursor(SOUTH)
103                         }
104                 }
105         }
106 }