Theme SVG File

The SVG file used to specify a toolkit theme is arranged so that individual GUI elements are stored within specifically named inkscape layers.

The extraction script produces PNG snapshots of known layers and can also measure gadget sizes. Area measurements are needed to specify free-form packing areas within gadgets (called "Arenas") which can be used to nest GUI elements. Objects purely meant for measurements are best put into "(invisible)" layers, so they don't have an impact on snapshot images.

Layers are arranged in a hierarchical structure which mimicks gadgets and assorted states or properties. So example layers are Button, Button/Normal, Button/Pressed.

Useful inkscape properties for theme SVG files:

	dpi:		90
	units:		pixels
	size:		320x200
	pixel raster:	10/5
	stroke-width:	1
Layers

Layers marked "(invisible)" will be disabled before generating gadget image snapshots.

Palette specification

Uniformly colored objects should be used to represent palette colors. The center pixels of a palette color object are used to extract color palette meta-data. Palette layer names are:

Gadget identifiers

Note, interesting states are:

Useful gadgets:

Area identifiers
Tips

User interface elements should be drawn as small as possible, because the GUI element size in the standard SVG file effectively adds up to the minimum size of a GUI element. That's because the target layout logic is supposed to only stretch elements and avoid squeezing.