nicolium: fix theme changes overriding defaults

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-04-08 10:19:23 +02:00
parent a1cc412ef9
commit 24dce2b753

View File

@@ -78,7 +78,7 @@ const useThemeCss = (overwriteConfig?: FrontendConfig) => {
let baseTheme: Partial<FrontendConfig>;
if (overwriteConfig) baseTheme = overwriteConfig;
else if (demo) baseTheme = {};
else baseTheme = theme ?? frontendConfig;
else baseTheme = { ...frontendConfig, ...theme };
const colors = normalizeColors(baseTheme);