From d6091b312c20f7cf3c1009915f716070c0d8bfb9 Mon Sep 17 00:00:00 2001 From: Erlend Date: Fri, 16 Dec 2022 15:28:11 +0100 Subject: [PATCH] :pencil2: Fix small typo ("sotred" -> "stored") --- docs/objects/Frame/setTheme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/objects/Frame/setTheme.md b/docs/objects/Frame/setTheme.md index 595e50e..43e9f67 100644 --- a/docs/objects/Frame/setTheme.md +++ b/docs/objects/Frame/setTheme.md @@ -1,17 +1,22 @@ ## 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 managers theme - which is sotred in theme.lua (Please checkout [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua) for how it could look like. -#### Parameters: +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](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua) for how it could look like. + +#### Parameters: + 1. `table` theme layout look into [theme](https://github.com/Pyroxenium/Basalt/blob/master/Basalt/theme.lua) 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. + +- Creates a new base frame and adds a new theme which only changes the default color of buttons. + ```lua local myFrame = basalt.createFrame():setTheme({ ButtonBG = colors.yellow, ButtonText = colors.red, }) -``` \ No newline at end of file +``` -- 2.49.1