From a1438a49dfb6f986ef561ba28a5f0bc286b68ca3 Mon Sep 17 00:00:00 2001 From: Eli Perkins Date: Tue, 20 Aug 2024 15:11:07 -0600 Subject: [PATCH] project_panel: Set scrollbar track background from theme (#16546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was previously using the value for the scrollbar border, instead of the background. I noticed this while trying out a new Zed theme. Release Notes: - Updated project panel scrollbar to respect the `scrollbar.track.background` from the theme. | Before | After | | --- | ---- | | Screenshot 2024-08-20 at 2 46 23 PM | Screenshot 2024-08-20 at 2 46 37 PM | --- crates/project_panel/src/scrollbar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project_panel/src/scrollbar.rs b/crates/project_panel/src/scrollbar.rs index 8696b1eed2..0da9db7cb7 100644 --- a/crates/project_panel/src/scrollbar.rs +++ b/crates/project_panel/src/scrollbar.rs @@ -77,7 +77,7 @@ impl gpui::Element for ProjectPanelScrollbar { ) { cx.with_content_mask(Some(ContentMask { bounds }), |cx| { let colors = cx.theme().colors(); - let scrollbar_background = colors.scrollbar_track_border; + let scrollbar_background = colors.scrollbar_track_background; let thumb_background = colors.scrollbar_thumb_background; cx.paint_quad(gpui::fill(bounds, scrollbar_background));