Skip to content

Commit 727ea89

Browse files
author
AliksusFootages
committed
1.3.6
1 parent 7c93f7f commit 727ea89

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Example.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ local Button = NotificationTab:Button({
401401

402402
---- 1. Add Theme
403403

404-
Window:AddTheme({
404+
WindUI:AddTheme({
405405
Name = "Halloween",
406406

407407
Accent = "#331400",
@@ -415,7 +415,7 @@ Window:AddTheme({
415415

416416
---- 2. Use Theme
417417

418-
Window:SetTheme("Dark")
418+
WindUI:SetTheme("Dark")
419419

420420
---- 3. Load Themes
421421

@@ -463,7 +463,7 @@ local themeDropdown = WindowTab:Dropdown({
463463
Value = nil,
464464
Values = themeValues,
465465
Callback = function(theme)
466-
Window:SetTheme(theme)
466+
WindUI:SetTheme(theme)
467467
end
468468
})
469469
themeDropdown:Select(Window:GetCurrentTheme())

dist/main.lua

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/documentation/themes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ On this page
55
66
## Load own theme
77
```lua
8-
Window:AddTheme({
8+
WindUI:AddTheme({
99
Name = "Halloween",
1010

1111
Accent = "#331400",
@@ -18,5 +18,5 @@ Window:AddTheme({
1818

1919
## Use your theme
2020
```lua
21-
Window:SetTheme("Halloween")
21+
WindUI:SetTheme("Halloween")
2222
```

src/init.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ function WindUI:Notify(Config)
5454
end
5555

5656

57-
function Window:AddTheme(LTheme)
57+
function WindUI:AddTheme(LTheme)
5858
Themes[LTheme.Name] = LTheme
5959
return LTheme
6060
end
6161

62-
function Window:SetTheme(Value)
62+
function WindUI:SetTheme(Value)
6363
if Themes[Value] then
6464
WindUI.Theme = Themes[Value]
6565
Creator.SetTheme(Themes[Value])
@@ -70,16 +70,16 @@ end
7070
return nil
7171
end
7272

73-
function Window:GetThemes()
73+
function WindUI:GetThemes()
7474
return Themes
7575
end
76-
function Window:GetCurrentTheme()
76+
function WindUI:GetCurrentTheme()
7777
return WindUI.Theme.Name
7878
end
79-
function Window:GetTransparency()
79+
function WindUI:GetTransparency()
8080
return WindUI.Transparent or false
8181
end
82-
function Window:GetWindowSize()
82+
function WindUI:GetWindowSize()
8383
return Window.UIElements.Main.Size
8484
end
8585

0 commit comments

Comments
 (0)