Skip to reading
GUI Styling, Shaders & Effects

Title bars, close controls and consistent framing

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 13. The title bar has its own background, text and font settings.

Use Show Title Bar when the window benefits from a clear heading or draggable chrome. Choose its height, background, caption font/color and alignment. Leave enough horizontal room for the close control and any title icon.

The Close Button has separate normal, hover and pressed backgrounds, text or image content, dimensions, border and its own common radius. Its shape is independent of the window’s outer corners.

Title icons and close controls have placement choices. In the example the close control is upper-right. Use a visible, generous hit area when the game supports touch, and confirm that an ornamental image still communicates “close.”

Rounding the outer window does not automatically round every title-control surface the same way. Work from the window outward: body, title bar, close control and then the content.

Page 19 of 70Permalink
Go to page