From ba74249088ef20686579a637f39a9c948de3ab62 Mon Sep 17 00:00:00 2001 From: Glen Nicol Date: Wed, 10 Jan 2024 10:42:06 -0800 Subject: [PATCH] Feature: BrushRoundConverter supports ImmutableSolidColorBrush objects These are used for the named colors in Avalonia --- Material.Styles/Converters/BrushRoundConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Material.Styles/Converters/BrushRoundConverter.cs b/Material.Styles/Converters/BrushRoundConverter.cs index 1b9c6117..509e47e5 100644 --- a/Material.Styles/Converters/BrushRoundConverter.cs +++ b/Material.Styles/Converters/BrushRoundConverter.cs @@ -16,7 +16,7 @@ public class BrushRoundConverter : IValueConverter public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { - if (value is not SolidColorBrush solidColorBrush) + if (value is not ISolidColorBrush solidColorBrush) return BindingOperations.DoNothing; var color = solidColorBrush.Color;