From 8ff7086321e8b5df112a44c057e4289f7f9541a0 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Tue, 14 Oct 2025 20:30:45 -0400 Subject: [PATCH] Fix #453 (Fuzzel) Predefined colorscheme templating was not supporting ".hex_stripped" --- Services/AppThemeService.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Services/AppThemeService.qml b/Services/AppThemeService.qml index 6117fcdb..53f7fe75 100644 --- a/Services/AppThemeService.qml +++ b/Services/AppThemeService.qml @@ -273,11 +273,13 @@ Singleton { } function replaceColorsInFile(filePath, colors) { + // This handle both ".hex" and ".hex_stripped" the EXACT same way. Our predefined color schemes are + // always RRGGBB without alpha so this is fine and keeps compatibility with matugen. let script = "" Object.keys(colors).forEach(colorKey => { const colorValue = colors[colorKey].default.hex const escapedColor = colorValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - script += `sed -i 's/{{colors\\.${colorKey}\\.default\\.hex}}/${escapedColor}/g' '${filePath}'\n` + script += `sed -i 's/{{colors\\.${colorKey}\\.default\\.hex\\(_stripped\\)\\?}}/${escapedColor}/g' '${filePath}'\n` }) return script }