diff --git a/Dashboard.Drawing/Brush.cs b/Dashboard.Drawing/Brush.cs index 1c69508..6d5de2f 100644 --- a/Dashboard.Drawing/Brush.cs +++ b/Dashboard.Drawing/Brush.cs @@ -14,18 +14,21 @@ namespace Dashboard.Drawing { } - public readonly struct SolidBrush(Color Color) : IBrush + public readonly struct SolidBrush(Color color) : IBrush { public IDrawExtension Kind { get; } = SolidBrushExtension.Instance; + public Color Color { get; } = color; + public override int GetHashCode() { return HashCode.Combine(Kind, Color); } } - public readonly struct GradientBrush(Gradient Gradient) : IBrush + public readonly struct GradientBrush(Gradient gradient) : IBrush { public IDrawExtension Kind { get; } = GradientBrushExtension.Instance; + public Gradient Gradient { get; } = gradient; public override int GetHashCode() {