Studio › Manual › Studio kit

The UI theme

Game Options > UI Theme (Code > Kit > UI Theme…, ⌥⇧⌘T) is the project's look for the kit's controls, written to scr_studio_ui_theme (the game reads it when it starts; ui_theme_set switches it while playing).

  • General: a font for every control's text, the colours (text, disabled text, focus, accent, selected text, caret, placeholder), the focus ring's sprite and how far it grows, the scroll bar's width.
  • Styles: one per kind of control. Each gives a sprite and frame for every state the control draws (normal, focus, pressed, disabled; a check box's on states; a list's rows; a dropdown's open list and arrow; tabs; the scroll bar), its padding, a font and a text colour. Set the sprite's nine-slice borders in the sprite editor so it stretches cleanly.
  • Look: Sprites (above) or Flat colour: a colour per state (clear: that state's sprite), with one border (width and colour, inside the edge), round corners and a soft drop shadow. Nothing to draw: good for quick, clean menus.
  • Variants: Add Variant copies a style under a new name (button_big); a control whose style value names it uses it.

A single control can also have its own background instead of the theme's (see kit-ui-style).

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.