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/sew_stack/stitch_layers/stitch_layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sew_stack/stitch_layers') diff --git a/lib/sew_stack/stitch_layers/stitch_layer.py b/lib/sew_stack/stitch_layers/stitch_layer.py index 615a36e8..d9a985f6 100644 --- a/lib/sew_stack/stitch_layers/stitch_layer.py +++ b/lib/sew_stack/stitch_layers/stitch_layer.py @@ -74,11 +74,11 @@ class StitchLayer: @property def stroke_color(self): - return self.element.get_style("stroke") + return self.element.stroke_color @property def fill_color(self): - return self.element.get_style("stroke") + return self.element.fill_color def to_stitch_groups(self, *args): raise NotImplementedError(f"{self.__class__.__name__} must implement to_stitch_groups()!") -- cgit v1.2.3