fix gradient style (#3200)

pull/3222/head
Kaalleen 2024-09-30 10:57:26 +02:00 zatwierdzone przez GitHub
rodzic c685d867f4
commit 5185237643
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -563,7 +563,7 @@ class EmbroideryElement(object):
if hasattr(self, 'gradient') and self.gradient is not None:
gradient['stops'] = self.gradient.stop_offsets
gradient['orientation'] = [self.gradient.x1(), self.gradient.x2(), self.gradient.y1(), self.gradient.y2()]
gradient['styles'] = [(style['stop-color'], style['stop-opacity']) for style in self.gradient.stop_styles]
gradient['styles'] = [(stop.style('stop-color'), stop.style('stop-opacity')) for stop in self.gradient.stops]
return gradient
def _get_tartan_key_data(self):