diff --git a/Source/Engine/UI/GUI/Common/Button.cs b/Source/Engine/UI/GUI/Common/Button.cs
index 82a0ba345..576563f49 100644
--- a/Source/Engine/UI/GUI/Common/Button.cs
+++ b/Source/Engine/UI/GUI/Common/Button.cs
@@ -74,7 +74,7 @@ namespace FlaxEngine.GUI
///
/// Gets or sets the brush used for background drawing.
///
- [EditorOrder(2000), Tooltip("The brush used for background drawing.")]
+ [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The brush used for background drawing.")]
public IBrush BackgroundBrush { get; set; }
///
diff --git a/Source/Engine/UI/GUI/Common/ProgressBar.cs b/Source/Engine/UI/GUI/Common/ProgressBar.cs
index 881bbc161..186e9cfa0 100644
--- a/Source/Engine/UI/GUI/Common/ProgressBar.cs
+++ b/Source/Engine/UI/GUI/Common/ProgressBar.cs
@@ -108,6 +108,12 @@ namespace FlaxEngine.GUI
[EditorDisplay("Style"), EditorOrder(2000), Tooltip("The color of the progress bar rectangle.")]
public Color BarColor { get; set; }
+ ///
+ /// Gets or sets the brush used for progress bar drawing.
+ ///
+ [EditorDisplay("Style"), EditorOrder(2000), Tooltip("The brush used for progress bar drawing.")]
+ public IBrush BarBrush { get; set; }
+
///
/// Initializes a new instance of the class.
///
@@ -164,7 +170,10 @@ namespace FlaxEngine.GUI
{
var barRect = new Rectangle(0, 0, Width * progressNormalized, Height);
BarMargin.ShrinkRectangle(ref barRect);
- Render2D.FillRectangle(barRect, BarColor);
+ if (BarBrush != null)
+ BarBrush.Draw(barRect, BarColor);
+ else
+ Render2D.FillRectangle(barRect, BarColor);
}
}
}