From d766c0773cde11b7d662966ff11207730ed4ee96 Mon Sep 17 00:00:00 2001 From: bbedward Date: Sat, 4 Jul 2026 11:40:27 -0400 Subject: [PATCH] theme: fix setting color mode when no wallpaper is set in auto mode fixes #2239 --- quickshell/Common/Theme.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickshell/Common/Theme.qml b/quickshell/Common/Theme.qml index cb485ecb1..82728ac5e 100644 --- a/quickshell/Common/Theme.qml +++ b/quickshell/Common/Theme.qml @@ -1801,8 +1801,11 @@ Singleton { const iconTheme = (typeof SettingsData !== "undefined" && SettingsData.iconTheme) ? SettingsData.iconTheme : "System Default"; if (currentTheme === dynamic) { - if (!rawWallpaperPath) + if (!rawWallpaperPath) { + log.warn("Auto theme has no wallpaper - skipping matugen, syncing portal mode only"); + PortalService.setLightMode(isLight); return; + } const selectedMatugenType = (typeof SettingsData !== "undefined" && SettingsData.matugenScheme) ? SettingsData.matugenScheme : "scheme-tonal-spot"; const kind = rawWallpaperPath.startsWith("#") ? "hex" : "image"; setDesiredTheme(kind, rawWallpaperPath, isLight, iconTheme, selectedMatugenType, null);