From 585dcaa2f5363075e1d9015bbbfc8089c1ffde4b Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Wed, 29 Oct 2025 10:12:50 -0400 Subject: [PATCH] Fix: generate palette arguments where shifted by one --- Services/AppThemeService.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Services/AppThemeService.qml b/Services/AppThemeService.qml index 55e6d2fd..5d1ebcbe 100644 --- a/Services/AppThemeService.qml +++ b/Services/AppThemeService.qml @@ -198,7 +198,7 @@ Singleton { const mode = isDarkMode ? "dark" : "light" const colors = schemeData[mode] - const matugenColors = generatePalette(colors.mPrimary, colors.mSecondary, colors.mTertiary, colors.mError, colors.mSurface, isDarkMode) + const matugenColors = generatePalette(colors.mPrimary, colors.mSecondary, colors.mTertiary, colors.mError, colors.mSurface, colors.mOutline, isDarkMode) let script = processAllTemplates(matugenColors, mode) // Add user templates if enabled @@ -252,7 +252,7 @@ Singleton { const surfaceContainerHighest = ColorsConvert.generateSurfaceVariant(backgroundColor, 4, isDarkMode) // Generate outline colors (for borders/dividers) - const outline = isDarkMode ? "#938f99" : "#79747e" + const outline = outlineColor const outlineVariant = ColorsConvert.adjustLightness(outline, isDarkMode ? -10 : 10) // Shadow is always very dark @@ -410,7 +410,7 @@ Singleton { const colors = schemeData[mode] // Generate the matugen palette JSON - const matugenColors = generatePalette(colors.mPrimary, colors.mSecondary, colors.mTertiary, colors.mError, colors.mSurface, isDarkMode) + const matugenColors = generatePalette(colors.mPrimary, colors.mSecondary, colors.mTertiary, colors.mError, colors.mSurface, colors.mOutline, isDarkMode) // Create a temporary JSON file with the color palette const tempJsonPath = Settings.cacheDir + "predefined-colors.json"