UI Customize: add custom-theme flag for default theme (#33042)
This commit is contained in:
parent
eeb2f593bf
commit
a8c4dfd372
7 changed files with 50 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export function getThemePreference(): THEME | null {
|
|||
if (theme && Object.values(THEME).includes(theme)) {
|
||||
return theme;
|
||||
}
|
||||
return THEME.AUTO;
|
||||
return window.evcc?.customTheme || THEME.AUTO;
|
||||
}
|
||||
|
||||
export function setThemePreference(theme: THEME) {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ declare global {
|
|||
customWebsite: string;
|
||||
customEmail: string;
|
||||
customPhone: string;
|
||||
customTheme: THEME;
|
||||
};
|
||||
}
|
||||
interface Window {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue