diff --git a/topola-egui/src/displayer.rs b/topola-egui/src/displayer.rs index c3c27e6..ae79dbe 100644 --- a/topola-egui/src/displayer.rs +++ b/topola-egui/src/displayer.rs @@ -150,7 +150,7 @@ impl Displayer { ui.painter().add(egui::Shape::convex_polygon( points, - egui::Color32::RED, + color, egui::Stroke::new(5.0 / viewport.scale_factor(), color), )); } diff --git a/topola/src/specctra.rs b/topola/src/specctra.rs index 275563d..bcb879d 100644 --- a/topola/src/specctra.rs +++ b/topola/src/specctra.rs @@ -105,7 +105,7 @@ impl Board { pin.point_with_rotation(), layer, (circle.diameter / 2.0) as u64, - false, + !place_side_is_front, ) } Shape::Rect(rect) => { @@ -119,7 +119,7 @@ impl Board { rect.x2, rect.y2, layer, - false, + !place_side_is_front, ) } Shape::Path(path) => { @@ -131,7 +131,7 @@ impl Board { &path.coords, path.width, layer, - false, + !place_side_is_front, ) } Shape::Polygon(polygon) => { @@ -143,7 +143,7 @@ impl Board { &polygon.coords, polygon.width, layer, - false, + !place_side_is_front, ) } }