Files
Basalt/docs/docs1_6/objects/Frame/setTheme.md
2023-06-03 20:10:22 +02:00

870 B

setTheme

Sets the default theme, of that frame children objects always try to get the theme of its parent frame, if it does not exist it goes to its parent parent frame, and so on until it reaches the basalt manager's theme - which is stored in theme.lua (Please checkout theme for how it could look like.

Parameters:

  1. table theme layout look into theme for a example

Returns:

  1. frame The frame being used

Usage:

  • Creates a new base frame and adds a new theme which only changes the default color of buttons.
local myFrame = basalt.createFrame():setTheme({
    ButtonBG = colors.yellow,
    ButtonText = colors.red,
})