From c2678268b29e8fef5045c4c6a215a4f76deea77b Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 21 Nov 2024 15:02:46 +0800 Subject: [PATCH] chore: Update background assign to use into. --- crates/ui/src/scroll/scrollable_mask.rs | 2 +- crates/ui/src/scroll/scrollbar.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/scroll/scrollable_mask.rs b/crates/ui/src/scroll/scrollable_mask.rs index a6f29ba8..4efb4bfd 100644 --- a/crates/ui/src/scroll/scrollable_mask.rs +++ b/crates/ui/src/scroll/scrollable_mask.rs @@ -117,7 +117,7 @@ impl Element for ScrollableMask { bounds, border_widths: Edges::all(px(1.0)), border_color: color, - background: gpui::transparent_white(), + background: gpui::transparent_white().into(), corner_radii: Corners::all(px(0.)), }); } diff --git a/crates/ui/src/scroll/scrollbar.rs b/crates/ui/src/scroll/scrollbar.rs index 56f7cb45..01588f71 100644 --- a/crates/ui/src/scroll/scrollbar.rs +++ b/crates/ui/src/scroll/scrollbar.rs @@ -460,7 +460,7 @@ impl Element for Scrollbar { cx.paint_quad(PaintQuad { bounds, corner_radii: (0.).into(), - background: gpui::transparent_black(), + background: gpui::transparent_black().into(), border_widths: if is_vertical { Edges { top: px(0.),