Fix bugs in previous PR

This commit is contained in:
Alexey Golub
2020-03-26 22:59:36 +02:00
parent 79e43c4144
commit ff15257d23
5 changed files with 28 additions and 24 deletions

View File

@@ -1,5 +1,4 @@

using System.Drawing;
using System.Drawing;
namespace DiscordChatExporter.Core.Models
{
@@ -13,7 +12,8 @@ namespace DiscordChatExporter.Core.Models
public Color Color { get; }
public string ColorAsHex => $"#{(Color.ToArgb() & 0xffffff):X6}";
public string ColorAsHex => $"#{Color.ToArgb() & 0xffffff:X6}";
public string ColorAsRgb => $"{Color.R}, {Color.G}, {Color.B}";
public int Position { get; }