[HTML] Adjust embed color to theme

This commit is contained in:
Alexey Golub 2019-12-01 17:50:10 +02:00
parent 0d2ae8b5db
commit cc1bb924e7
5 changed files with 116 additions and 105 deletions

View file

@ -123,7 +123,7 @@ namespace DiscordChatExporter.Core.Services
// Get color
var color = json["color"] != null
? Color.FromArgb(json["color"]!.Value<int>()).ResetAlpha()
: Color.FromArgb(79, 84, 92); // default color
: default(Color?);
// Get author
var author = json["author"] != null ? ParseEmbedAuthor(json["author"]!) : null;