diff --git a/editor/src/messages/portfolio/document/overlays/utility_types.rs b/editor/src/messages/portfolio/document/overlays/utility_types.rs index 67b9eaa40b..edf903bdf5 100644 --- a/editor/src/messages/portfolio/document/overlays/utility_types.rs +++ b/editor/src/messages/portfolio/document/overlays/utility_types.rs @@ -127,7 +127,7 @@ impl OverlayContext { } } - pub fn manipulator_handle(&mut self, position: DVec2, selected: bool, optional_stroke_style: Option<&str>) { + pub fn manipulator_handle(&mut self, position: DVec2, selected: bool, color: Option<&str>) { let position = position.round() - DVec2::splat(0.5); self.render_context.begin_path(); @@ -137,7 +137,7 @@ impl OverlayContext { let fill = if selected { COLOR_OVERLAY_BLUE } else { COLOR_OVERLAY_WHITE }; self.render_context.set_fill_style_str(fill); - self.render_context.set_stroke_style_str(optional_stroke_style.unwrap_or(COLOR_OVERLAY_BLUE)); + self.render_context.set_stroke_style_str(color.unwrap_or(COLOR_OVERLAY_BLUE)); self.render_context.fill(); self.render_context.stroke(); }