Skip to reading
GUI Styling, Shaders & Effects

Layering and spacing make the style work

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 PDF page
Source table from Layering and spacing make the style work, page 8
PartPractical starting rule
Background PanelsPut them behind content with a lower Z Index.
ImagesKeep them above their backdrop and below any intentional text overlay.
Labels and ButtonsGive them an explicit higher layer when they overlap a Panel.
MarginsLeave room between a curved border and the text.
GapsRepeat a few gap sizes rather than inventing a new one for every element.

Z Index is in General. For a simple layered card, try Panel 0, Image 1 and text/controls 2 or 3. When overlapping elements share the same layer, do not depend on a lucky drawing order.

A border radius changes the shape you see. It does not add padding for the caption. If text crowds a round corner, move or resize the content; increasing the radius again usually makes the crowding worse.

Use alignment tools, snapping and repeated dimensions to keep related controls tidy. A 64-pixel Button next to another 64-pixel Button reads as one set. A collection of slightly different heights looks accidental even when the colors match.

If text disappears behind an opaque Panel, inspect Z Index before changing text opacity or font color. Transparent panels can hide the same layering mistake by letting part of the text show through.

Page 8 of 70Permalink
Go to page