mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Updated project folder names Show only selected layer in visualization Added rectangle support
46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using Artemis.Core.Plugins.LayerBrush;
|
|
using SkiaSharp;
|
|
|
|
namespace Artemis.Plugins.LayerBrushes.Color
|
|
{
|
|
public class ColorBrushSettings : LayerBrushSettings
|
|
{
|
|
private List<SKColor> _colors;
|
|
private GradientType _gradientType;
|
|
|
|
public ColorBrushSettings()
|
|
{
|
|
GradientType = GradientType.Solid;
|
|
Colors = new List<SKColor>();
|
|
}
|
|
|
|
public GradientType GradientType
|
|
{
|
|
get => _gradientType;
|
|
set => SetAndNotify(ref _gradientType, value);
|
|
}
|
|
|
|
public List<SKColor> Colors
|
|
{
|
|
get => _colors;
|
|
set => SetAndNotify(ref _colors, value);
|
|
}
|
|
}
|
|
|
|
public enum GradientType
|
|
{
|
|
[Description("Solid")]
|
|
Solid,
|
|
|
|
[Description("Linear Gradient")]
|
|
LinearGradient,
|
|
|
|
[Description("Radial Gradient")]
|
|
RadialGradient,
|
|
|
|
[Description("Sweep Gradient")]
|
|
SweepGradient
|
|
}
|
|
} |