From 7a826bf93f99711861d9c02d2216d872583dc13f Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 22 Aug 2025 08:51:46 -0400 Subject: [PATCH] ColorScheme: fix for predefined colorscheme not always applying after using matugen --- Services/ColorSchemeService.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Services/ColorSchemeService.qml b/Services/ColorSchemeService.qml index 7a0e930..b4b52ce 100644 --- a/Services/ColorSchemeService.qml +++ b/Services/ColorSchemeService.qml @@ -78,7 +78,7 @@ Singleton { } } writeColorsToDisk(variant) - Logger.log("ColorScheme", "Applied color scheme:", path) + Logger.log("ColorScheme", "Applying color scheme:", path) } catch (e) { Logger.error("ColorScheme", "Failed to parse scheme JSON:", e) } @@ -90,7 +90,7 @@ Singleton { id: colorsWriter path: colorsJsonFilePath onSaved: { - Logger.log("ColorScheme", "Colors saved") + // Logger.log("ColorScheme", "Colors saved") } JsonAdapter { id: out @@ -130,6 +130,9 @@ Singleton { out.mOutline = pick(obj, "mOutline", "outline", out.mOutline) out.mShadow = pick(obj, "mShadow", "shadow", out.mShadow) + // Force a rewrite by updating the path + colorsWriter.path = "" + colorsWriter.path = colorsJsonFilePath colorsWriter.writeAdapter() }