mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-26 13:07:49 -04:00
matugen: use a contrasting color for vscode light theme constants
fixes #3566
This commit is contained in:
1 parent
890166e384
commit
361e9da26a
2 files changed
+3
-25
No files matched your search
@@ -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}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
Reference in new issue
Block a user