From 361e9da26ab283768e922fb17fa520fa6304b963 Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 25 Sep 2026 10:27:06 -0400 Subject: [PATCH] matugen: use a contrasting color for vscode light theme constants fixes #3566 --- .../templates/vscode-color-theme-light.json | 6 ++--- .../tests/settings-widget-opacity.test.mjs | 22 ------------------- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 quickshell/tests/settings-widget-opacity.test.mjs diff --git a/quickshell/matugen/templates/vscode-color-theme-light.json b/quickshell/matugen/templates/vscode-color-theme-light.json index b781f8410..7c5e543b2 100644 --- a/quickshell/matugen/templates/vscode-color-theme-light.json +++ b/quickshell/matugen/templates/vscode-color-theme-light.json @@ -213,7 +213,7 @@ "constant.character" ], "settings": { - "foreground": "{{dank16.color0.light.hex}}" + "foreground": "{{dank16.color1.light.hex}}" } }, { @@ -263,7 +263,7 @@ { "scope": ["constant.language.boolean.yaml", "constant.language.null.yaml"], "settings": { - "foreground": "{{dank16.color0.light.hex}}" + "foreground": "{{dank16.color1.light.hex}}" } }, { @@ -281,7 +281,7 @@ { "scope": ["constant.language.boolean.toml", "constant.numeric.toml"], "settings": { - "foreground": "{{dank16.color0.light.hex}}" + "foreground": "{{dank16.color1.light.hex}}" } }, { diff --git a/quickshell/tests/settings-widget-opacity.test.mjs b/quickshell/tests/settings-widget-opacity.test.mjs deleted file mode 100644 index e0cb8fa71..000000000 --- a/quickshell/tests/settings-widget-opacity.test.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import assert from "node:assert/strict"; -import test from "node:test"; -import { loadScript } from "./qml-script.mjs"; - -const store = loadScript(new URL("../Common/settings/SettingsStore.js", import.meta.url)); - -test("bar widgets follow the interface style only when their opacity already matches it", () => { - const layered = store.migrateToVersion({ - configVersion: 30, - foregroundLayerTransparency: 0.6, - barConfigs: [{ id: "a", widgetTransparency: 0.6 }, { id: "b" }, { id: "c", widgetTransparency: 0.6, widgetFollowInterfaceStyle: false }] - }, 31); - const glass = store.migrateToVersion({ - configVersion: 30, - blurEnabled: true, - blurForegroundLayers: false, - barConfigs: [{ id: "a", widgetTransparency: 0 }, { id: "b" }] - }, 31); - const follows = settings => JSON.parse(JSON.stringify(settings.barConfigs.map(bc => bc.widgetFollowInterfaceStyle))); - assert.deepEqual(follows(layered), [true, false, false]); - assert.deepEqual(follows(glass), [true, false]); -});