Add missing properties.

This commit is contained in:
H. Utku Maden 2025-01-15 20:42:09 +03:00
parent b841dbe6c2
commit 1a52f17990

@ -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 IDrawExtension Kind { get; } = SolidBrushExtension.Instance;
public Color Color { get; } = color;
public override int GetHashCode() public override int GetHashCode()
{ {
return HashCode.Combine(Kind, Color); 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 IDrawExtension Kind { get; } = GradientBrushExtension.Instance;
public Gradient Gradient { get; } = gradient;
public override int GetHashCode() public override int GetHashCode()
{ {