mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Core - Override ColorSwatch.ToString
This cleans up the datamodel viewer a lot, currently since ColorSwatch is a struct, it has a very long name. Since the properties can be seen by looking at the children in the datamodel, this information is useless.
This commit is contained in:
parent
a991917ea9
commit
de7c09f047
@ -1,4 +1,5 @@
|
||||
using SkiaSharp;
|
||||
using System.Text;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Artemis.Core.ColorScience;
|
||||
|
||||
@ -36,4 +37,14 @@ public readonly record struct ColorSwatch
|
||||
/// The <see cref="ColorType.DarkMuted" /> component.
|
||||
/// </summary>
|
||||
public SKColor DarkMuted { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Override the record ToString method,
|
||||
/// so we get a cleaner datamodel viewer
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string? ToString()
|
||||
{
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user