Skip to content

Commit 42a00c1

Browse files
author
dawid
committed
textbox fix
1 parent 707bd7a commit 42a00c1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Components/Textbox.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ return function(Parent, Acrylic)
2121
Position = UDim2.fromOffset(10, 0),
2222
ThemeTag = {
2323
TextColor3 = "Text",
24+
PlaceholderColor3 = "SubText"
2425
},
2526
})
2627

src/Elements/Input.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ function Element:New(Idx, Config)
3131
Textbox.Frame.Position = UDim2.new(1, -10, 0.5, 0)
3232
Textbox.Frame.AnchorPoint = Vector2.new(1, 0.5)
3333
Textbox.Frame.Size = UDim2.fromOffset(160, 30)
34+
Textbox.Input.Text = Config.Default or ""
35+
Textbox.Input.PlaceholderText = Config.Placeholder or ""
3436

3537
local Box = Textbox.Input
3638

0 commit comments

Comments
 (0)