[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

@@ -14,8 +14,7 @@ namespace DiscordChatExporter.Core.Models
public DateTimeOffset? Timestamp { get; }
// TODO: this should be nullable and default color should be set in CSS
public Color Color { get; }
public Color? Color { get; }
public EmbedAuthor? Author { get; }
@@ -29,7 +28,7 @@ namespace DiscordChatExporter.Core.Models
public EmbedFooter? Footer { get; }
public Embed(string? title, string? url, DateTimeOffset? timestamp, Color color, EmbedAuthor? author, string? description,
public Embed(string? title, string? url, DateTimeOffset? timestamp, Color? color, EmbedAuthor? author, string? description,
IReadOnlyList<EmbedField> fields, EmbedImage? thumbnail, EmbedImage? image, EmbedFooter? footer)
{
Title = title;