Docs: Basalt.setTheme

This commit is contained in:
Erb3
2022-09-17 14:28:44 +02:00
parent 40b24ccf46
commit 2dfe69fe43

View File

@@ -1,15 +1,20 @@
## basalt.setTheme
Sets the base theme of the project! Make sure to cover all existing objects, otherwise it will result in errors. A good example is [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua)
#### Parameters: # basalt.setTheme
Sets the base theme of the project! Make sure to cover all existing objects, otherwise it will result in errors. A good example is [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua). The theme can also be gotten with [`basalt.getTheme()`](objects/Basalt/getTheme)
## Parameters
1. `table` theme layout look into [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua) for a example 1. `table` theme layout look into [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua) for a example
#### Usage: ## Usage
* Sets the default theme of basalt. * Sets the default theme of basalt.
```lua ```lua
basalt.setTheme({ basalt.setTheme({
ButtonBG = colors.yellow, ButtonBG = colors.yellow,
ButtonText = colors.red, ButtonText = colors.red,
..., ...,
}) })
``` ```