Adjust scrollbar track background and border colors (#3596)

This PR adjusts the colors we pull from the VS Code themes to use for
the scrollbar track background and border.

For the scrollbar track background we now use the `editor.background`,
and for the scrollbar track border we use `editorOverviewRuler.border`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2023-12-11 17:08:39 -05:00
committed by GitHub
14 changed files with 83 additions and 84 deletions
+6 -1
View File
@@ -1282,7 +1282,12 @@ impl EditorElement {
track_bounds,
Corners::default(),
cx.theme().colors().scrollbar_track_background,
Edges::default(), // todo!("style.track.border")
Edges {
top: Pixels::ZERO,
right: Pixels::ZERO,
bottom: Pixels::ZERO,
left: px(1.),
},
cx.theme().colors().scrollbar_track_border,
);
let scrollbar_settings = EditorSettings::get_global(cx).scrollbar;