e4a3af177aaee14da56658324fe1e565bab270cf
[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                                 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                                 geometry {
36                                         box (0, 0, 0) to (client.width, font.height + 5, 0)
37                                 }
38                                 material(flat)
39
40                                 decor title {
41                                         geometry {
42                                                 box (client.width / 4, font.height + 5, 0) to (3*client.width / 4, font.height + 5, 0)
43 //                                              text(client.title)
44 //                                              justify(center)
45                                         }
46                                 }
47                                 decor minbutton {
48                                         geometry {
49                                                 box (0, 0, 0) to (10, 10, 0)
50                                         }
51                                         material(none)
52                                         context(minimize)
53                                 }
54                                 decor maxbutton {
55                                         geometry {
56                                                 box (0, 0, 0) to (10, 10, 0)
57                                         }
58                                         material(none)
59                                         context(maximize)
60                                 }
61                         }
62                         decor handle {
63                                 geometry {
64                                         box (0, 0, 0) to (client.width, 10, 0)
65                                 }
66                                 space {
67                                         anchor(0, client.height, 0)
68                                         up(0, 1, 0)
69                                 }
70                                 decor leftgrip {
71                                         space {
72                                                 anchor(0, client.height, 0)
73                                                 up(0, 1, 0)
74                                         }
75                                         geometry {
76                                                 box (0, 0, 0) to (30, 10, 0)
77                                         }
78                                         context(blcorner)
79                                         cursor(SOUTHWEST)
80                                 }
81                                 decor rightgrip {
82                                         space {
83                                                 anchor(client.width - 30, client.height, 0)
84                                                 up(0, 1, 0)
85                                         }
86                                         geometry {
87                                                 box (0, 0, 0) to (30, 10, 0)
88                                         }
89                                         context(brcorner)
90                                         cursor(SOUTHEAST)
91                                 }
92                                 context(bottom)
93                                 cursor(SOUTH)
94                         }
95                 }
96         }
97 }