From b04f707fcd9127226497a2ac9314de075d8aa0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Mon, 5 Nov 2018 19:06:15 +0100 Subject: [PATCH] Added name property --- src/ThemeEditor.ColorMatch/Algorithms/Analogue.cs | 2 ++ .../Algorithms/{ClassicBlend.cs => Classic.cs} | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/ColorExplorer.cs | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/Complementary.cs | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/SingleHue.cs | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/SplitComplementary.cs | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/Square.cs | 2 ++ src/ThemeEditor.ColorMatch/Algorithms/Triadic.cs | 2 ++ src/ThemeEditor.ColorMatch/IAlgorithm.cs | 1 + 9 files changed, 17 insertions(+) rename src/ThemeEditor.ColorMatch/Algorithms/{ClassicBlend.cs => Classic.cs} (98%) diff --git a/src/ThemeEditor.ColorMatch/Algorithms/Analogue.cs b/src/ThemeEditor.ColorMatch/Algorithms/Analogue.cs index bd5fcec..717f305 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/Analogue.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/Analogue.cs @@ -5,6 +5,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class Analogue : IAlgorithm { + public string Name => "Analogue"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/ClassicBlend.cs b/src/ThemeEditor.ColorMatch/Algorithms/Classic.cs similarity index 98% rename from src/ThemeEditor.ColorMatch/Algorithms/ClassicBlend.cs rename to src/ThemeEditor.ColorMatch/Algorithms/Classic.cs index 73c6aca..a969694 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/ClassicBlend.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/Classic.cs @@ -4,6 +4,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class Classic : IAlgorithm { + public string Name => "Classic"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/ColorExplorer.cs b/src/ThemeEditor.ColorMatch/Algorithms/ColorExplorer.cs index 4c29493..8141dc8 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/ColorExplorer.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/ColorExplorer.cs @@ -5,6 +5,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class ColorExplorer : IAlgorithm { + public string Name => "Color Explorer"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/Complementary.cs b/src/ThemeEditor.ColorMatch/Algorithms/Complementary.cs index 26a392a..a7b8e43 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/Complementary.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/Complementary.cs @@ -5,6 +5,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class Complementary : IAlgorithm { + public string Name => "Complementary"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/SingleHue.cs b/src/ThemeEditor.ColorMatch/Algorithms/SingleHue.cs index d324cad..629ea70 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/SingleHue.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/SingleHue.cs @@ -4,6 +4,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class SingleHue : IAlgorithm { + public string Name => "Single Hue"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/SplitComplementary.cs b/src/ThemeEditor.ColorMatch/Algorithms/SplitComplementary.cs index 389e9de..6c83340 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/SplitComplementary.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/SplitComplementary.cs @@ -4,6 +4,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class SplitComplementary : IAlgorithm { + public string Name => "Split Complementary"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/Square.cs b/src/ThemeEditor.ColorMatch/Algorithms/Square.cs index 54b4384..bf5ebbe 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/Square.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/Square.cs @@ -4,6 +4,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class Square : IAlgorithm { + public string Name => "Square"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/Algorithms/Triadic.cs b/src/ThemeEditor.ColorMatch/Algorithms/Triadic.cs index 2590f06..f51d2a2 100644 --- a/src/ThemeEditor.ColorMatch/Algorithms/Triadic.cs +++ b/src/ThemeEditor.ColorMatch/Algorithms/Triadic.cs @@ -4,6 +4,8 @@ namespace ThemeEditor.ColorMatch.Algorithms { public class Triadic : IAlgorithm { + public string Name => "Triadic"; + public Blend Match(HSV hsv) { Blend outp = new Blend(); diff --git a/src/ThemeEditor.ColorMatch/IAlgorithm.cs b/src/ThemeEditor.ColorMatch/IAlgorithm.cs index 755ff63..a51eb9a 100644 --- a/src/ThemeEditor.ColorMatch/IAlgorithm.cs +++ b/src/ThemeEditor.ColorMatch/IAlgorithm.cs @@ -4,6 +4,7 @@ namespace ThemeEditor.ColorMatch { public interface IAlgorithm { + string Name { get; } Blend Match(HSV hsv); } }