|www.progui.co.uk Top Previous Next|
ProGUI - Skins
Skins allow ProGUI controls/components (and user made controls) to be easily and quickly 'skinned' to a particular graphical style. Includes various commands for creating, loading, saving and manipulating skins.
The skin subsystem in ProGUI works on the principal that each skin can contain one or more components that have states with properties that describe the component in each state. Skins are very flexible in ProGUI and components, states and properties can be easily created, added or retrieved simply by specifying a name for that component, state or property (as a text string). Skins can also have separate colour themes, please see SetSkinProperty.
The property's value is a text string that describes what a certain part of a control's appearance looks like in that particular state. The language used for describing a property in ProGUI is a simplified version of CSS (Cascading Style Sheets): please refer to the documentation of each ProGUI component to see the states and properties that it supports and the individual CSS property markup. Skins are stored as an XML file ('.skn') and can be easily edited with a text editor (or can be saved as a single compressed '.sknz' package containing the XML file and all the skin's data resources).