Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update picker active and hover styles

Nate Butler6fd4e2881381
diff --git a/styles/src/styleTree/picker.ts b/styles/src/styleTree/picker.ts
index 2a6c3a0caf0..3245112345b 100644
--- a/styles/src/styleTree/picker.ts
+++ b/styles/src/styleTree/picker.ts
@@ -1,4 +1,5 @@
import { ColorScheme } from "../themes/common/colorScheme"
+import { withOpacity } from "../utils/color"
import { background, border, text } from "./components"
export default function picker(colorScheme: ColorScheme) {
@@ -53,14 +54,17 @@ export default function picker(colorScheme: ColorScheme) {
text: text(layer, "sans", "variant"),
highlightText: text(layer, "sans", "accent", { weight: "bold" }),
active: {
- background: background(layer, "base", "active"),
+ background: withOpacity(
+ background(layer, "base", "active"),
+ 0.5
+ ),
text: text(layer, "sans", "base", "active"),
highlightText: text(layer, "sans", "accent", {
weight: "bold",
}),
},
hover: {
- background: background(layer, "hovered"),
+ background: withOpacity(background(layer, "hovered"), 0.5),
},
},
inputEditor,