mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 05:44:17 +00:00
project_panel: Set scrollbar track background from theme (#16546)
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 | | --- | ---- | | <img width="281" alt="Screenshot 2024-08-20 at 2 46 23 PM" src="https://github.com/user-attachments/assets/46d48e75-f472-4060-bcd7-9c2f7d97963d"> | <img width="280" alt="Screenshot 2024-08-20 at 2 46 37 PM" src="https://github.com/user-attachments/assets/081038a4-4337-4c9f-9a95-93497003fb56"> |
This commit is contained in:
parent
d2a7caa84b
commit
a1438a49df
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue