AppTheme: removed last 2 hardcoded colors and improved vscode template

This commit is contained in:
ItsLemmy
2025-11-01 00:12:07 -04:00
parent cb4059b5c4
commit 3ab7843707
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1786,7 +1786,7 @@
"editorOverviewRuler.warningForeground": "{{colors.secondary.default.hex}}",
"editorOverviewRuler.wordHighlightForeground": "{{colors.secondary.default.hex}}",
"editorOverviewRuler.wordHighlightStrongForeground": "{{colors.secondary.default.hex}}",
"editorRuler.foreground": "{{colors.outline.default.hex}}",
"editorRuler.foreground": "{{colors.outline_variant.default.hex}}",
"editorSuggestWidget.background": "{{colors.surface.default.hex}}",
"editorSuggestWidget.border": "{{colors.outline.default.hex}}",
"editorSuggestWidget.foreground": "{{colors.on_surface.default.hex}}",
+5 -5
View File
@@ -123,8 +123,7 @@ Singleton {
"input": "code.json",
"outputs": [{
"path": "~/.vscode/extensions/hyprluna.hyprluna-theme-1.0.2/themes/hyprluna.json"
}],
"strict": true
}]
}
})
@@ -258,10 +257,10 @@ Singleton {
const surfaceContainerHighest = ColorsConvert.generateSurfaceVariant(surface, 4, isDarkMode)
// Generate outline colors (for borders/dividers)
const outline = isStrict ? colors.mOutline : (isDarkMode ? "#938f99" : "#79747e")
const outlineVariant = ColorsConvert.adjustLightness(outline, isDarkMode ? -10 : 10)
const outline = isStrict ? colors.mOutline : ColorsConvert.adjustLightnessAndSaturation(colors.mOnSurface, isDarkMode ? -30 : 30, isDarkMode ? -30 : 30)
const outlineVariant = ColorsConvert.adjustLightness(outline, isDarkMode ? -20 : 20)
// Shadow is always very dark
// Shadow is always pitch black
const shadow = "#000000"
return {
@@ -297,6 +296,7 @@ Singleton {
"shadow": c(shadow)
}
}
function processAllTemplates(colors, mode) {
let script = ""
const homeDir = Quickshell.env("HOME")