From a7835670c697da9bd1a5c23634cbb0f66225acab Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Sun, 6 Oct 2024 01:09:28 -0400 Subject: [PATCH] Fix ChangeColorsHandler to support the new material palette --- .../Features/Contents/Handlers/CreateCreator.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Web/Features/Contents/Handlers/CreateCreator.cs b/src/Web/Features/Contents/Handlers/CreateCreator.cs index 1e3cca2..12cf41d 100644 --- a/src/Web/Features/Contents/Handlers/CreateCreator.cs +++ b/src/Web/Features/Contents/Handlers/CreateCreator.cs @@ -39,11 +39,24 @@ public sealed class CreateCreatorHandler( CancellationToken ct) { await context.Creators.AddAsync( - new() + new Creator { Id = req.CreatorId, CreatedBy = User.GetUserId(), - Name = req.Name + Name = req.Name, + Colors = + { + Primary = "#6200EE", + OnPrimary = "#FFFFFF", + Secondary = "#03DAC6", + OnSecondary = "#000000", + Surface = "#FFFFFF", + OnSurface = "#000000", + Error = "#B00020", + OnError = "#FFFFFF", + Background = "#FFFFFF", + OnBackground = "#000000", + } }, ct);