kopia lustrzana https://github.com/inkstitch/inkstitch
none got lost
rodzic
2f8b72f60f
commit
a2085ed4a0
|
@ -169,9 +169,12 @@ class EmbroideryElement(object):
|
|||
return self.node.specified_style()
|
||||
|
||||
def get_style(self, style_name, default=None):
|
||||
style = self._get_specified_style()(style_name) or default
|
||||
element_style = self._get_specified_style()
|
||||
style = element_style.get(style_name, default)
|
||||
if style == 'none':
|
||||
style = None
|
||||
elif style == 'currentColor':
|
||||
style = element_style(style_name)
|
||||
return style
|
||||
|
||||
@property
|
||||
|
|
Ładowanie…
Reference in New Issue