UI Customize: add custom-theme flag for default theme (#33042)

This commit is contained in:
Michael Geers 2026-08-21 14:00:50 +02:00 • committed by GitHub
parent eeb2f593bf
commit a8c4dfd372
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 50 additions and 1 deletions

View file

@ -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) {

View file

@ -14,6 +14,7 @@ declare global {
customWebsite: string;
customEmail: string;
customPhone: string;
customTheme: THEME;
};
}
interface Window {