Docs: Basalt.setTheme
This commit is contained in:
@@ -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,
|
||||||
...,
|
...,
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user