Customization add fontsDarkMode attribute for hero section
This commit is contained in:
parent
e6d4be5454
commit
2679d51581
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue