Skip to content

Visual Studio Code, rebuilt in Rust

Rust

fix(theme): default the side by side editor borders to the group border

rokartur41dfd0ea99a4
diff --git a/native/crates/app/src/theme.rs b/native/crates/app/src/theme.rs
index d303611f818..1260651c2f7 100644
--- a/native/crates/app/src/theme.rs
+++ b/native/crates/app/src/theme.rs
@@ -772,6 +772,8 @@ fn registry_default(key: &str, kind: ThemeKind) -> ColorValue {
Key("editorGroupHeader.tabsBackground"),
Key("editorGroupHeader.tabsBackground"),
),
+ "editorGroup.border" => (Hex("#444444"), Hex("#E7E7E7"), Key("contrastBorder")),
+ "sideBySideEditor.horizontalBorder" | "sideBySideEditor.verticalBorder" => (Key("editorGroup.border"), Key("editorGroup.border"), Key("editorGroup.border")),
"tab.border" => (Hex("#252526"), Hex("#F3F3F3"), Key("contrastBorder")),
"tab.divider" => (Key("tab.border"), Key("tab.border"), Key("tab.border")),
"tab.activeForeground" => (Hex("#FFFFFF"), Hex("#333333"), Hex("#FFFFFF")),
@@ -933,6 +935,8 @@ fn hc_light_default(key: &str) -> ColorValue {
match key {
"foreground" => Hex("#292929"),
"contrastBorder" => Hex("#0F4A85"),
+ "editorGroup.border" => Key("contrastBorder"),
+ "sideBySideEditor.horizontalBorder" | "sideBySideEditor.verticalBorder" => Key("editorGroup.border"),
"editorGroup.dropBackground" => Transparent(&Hex("#0F4A85"), 0.5),
"sideBar.dropBackground" => Key("editorGroup.dropBackground"),
"disabledForeground" => Hex("#7F7F7F"),
@@ -1684,6 +1688,8 @@ mod tests {
("Dark Modern", "editorOverviewRuler.wordHighlightTextForeground", "#a0a0a0cc"),
("Dark Modern", "breadcrumb.foreground", "#cccccccc"),
("Dark Modern", "editorGroupHeader.connectedTabsBackground", "#2b2b2bff"),
+ ("Dark Modern", "sideBySideEditor.verticalBorder", "#ffffff17"),
+ ("Default High Contrast", "sideBySideEditor.horizontalBorder", "#6fc3dfff"),
("Light Modern", "editor.wordHighlightTextBackground", "#57575740"),
("Light Modern", "editorLineNumber.activeForeground", "#171184ff"),
("Light Modern", "editorCursor.foreground", "#000000ff"),