#1284: remove remaining double-click paint helpers

This commit is contained in:
Kristian Myram committed 2026-10-30 03:56:25 +01:00
1 parent c51b461860
commit bc1734f59e
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -216,12 +216,10 @@ pub fn first_paint(layer: &Layer, lt: Tick) -> (Option<[f64; 4]>, Option<[f64; 4
"fill" if fill.is_none() => fill = at("color").map(rgba),
"stroke" if stroke.is_none() => {
stroke = at("color").map(rgba);
width = at("width").map(|v| v.as_f64());
}
_ => {}
}
if width.is_none() && matches!(g.match_id.as_str(), "stroke" | "gstroke") {
width = at("width").map(|v| v.as_f64());
}
});
}
(fill, stroke, width)
+1 -1
View File
@@ -78,7 +78,7 @@ pub(super) struct ShapeDrag {
}
/// The kind `tool` draws, as `shape.newShape` / `layer.addMask` name it.
pub(crate) fn shape_kind(tool: Tool) -> &'static str {
fn shape_kind(tool: Tool) -> &'static str {
match tool {
Tool::Rectangle => "rect",
Tool::RoundedRect => "rounded",