rename to palette

This commit is contained in:
XtraCube committed 2024-08-26 10:38:35 -04:00
1 parent 6de53fb761
commit d0bbb191c5
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ internal class MiraPluginManager
{
foreach (var type in assembly.GetTypes())
{
if (type.GetCustomAttribute<RegisterColorsAttribute>() == null)
if (type.GetCustomAttribute<RegisterPalette>() == null)
{
continue;
}
+4 -4
View File
@@ -3,6 +3,10 @@
namespace MiraAPI.Utilities.Colors;
public sealed class CustomColor
{
public Color32 MainColor { get; }
public Color32 ShadowColor { get; }
public StringNames Name { get; }
public CustomColor(Color32 mainColor, StringNames name)
{
MainColor = mainColor;
@@ -16,8 +20,4 @@ public sealed class CustomColor
ShadowColor = shadowColor;
Name = name;
}
public Color32 MainColor { get; }
public Color32 ShadowColor { get; }
public StringNames Name { get; }
}
@@ -3,4 +3,4 @@
namespace MiraAPI.Utilities.Colors;
[AttributeUsage(AttributeTargets.Class)]
public class RegisterColorsAttribute : Attribute;
public class RegisterPalette : Attribute;