Skip to content

Commit

Permalink
Rename color parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Keavon committed Jan 15, 2025
1 parent 8c4427f commit e9811fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
}
Expand Down

0 comments on commit e9811fc

Please sign in to comment.