Code cleanup

This commit is contained in:
Robert committed 2020-01-14 17:25:13 +01:00
1 parent c97b479779
commit f071871695
73 files changed
+372 -364

No files matched your search

@@ -9,9 +9,9 @@ namespace Artemis.Plugins.LayerBrushes.Color
{
public class ColorBrush : LayerBrush
{
private SKShader _shader;
private List<SKColor> _testColors;
private SKPaint _paint;
private SKShader _shader;
private readonly List<SKColor> _testColors;
public ColorBrush(Layer layer, ColorBrushSettings settings, LayerBrushDescriptor descriptor) : base(layer, settings, descriptor)
{
@@ -31,6 +31,8 @@ namespace Artemis.Plugins.LayerBrushes.Color
Settings.PropertyChanged += (sender, args) => CreateShader();
}
public new ColorBrushSettings Settings { get; }
private void CreateShader()
{
var center = new SKPoint(Layer.Rectangle.MidX, Layer.Rectangle.MidY);
@@ -61,8 +63,6 @@ namespace Artemis.Plugins.LayerBrushes.Color
oldPaint?.Dispose();
}
public new ColorBrushSettings Settings { get; }
public override LayerBrushViewModel GetViewModel()
{
return new ColorBrushViewModel(this);