Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit fe0c76d

Browse files
committed
Change hover color.
1 parent be0c4db commit fe0c76d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/SignsInternal/StudioWidgets/LabeledTextInput.lua

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,24 @@ end
168168

169169
-- Update the visual state of the input field
170170
function LabeledTextInputClass:_UpdateVisualState()
171-
if self._selected or self._hovered then
171+
if self._selected then
172172
self._textBoxBorder.ImageColor3 = settings().Studio.Theme:GetColor(
173-
Enum.StudioStyleGuideColor.CheckedFieldBackground,
173+
Enum.StudioStyleGuideColor.InputFieldBorder,
174174
Enum.StudioStyleGuideModifier.Selected
175175
)
176176
self._textBoxBackground.ImageColor3 = settings().Studio.Theme:GetColor(
177177
Enum.StudioStyleGuideColor.InputFieldBackground,
178178
Enum.StudioStyleGuideModifier.Selected
179179
)
180+
elseif self._hovered then
181+
self._textBoxBorder.ImageColor3 = settings().Studio.Theme:GetColor(
182+
Enum.StudioStyleGuideColor.InputFieldBorder,
183+
Enum.StudioStyleGuideModifier.Hover
184+
)
185+
self._textBoxBackground.ImageColor3 = settings().Studio.Theme:GetColor(
186+
Enum.StudioStyleGuideColor.InputFieldBackground,
187+
Enum.StudioStyleGuideModifier.Default
188+
)
180189
else
181190
self._textBoxBorder.ImageColor3 = settings().Studio.Theme:GetColor(
182191
Enum.StudioStyleGuideColor.InputFieldBorder,

0 commit comments

Comments
 (0)