changed header to match new theme
This commit is contained in:
parent
64fcc934ce
commit
3eb66e3622
3 changed files with 27 additions and 2 deletions
|
|
@ -28,6 +28,8 @@ const protips: string[] = [
|
|||
"Want to receive text messages about your devices? Update your phone number and enable SMS notifications!"
|
||||
];
|
||||
|
||||
const DEFAULT_HEADER_COLOUR = "#1f2a35";
|
||||
|
||||
export interface WhiteLabelFeatures {
|
||||
bins: boolean;
|
||||
visualFarm: boolean;
|
||||
|
|
@ -55,6 +57,7 @@ interface WhiteLabel {
|
|||
secondaryColour: any;
|
||||
signatureColour: any;
|
||||
signatureAccentColour: any;
|
||||
headerColour?: any;
|
||||
auth0ClientId: string;
|
||||
redirectOnLogout: boolean;
|
||||
logoutRedirectTarget: string;
|
||||
|
|
@ -444,6 +447,14 @@ export function getSignatureColour(): any {
|
|||
return getWhitelabel().signatureColour;
|
||||
}
|
||||
|
||||
export function getHeaderColour(): any {
|
||||
return getWhitelabel().headerColour ?? DEFAULT_HEADER_COLOUR;
|
||||
}
|
||||
|
||||
export function getHeaderColor(): any {
|
||||
return getHeaderColour();
|
||||
}
|
||||
|
||||
export function getSignatureAccentColour(): any {
|
||||
return getWhitelabel().signatureAccentColour;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue