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;
|
imageUrl: string;
|
||||||
imageFile: string;
|
imageFile: string;
|
||||||
position: string;
|
position: string;
|
||||||
|
fontsDarkMode:boolean;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
buttons: {
|
buttons: {
|
||||||
|
@ -132,7 +133,8 @@ export class CustomizationOptions {
|
||||||
color: CustomizationOptions.getRGBA(this.identity.mainColor, 0.15),
|
color: CustomizationOptions.getRGBA(this.identity.mainColor, 0.15),
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
imageFile: null,
|
imageFile: null,
|
||||||
position: null
|
position: null,
|
||||||
|
fontsDarkMode: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -194,6 +196,9 @@ export class CustomizationOptions {
|
||||||
if (!current.backgrounds.form.position) {
|
if (!current.backgrounds.form.position) {
|
||||||
current.backgrounds.form.position = "center bottom"
|
current.backgrounds.form.position = "center bottom"
|
||||||
}
|
}
|
||||||
|
if (!current.backgrounds.form.fontsDarkMode) {
|
||||||
|
current.backgrounds.form.fontsDarkMode = true;
|
||||||
|
}
|
||||||
if (!current.buttons) {
|
if (!current.buttons) {
|
||||||
current.buttons = Object.assign({}, updated.buttons);
|
current.buttons = Object.assign({}, updated.buttons);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue