repair brokeness provided by a foolish Makefile
[manmower/obtheme.git] / theme.obtheme
index af8d033..6946cec 100644 (file)
@@ -18,48 +18,83 @@ theme awesome {
        style regular_window {
                decor clientwindow {
                        space {
-                               anchor(0 0 0)
-                               up(1 0 0)
+                               anchor(0, 0, 0)
+                               up(0, 1, 0)
                        }
                        geometry {
-                               shapeof(client)
+//                             shapeof(client)
+                               box (0, 0, 0) to (client.width, client.height, 0)
                        }
                        material(flat)
-                       texture { //$CLIENT.contents
+                       texture {
+                               image(client)
                        }
 
                        decor titlebar {
                                context(titlebar)
+                               space {
+                                       anchor(0, -font.height + 5, 0)
+                               }
                                geometry {
-                               //      box (0, 0, 0) to (100% of $CLIENT, 100%, 0)
+                                       box (0, 0, 0) to (client.width, font.height + 5, 0)
                                }
                                material(flat)
-//texture {
+
                                decor title {
                                        geometry {
+                                               box (client.width / 4, font.height + 5, 0) to (3*client.width / 4, font.height + 5, 0)
 //                                             text(client.title)
 //                                             justify(center)
                                        }
                                }
                                decor minbutton {
+                                       space {
+                                               anchor(client.width - 20, -10, 0)
+                                       }
+                                       geometry {
+                                               box (0, 0, 0) to (10, 10, 0)
+                                       }
                                        material(none)
                                        context(minimize)
                                }
                                decor maxbutton {
+                                       space {
+                                               anchor(client.width - 40, -10, 0)
+                                       }
+                                       geometry {
+                                               box (0, 0, 0) to (10, 10, 0)
+                                       }
                                        material(none)
                                        context(maximize)
                                }
                        }
                        decor handle {
+                               geometry {
+                                       box (0, 0, 0) to (client.width, 10, 0)
+                               }
                                space {
-                                       anchor(0 0 0)
-                                       up(0 0 0)
+                                       anchor(0, client.height, 0)
+                                       up(0, 1, 0)
                                }
                                decor leftgrip {
+                                       space {
+                                               anchor(0, client.height, 0)
+                                               up(0, 1, 0)
+                                       }
+                                       geometry {
+                                               box (0, 0, 0) to (30, 10, 0)
+                                       }
                                        context(blcorner)
                                        cursor(SOUTHWEST)
                                }
                                decor rightgrip {
+                                       space {
+                                               anchor(client.width - 30, client.height, 0)
+                                               up(0, 1, 0)
+                                       }
+                                       geometry {
+                                               box (0, 0, 0) to (30, 10, 0)
+                                       }
                                        context(brcorner)
                                        cursor(SOUTHEAST)
                                }