Customization add fontsDarkMode attribute for hero section

This commit is contained in:
argirok 2023-06-09 12:47:39 +03:00
parent e6d4be5454
commit 2679d51581
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}