Create window decorations #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I need
I need 9-patches for window decorations. A 9-patch is an image that can be drawn at any size. The edges will be kept at their original sizes, while the insides get stretched to accommodate the size.
In DiceOS, the edges and insides are indicated with a single pixel line above and to the left of the image. White indicates that that region will be kept as is, black indicates that it will be stretched. See
1ef39458ce/src/main/resources/system/menubar.pngas an example.For the border, three images are needed:
Why I want it this way
Why do I want the thick and thin border separately? In Haiku (a modern continuation of BeOS), it's possible to tab any windows together. Given the small resolution DiceOS will run at, I think this will be very useful. But that means that the thick window border at the top will not stretch across the entire width of the window (see reference 3 for what BeOS windows look like). Having them separate makes this easier. In addition, the thin borders can maybe be used around splash screens, drop down menus, and other things that don't need all the window controls.
Sizing
These sizings are not fixed in stone, but are more of a guideline.
References
Reference 1
Reference 2
Reference 3
Reference 4