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.

Fix missing border on tab bar navigation arrows

Nate Butlerf451e3423d64
diff --git a/styles/src/style_tree/tab_bar.ts b/styles/src/style_tree/tab_bar.ts
index 81e1f7adf3b..129bd178690 100644
--- a/styles/src/style_tree/tab_bar.ts
+++ b/styles/src/style_tree/tab_bar.ts
@@ -90,6 +90,10 @@ export default function tab_bar(): any {
icon_width: 12,
button_width: active_pane_active_tab.height,
+ border: border(theme.lowest, "on", {
+ bottom: true,
+ overlay: true,
+ })
},
state: {
hovered: {
@@ -97,10 +101,11 @@ export default function tab_bar(): any {
background: background(theme.highest, "on", "hovered"),
},
disabled: {
- color: foreground(theme.highest, "on", "disabled"),
+ color: foreground(theme.highest, "on", "disabled")
},
},
})
+
const dragged_tab = {
...active_pane_active_tab,
background: with_opacity(tab.background, 0.9),
diff --git a/styles/src/theme/create_theme.ts b/styles/src/theme/create_theme.ts
index e0da345bc52..ab3c96f2807 100644
--- a/styles/src/theme/create_theme.ts
+++ b/styles/src/theme/create_theme.ts
@@ -1,4 +1,4 @@
-import chroma, { Scale, Color } from "chroma-js"
+import { Scale, Color } from "chroma-js"
import { Syntax, ThemeSyntax, SyntaxHighlightStyle } from "./syntax"
export { Syntax, ThemeSyntax, SyntaxHighlightStyle }
import {