Difference between revisions of "GUI Themes/STX Syntax"

Jump to navigation Jump to search
465 bytes removed ,  13:45, 10 August 2009
→‎<font>: update "font" configuration documentation
(→‎List of GUI Dialogs: -- added KeyMapper dialog)
(→‎<font>: update "font" configuration documentation)
Line 145: Line 145:
Parent: <tt>&lt;fonts&gt;</tt><br />
Parent: <tt>&lt;fonts&gt;</tt><br />
Children: -<br />
Children: -<br />
Properties: <tt>id</tt> (''required''), <tt>file</tt> (''required''), <tt>color</tt> (''required''), <tt>resolution</tt>
Properties: <tt>id</tt> (''required''), <tt>file</tt> (''required''), <tt>resolution</tt>


===== Example =====
===== Example =====
Line 152: Line 152:
<font  id = 'text_default'
<font  id = 'text_default'
         file = 'default'
         file = 'default'
        color = 'black'
/>
/>
</syntax>
</syntax>
Line 165: Line 164:


* <tt>text_default</tt>: Core font for the engine, used to draw all the static text and most of the text in widgets.
* <tt>text_default</tt>: Core font for the engine, used to draw all the static text and most of the text in widgets.
* <tt>text_hover</tt>: Used for text which is currently being highlighted / hovered by the mouse.
* <tt>text_button</tt>: Text for Button widgets.
* <tt>text_disabled</tt>: Used for text on disabled widgets.
* <tt>text_inverted</tt>: Text which is currently selected and has a special selection background.
* <tt>text_button</tt>: Default text for Button widgets.
* <tt>text_button_hover</tt>: Default text for highlighted button widgets.
* <tt>text_normal</tt>: ''Normal'', smaller text (i.e. non bold) used sparsely (editable text widgets, about dialog, etc).
* <tt>text_normal</tt>: ''Normal'', smaller text (i.e. non bold) used sparsely (editable text widgets, about dialog, etc).
For performance reasons, these identifiers are unique and limited (i.e. the parser doesn't expect any other custom identifiers). Future versions of the Theme Format may allow for custom Fonts specific to certain widgets.
For performance reasons, these identifiers are unique and limited (i.e. the parser doesn't expect any other custom identifiers). Future versions of the Theme Format may allow for custom Fonts specific to certain widgets.


Line 177: Line 173:
* <tt>id [string]</tt>: Unique font identifier.
* <tt>id [string]</tt>: Unique font identifier.
* <tt>file [string]</tt>: External Font file to load. Use &quot;default&quot; to let the renderer choose the most appropriate default font based on the active resolution (usually an builtin one).
* <tt>file [string]</tt>: External Font file to load. Use &quot;default&quot; to let the renderer choose the most appropriate default font based on the active resolution (usually an builtin one).
* <tt>color [int, int, int|string]</tt>: Color to draw the text with.
* <tt>resolution [int x int]</tt>: Load only on a given resolution. See resolution-dependant keys.
* <tt>resolution [int x int]</tt>: Load only on a given resolution. See resolution-dependant keys.


561

edits

Navigation menu