chore: Update background assign to use into.

This commit is contained in:
Jason Lee 2024-11-21 15:02:46 +08:00
parent 8b23193f8f
commit c2678268b2
2 changed files with 2 additions and 2 deletions

View file

@ -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.)),
});
}

View file

@ -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.),