Contrast rebalances

This commit is contained in:
Nate Butler 2022-10-19 13:03:58 -04:00
parent 75c79d60fe
commit 364c3f2f00
3 changed files with 7 additions and 7 deletions

View file

@ -28,9 +28,9 @@ export default function picker(colorScheme: ColorScheme) {
text: text(layer, "sans", "variant"),
highlightText: text(layer, "sans", "accent", { weight: "bold" }),
active: {
background: background(layer, "base", "inverted"),
text: text(layer, "sans", "base", "inverted"),
highlightText: text(layer, "sans", "accent", "inverted", {
background: background(layer, "base", "active"),
text: text(layer, "sans", "base", "active"),
highlightText: text(layer, "sans", "accent", {
weight: "bold",
}),
},

View file

@ -44,9 +44,9 @@ export default function search(colorScheme: ColorScheme) {
top: 2,
},
active: {
...text(layer, "mono", "on", "active"),
background: background(layer, "on", "active"),
border: border(layer, "on", "active"),
...text(layer, "mono", "on", "inverted"),
background: background(layer, "on", "inverted"),
border: border(layer, "on", "inverted"),
},
clicked: {
...text(layer, "mono", "on", "pressed"),

View file

@ -227,7 +227,7 @@ function buildStyleDefinition(bgBase: number, fgBase: number, step: number = 0.0
default: bgBase,
hovered: bgBase + step,
pressed: bgBase + step * 1.5,
active: bgBase + step * 3,
active: bgBase + step * 2.2,
disabled: bgBase,
inverted: fgBase + step * 6,
},