feat: differentiate between header and footer colors
This commit is contained in:
@@ -34,7 +34,8 @@ function hexToRgb(hex: string): string {
|
||||
'[style.--tenant-secondary-rgb]': 'tenantSecondaryColorRgb()',
|
||||
'[style.--tenant-danger-rgb]': 'tenantDangerColorRgb()',
|
||||
'[style.--tenant-success-rgb]': 'tenantSuccessColorRgb()',
|
||||
'[style.--tenant-header-footer-bg]': 'tenantHeaderFooterBgColor()'
|
||||
'[style.--tenant-header-bg]': 'tenantHeaderBgColor()',
|
||||
'[style.--tenant-footer-bg]': 'tenantFooterBgColor()'
|
||||
}
|
||||
})
|
||||
export class App {
|
||||
@@ -66,10 +67,15 @@ export class App {
|
||||
protected readonly tenantSuccessColorRgb = computed(() =>
|
||||
hexToRgb(this.tenantSuccessColor())
|
||||
);
|
||||
protected readonly tenantHeaderFooterBgColor = computed(
|
||||
protected readonly tenantHeaderBgColor = computed(
|
||||
() =>
|
||||
this.tenantService.tenant()?.header_footer_bg_color ??
|
||||
DEFAULT_TENANT_BRANDING.headerFooterBgColor
|
||||
this.tenantService.tenant()?.header_bg_color ??
|
||||
DEFAULT_TENANT_BRANDING.headerBgColor
|
||||
);
|
||||
protected readonly tenantFooterBgColor = computed(
|
||||
() =>
|
||||
this.tenantService.tenant()?.footer_bg_color ??
|
||||
DEFAULT_TENANT_BRANDING.footerBgColor
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user