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 }