Skip to content

Commit 66e71a1

Browse files
author
AliksusFootages
committed
1.4.2
1 parent 90ef2ac commit 66e71a1

File tree

16 files changed

+7784
-16269
lines changed

16 files changed

+7784
-16269
lines changed

Lucide/Icons/icons-48.lua

Lines changed: 0 additions & 7674 deletions
This file was deleted.

Lucide/Icons/icons-96.lua

Lines changed: 0 additions & 7700 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ An Open source and customizable UI library for Roblox, featuring a dark theme an
1414
- 🌑 **Dark Theme**: Sleek, modern dark theme design.
1515
- 🎨 **Customizable Colors**: Easily adjustable color settings for a personalized look.
1616
- ⚙️ **Efficient Scripting**: Uses loadstring for optimized script execution.
17+
- 🖊️ **Lucide Icons **: Uses suitable lucide icons that make the interface more beautiful
1718

1819
<hr>
1920

2021
### Credits:
21-
- Dawid
22+
- [Dawid-Scripts](https://github.com/dawid-scripts) (Colorpicker)
23+
- [Lucide-Icons](https://github.com/lucide-icons/lucide) (Icons)
2224

2325

2426
### [Discord Server](https://discord.gg/ctYGD2xB3r)
@@ -30,11 +32,12 @@ An Open source and customizable UI library for Roblox, featuring a dark theme an
3032
git clone https://github.com/Footagesus/WindUI.git
3133
cd WindUI
3234
```
33-
3435
2. Install dependencies if required.
3536

36-
3737
3. Run `npm run build`
3838

39+
[Usage Documentation](https://footagesus.github.io/WindUI/)
3940

40-
[Usage Documentation](https://footagesus.github.io/WindUI/)
41+
<hr>
42+
> [!NOTE]
43+
> Last icons update: November 30, 2024

dist/main.lua

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

docs/documentation/tab.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ Window:SelectTab(2) -- Number of Tab
1818
```
1919

2020
::: tip INFO
21-
1539 Lucide Icons are used in this UI Library
21+
1541 Lucide Icons are used in this UI Library
22+
23+
Last icons update: November 30, 2024
2224
:::

main.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ local Window = WindUI:CreateWindow({
1919
})
2020

2121
Window:EditOpenButton({
22-
Title = "Open Button",
23-
--Icon = "door-closed",
22+
Title = "Open UI Button",
23+
Icon = "image-upscale", -- New icon
24+
CornerRadius = UDim.new(0,10),
25+
StrokeThickness = 3,
2426
Color = ColorSequence.new(
2527
Color3.fromHex("FF0F7B"),
2628
Color3.fromHex("F89B29")

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"docs:dev": "vitepress dev docs",
77
"docs:build": "vitepress build docs",
88
"docs:serve": "vitepress serve docs",
9-
"dev:lua": "darklua process main.lua dist/main.lua --config darklua.dev.config.json && lua build/init.lua",
10-
"build:lua": "darklua process src/init.lua dist/main.lua --config darklua.config.json && lua build/init.lua"
9+
"dev": "darklua process main.lua dist/main.lua --config darklua.dev.config.json && lua build/init.lua",
10+
"build": "darklua process src/init.lua dist/main.lua --config darklua.config.json && lua build/init.lua"
1111
},
1212
"devDependencies": {
1313
"vue": "3.2.44",

src/Components/Notification.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function NotificationModule.New(Config)
7171
Position = UDim2.new(0,NotificationModule.UIPadding,0,NotificationModule.UIPadding),
7272
BackgroundTransparency = 1,
7373
Image = Creator.Icon(Notification.Icon)[1],
74-
ImageRectSize = Creator.Icon(Notification.Icon)[2]._Size,
74+
ImageRectSize = Creator.Icon(Notification.Icon)[2].ImageRectSize,
7575
ImageRectOffset = Creator.Icon(Notification.Icon)[2].ImageRectPosition,
7676
ThemeTag = {
7777
ImageColor3 = "Text"
@@ -91,7 +91,7 @@ function NotificationModule.New(Config)
9191
if Notification.CanClose then
9292
CloseButton = New("ImageButton", {
9393
Image = Creator.Icon("x")[1],
94-
ImageRectSize = Creator.Icon("x")[2]._Size,
94+
ImageRectSize = Creator.Icon("x")[2].ImageRectSize,
9595
ImageRectOffset = Creator.Icon("x")[2].ImageRectPosition,
9696
BackgroundTransparency = 1,
9797
Size = UDim2.new(0,20,0,20),

src/Components/Tab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function TabModule.New(Config)
8383
ImageTransparency = 0.4,
8484
Image = Creator.Icon(Tab.Icon)[1],
8585
ImageRectOffset = Creator.Icon(Tab.Icon)[2].ImageRectPosition,
86-
ImageRectSize = Creator.Icon(Tab.Icon)[2]._Size,
86+
ImageRectSize = Creator.Icon(Tab.Icon)[2].ImageRectSize,
8787
Size = UDim2.new(0,20,0,20),
8888
LayoutOrder = 1,
8989
ThemeTag = {
@@ -488,7 +488,7 @@ function TabModule.New(Config)
488488
Size = UDim2.new(0,48,0,48),
489489
Image = Creator.Icon("frown")[1],
490490
ImageRectOffset = Creator.Icon("frown")[2].ImageRectPosition,
491-
ImageRectSize = Creator.Icon("frown")[2]._Size,
491+
ImageRectSize = Creator.Icon("frown")[2].ImageRectSize,
492492
ThemeTag = {
493493
ImageColor3 = "Text"
494494
},

src/Components/Window.lua

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ return function(Config)
7070
Size = UDim2.new(0,70,0,70),
7171
Image = Creator.Icon("expand")[1],
7272
ImageRectOffset = Creator.Icon("expand")[2].ImageRectPosition,
73-
ImageRectSize = Creator.Icon("expand")[2]._Size,
73+
ImageRectSize = Creator.Icon("expand")[2].ImageRectSize,
7474
BackgroundTransparency = 1,
7575
Position = UDim2.new(0.5,0,0.5,0),
7676
AnchorPoint = Vector2.new(0.5,0.5),
@@ -259,7 +259,7 @@ return function(Config)
259259
local CloseButton = New("ImageButton", {
260260
Image = Creator.Icon("x")[1],
261261
ImageRectOffset = Creator.Icon("x")[2].ImageRectPosition,
262-
ImageRectSize = Creator.Icon("x")[2]._Size,
262+
ImageRectSize = Creator.Icon("x")[2].ImageRectSize,
263263
BackgroundTransparency = 1,
264264
Size = UDim2.new(1,-6,1,-6),
265265
ThemeTag = {
@@ -272,7 +272,7 @@ return function(Config)
272272
local MinimizeButton = New("ImageButton", {
273273
Image = Creator.Icon("minus")[1],
274274
ImageRectOffset = Creator.Icon("minus")[2].ImageRectPosition,
275-
ImageRectSize = Creator.Icon("minus")[2]._Size,
275+
ImageRectSize = Creator.Icon("minus")[2].ImageRectSize,
276276
BackgroundTransparency = 1,
277277
Size = UDim2.new(1,-6,1,-6),
278278
ThemeTag = {
@@ -353,7 +353,7 @@ return function(Config)
353353
New("ImageLabel", {
354354
Image = Creator.Icon("grab")[1],
355355
ImageRectOffset = Creator.Icon("grab")[2].ImageRectPosition,
356-
ImageRectSize = Creator.Icon("grab")[2]._Size,
356+
ImageRectSize = Creator.Icon("grab")[2].ImageRectSize,
357357
Size = UDim2.new(0,20,0,20),
358358
BackgroundTransparency = 1,
359359
Position = UDim2.new(0,0,0.5,0),
@@ -391,21 +391,21 @@ return function(Config)
391391

392392
local uiGradient = OpenButton and OpenButton.UIStroke.UIGradient or nil
393393

394-
Glow = New("ImageLabel", {
395-
Image = "rbxassetid://93831937596979", -- UICircle Glow
396-
ScaleType = "Slice",
397-
SliceCenter = Rect.new(375,375,375,375),
398-
BackgroundTransparency = 1,
399-
Size = UDim2.new(1,21,1,21),
400-
Position = UDim2.new(0.5,0,0.5,0),
401-
AnchorPoint = Vector2.new(0.5,0.5),
402-
ImageTransparency = .5,
403-
Parent = OpenButtonContainer,
404-
}, {
405-
New("UIGradient", {
406-
Color = ColorSequence.new(Color3.fromHex("40c9ff"), Color3.fromHex("e81cff"))
407-
})
408-
})
394+
-- Glow = New("ImageLabel", {
395+
-- Image = "rbxassetid://93831937596979", -- UICircle Glow
396+
-- ScaleType = "Slice",
397+
-- SliceCenter = Rect.new(375,375,375,375),
398+
-- BackgroundTransparency = 1,
399+
-- Size = UDim2.new(1,21,1,21),
400+
-- Position = UDim2.new(0.5,0,0.5,0),
401+
-- AnchorPoint = Vector2.new(0.5,0.5),
402+
-- ImageTransparency = .5,
403+
-- Parent = OpenButtonContainer,
404+
-- }, {
405+
-- New("UIGradient", {
406+
-- Color = ColorSequence.new(Color3.fromHex("40c9ff"), Color3.fromHex("e81cff"))
407+
-- })
408+
-- })
409409

410410
RunService.RenderStepped:Connect(function(deltaTime)
411411
if Window.UIElements.Main and OpenButtonContainer and OpenButtonContainer.Parent ~= nil then
@@ -649,10 +649,10 @@ return function(Config)
649649
if Creator.Icon(Window.Icon) then
650650
ImageLabel.Image = Creator.Icon(Window.Icon)[1]
651651
ImageLabel.ImageRectOffset = Creator.Icon(Window.Icon)[2].ImageRectPosition
652-
ImageLabel.ImageRectSize = Creator.Icon(Window.Icon)[2]._Size
652+
ImageLabel.ImageRectSize = Creator.Icon(Window.Icon)[2].ImageRectSize
653653
OpenButtonIcon.Image = Creator.Icon(Window.Icon)[1]
654654
OpenButtonIcon.ImageRectOffset = Creator.Icon(Window.Icon)[2].ImageRectPosition
655-
OpenButtonIcon.ImageRectSize = Creator.Icon(Window.Icon)[2]._Size
655+
OpenButtonIcon.ImageRectSize = Creator.Icon(Window.Icon)[2].ImageRectSize
656656
end
657657
if string.find(Window.Icon,"http") then
658658
if not isfile("WindUI" .. Window.Folder .. "/Assets/Icon.png") then
@@ -766,6 +766,8 @@ return function(Config)
766766
Title = OpenButtonConfig.Title or Window.Title,
767767
Icon = OpenButtonConfig.Icon or Window.Icon,
768768
OnlyMobile = OpenButtonConfig.OnlyMobile or true,
769+
CornerRadius = OpenButtonConfig.CornerRadius or UDim.new(1,0),
770+
StrokeThickness = OpenButtonConfig.StrokeThickness or 2,
769771
Color = OpenButtonConfig.Color
770772
or ColorSequence.new(Color3.fromHex("40c9ff"), Color3.fromHex("e81cff")),
771773
}
@@ -783,11 +785,16 @@ return function(Config)
783785
if Creator.Icon(OpenButtonModule.Icon) and OpenButtonIcon then
784786
OpenButtonIcon.Image = Creator.Icon(OpenButtonModule.Icon)[1]
785787
OpenButtonIcon.ImageRectOffset = Creator.Icon(OpenButtonModule.Icon)[2].ImageRectPosition
786-
OpenButtonIcon.ImageRectSize = Creator.Icon(OpenButtonModule.Icon)[2]._Size
788+
OpenButtonIcon.ImageRectSize = Creator.Icon(OpenButtonModule.Icon)[2].ImageRectSize
787789
end
788790

789791
OpenButton.UIStroke.UIGradient.Color = OpenButtonModule.Color
790-
Glow.UIGradient.Color = OpenButtonModule.Color
792+
if Glow then
793+
Glow.UIGradient.Color = OpenButtonModule.Color
794+
end
795+
796+
OpenButton.UICorner.CornerRadius = OpenButtonConfig.CornerRadius
797+
OpenButton.UIStroke.Thickness = OpenButtonConfig.StrokeThickness
791798
end
792799
end
793800

0 commit comments

Comments
 (0)