Merge branch 'fix-rich-text-box-border-vars' of https://github.com/Tryibion/FlaxEngine into Tryibion-fix-rich-text-box-border-vars

This commit is contained in:
Wojtek Figat
2024-09-29 22:11:36 +02:00

View File

@@ -233,7 +233,8 @@ namespace FlaxEngine.GUI
if (IsMouseOver || IsNavFocused) if (IsMouseOver || IsNavFocused)
backColor = BackgroundSelectedColor; backColor = BackgroundSelectedColor;
Render2D.FillRectangle(rect, backColor); Render2D.FillRectangle(rect, backColor);
Render2D.DrawRectangle(rect, IsFocused ? BorderSelectedColor : BorderColor); if (HasBorder)
Render2D.DrawRectangle(rect, IsFocused ? BorderSelectedColor : BorderColor, BorderThickness);
// Apply view offset and clip mask // Apply view offset and clip mask
if (ClipText) if (ClipText)