Remove trailing zeros in rendered SVG path output

This commit is contained in:
Keavon Chambers
2025-01-13 00:01:48 -08:00
parent 8dfdc2b98f
commit 1e62af88cd
4 changed files with 44 additions and 17 deletions

View File

@@ -155,7 +155,10 @@ impl LayoutHolder for PathTool {
})
.tooltip(colinear_handles_tooltip)
.widget_holder();
let colinear_handles_label = TextLabel::new("Colinear Handles").tooltip(colinear_handles_tooltip).widget_holder();
let colinear_handles_label = TextLabel::new("Colinear Handles")
.disabled(self.tool_data.selection_status.is_none())
.tooltip(colinear_handles_tooltip)
.widget_holder();
Layout::WidgetLayout(WidgetLayout::new(vec![LayoutGroup::Row {
widgets: vec![