From 8863c428790718e61d2119a06fa547b667085660 Mon Sep 17 00:00:00 2001 From: Oliver Portee Date: Mon, 15 Dec 2025 23:16:23 +0100 Subject: [PATCH] fix light mode/dark mode switch for stock themes (#1057) --- quickshell/Common/Theme.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickshell/Common/Theme.qml b/quickshell/Common/Theme.qml index 46401882..9eac77e8 100644 --- a/quickshell/Common/Theme.qml +++ b/quickshell/Common/Theme.qml @@ -918,6 +918,7 @@ Singleton { function buildMatugenColorsFromTheme(darkTheme, lightTheme) { const colors = {}; + const isLight = SessionData !== "undefined" && SessionData.isLightMode; function addColor(matugenKey, darkVal, lightVal) { if (!darkVal && !lightVal) @@ -930,7 +931,7 @@ Singleton { "color": String(lightVal || darkVal) }, "default": { - "color": String(darkVal || lightVal) + "color": String((isLight && lightVal) ? lightVal : darkVal) } }; }