mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 14:47:30 +00:00
chore: update fn paint
This commit is contained in:
parent
7ef5656f6a
commit
6fbef9f3c7
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ use gpui::geometry::rect::RectF;
|
|||
use gpui::geometry::vector::IntoVector2F;
|
||||
use gpui::json::{self, ToJson};
|
||||
use gpui::{scene::Path, LayoutContext};
|
||||
use gpui::{Element, SceneBuilder, View, ViewContext};
|
||||
use gpui::{Element, PaintContext, SceneBuilder, View, ViewContext};
|
||||
|
||||
type CreatePath = fn(RectF, Color) -> Path;
|
||||
type AdjustBorder = fn(RectF, f32) -> RectF;
|
||||
|
@ -106,7 +106,7 @@ impl<V: View> Element<V> for ButtonSide {
|
|||
_: RectF,
|
||||
_: &mut Self::LayoutState,
|
||||
_: &mut V,
|
||||
_: &mut ViewContext<V>,
|
||||
_: &mut PaintContext<V>,
|
||||
) -> Self::PaintState {
|
||||
let mut bounds = bounds;
|
||||
if let Some((border_width, border_color)) = self.border.as_ref() {
|
||||
|
|
Loading…
Reference in a new issue