From 2679d5158133632b26f9308a8b810d69431763f7 Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 9 Jun 2023 12:47:39 +0300 Subject: [PATCH] Customization add fontsDarkMode attribute for hero section --- connect/community/CustomizationOptions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index f1a318d6..9dfa2f07 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -106,6 +106,7 @@ export class CustomizationOptions { imageUrl: string; imageFile: string; position: string; + fontsDarkMode:boolean; } }; buttons: { @@ -132,7 +133,8 @@ export class CustomizationOptions { color: CustomizationOptions.getRGBA(this.identity.mainColor, 0.15), imageUrl: null, imageFile: null, - position: null + position: null, + fontsDarkMode: true } }; @@ -194,6 +196,9 @@ export class CustomizationOptions { if (!current.backgrounds.form.position) { current.backgrounds.form.position = "center bottom" } + if (!current.backgrounds.form.fontsDarkMode) { + current.backgrounds.form.fontsDarkMode = true; + } if (!current.buttons) { current.buttons = Object.assign({}, updated.buttons); }