From 2235ec6571601e12be7eb3c74907668fb68bebd4 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:14:52 +0200 Subject: Fix issue with bad color names (#3816) * fix issue with bad color names and define element colors at one place and reuse * fix bad tartan color * verify color in gradient block * add thread color tests * use default color behavior for elements linked to non-existing definitions (gradients) * Added mypy change for tests (authored by: CapellanCitizen) --- lib/marker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/marker.py') diff --git a/lib/marker.py b/lib/marker.py index a2b0965a..cd700674 100644 --- a/lib/marker.py +++ b/lib/marker.py @@ -72,8 +72,8 @@ def get_marker_elements(node, marker, get_fills=True, get_strokes=True, get_sati continue element = EmbroideryElement(marker) - fill = element.get_style('fill') - stroke = element.get_style('stroke') + fill = element.fill_color + stroke = element.stroke_color if get_fills and fill is not None: fill = FillStitch(marker).shape -- cgit v1.2.3