UITooltip Theming Parameters¶
The UIToolTip
theming block id is 'tool_tip'.
Misc¶
UITooltip
accepts the following miscellaneous parameters in a 'misc' block:
- "rect_width" - The width of the rectangle around the tool tip in pixels, including any shadows or borders. The height is determined dynamically.
Sub-elements¶
The UIToolTip
contains a UITextBox
so you can use the block ID 'tool_tip.text_box' to start styling
it.
There is more information on theming the text box at UITextBox Theming Parameters.
Example¶
Here is an example of a tool tip block in a JSON theme file, using parameters from the text box element.
tool_tip.json¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | { "tool_tip": { "misc": { "rect_width": "170" } }, "tool_tip.text_box": { "colours": { "dark_bg":"#505050", "normal_border": "#FFFFFF" }, "misc": { "border_width": "2", "padding": "5,5" } } } |