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);