From 1a52f179905d58408d0b881b889ddf8fad680bea Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Wed, 15 Jan 2025 20:42:09 +0300 Subject: [PATCH] Add missing properties. --- Dashboard.Drawing/Brush.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() {