Fix system theme pair integration

This commit is contained in:
Yuri Karamian
2026-08-06 15:12:43 +02:00
parent aeddcc6e58
commit 1950c4cc3c
8 changed files with 73 additions and 52 deletions
+2 -1
View File
@@ -197,7 +197,8 @@
}
// Apply saved accent
if (config.accent_color) {
const isDark = darkThemes.includes(themeValue);
const customTheme = config.custom_themes.find(theme => theme.id === themeValue);
const isDark = darkThemes.includes(themeValue) || (customTheme?.is_dark ?? false);
let color: string | null = null;
if (config.accent_color.startsWith('#')) {
color = config.accent_color;