add nullables for line pen/brush in SpectrumControl.cs
MODIFY
WalletWasabi.Fluent/Controls/Spectrum/SpectrumControl.cs
WalletWasabi.Fluent/Controls/Spectrum/SpectrumControl.cs
-using System.Collections.Generic;
using Avalonia;
using Avalonia.Controls.Primitives;
using Avalonia.Media;
@@ -15,8 +14,8 @@ namespace WalletWasabi.Fluent.Controls.Spectrum;
public class SpectrumControl : TemplatedControl, ICustomDrawOperation
{
- private ImmutablePen _linePen;
- private IBrush _lineBrush;
+ private ImmutablePen? _linePen;
+ private IBrush? _lineBrush;
private readonly AuraSpectrumDataSource _auraSpectrumDataSource;
private readonly SplashEffectDataSource _splashEffectDataSource;
@@ -97,7 +96,6 @@ public class SpectrumControl : TemplatedControl, ICustomDrawOperation
protected override Size ArrangeOverride(Size finalSize)
{
_linePen = new Pen(_lineBrush, finalSize.Width / NumBins).ToImmutable();
-
return base.ArrangeOverride(finalSize);
}

add nullables for line pen/brush in SpectrumControl.cs