kopia lustrzana https://github.com/inkstitch/inkstitch
add tartan and autosatin underlay
rodzic
36f7736c77
commit
93d5a5756b
|
@ -22,7 +22,7 @@ class DBusActions:
|
|||
except BaseException:
|
||||
exit()
|
||||
|
||||
name = 'org.inkscape.Inkscape'
|
||||
name = 'org.inkscape.Inkscape'
|
||||
appGroupName = "/org/inkscape/Inkscape"
|
||||
self.applicationGroup = Gio.DBusActionGroup.get(
|
||||
bus,
|
||||
|
|
|
@ -40,6 +40,7 @@ class SelectElements(InkstitchExtension):
|
|||
pars.add_argument("--select-meander-fill", type=Boolean, dest="meander", default=False)
|
||||
pars.add_argument("--select-circular-fill", type=Boolean, dest="circular", default=False)
|
||||
pars.add_argument("--select-linear-gradient-fill", type=Boolean, dest="linear_gradient", default=False)
|
||||
pars.add_argument("--select-tartan-fill", type=Boolean, dest="tartan_fill", default=False)
|
||||
pars.add_argument("--select-legacy-fill", type=Boolean, dest="legacy", default=False)
|
||||
pars.add_argument("--fill-underlay", type=str, dest="fill_underlay", default="all")
|
||||
pars.add_argument("--select-clone", type=Boolean, dest="clone", default=False)
|
||||
|
@ -155,13 +156,19 @@ class SelectElements(InkstitchExtension):
|
|||
select = True
|
||||
elif self.options.linear_gradient and method == 'linear_gradient_fill':
|
||||
select = True
|
||||
elif self.options.tartan_fill and method == 'tartan_fill':
|
||||
select = True
|
||||
elif self.options.legacy and method == 'legacy_fill':
|
||||
select = True
|
||||
return select
|
||||
|
||||
def _running_condition(self, element):
|
||||
element_id = element.node.get_id() or ''
|
||||
conditions = {'all': True, 'autorun-top': element_id.startswith('autorun'), 'autorun-underpath': element_id.startswith('underpath')}
|
||||
conditions = {
|
||||
'all': True,
|
||||
'autorun-top': element_id.startswith('autorun'),
|
||||
'autorun-underpath': element_id.startswith('underpath'),
|
||||
'autosatin-underpath': element_id.startswith('autosatinrun')}
|
||||
return conditions[self.options.running_stitch_condition]
|
||||
|
||||
def _bean_stitch_repeats(self, element):
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<option value="all">No restriction</option>
|
||||
<option value="autorun-top">Auto-Run Top Stitching</option>
|
||||
<option value="autorun-underpath">Auto-Run Underpath</option>
|
||||
<option value="autosatin-underpath">Auto-Satin Underpath</option>
|
||||
</param>
|
||||
<param indent="3" name="bean-stitch-repeats" type="string" gui-text="Bean stitch repeats">0</param>
|
||||
<param indent="1" name="select-ripples" type="boolean" gui-text="Ripples">false</param>
|
||||
|
@ -58,6 +59,7 @@
|
|||
<param indent="1" name="select-guided-fill" type="boolean" gui-text="Guided Fill">false</param>
|
||||
<param indent="1" name="select-linear-gradient-fill" type="boolean" gui-text="Linear Gradient Fill">false</param>
|
||||
<param indent="1" name="select-meander-fill" type="boolean" gui-text="Meander Fill">false</param>
|
||||
<param indent="1" name="select-tartan-fill" type="boolean" gui-text="Tartan Fill">false</param>
|
||||
<param indent="1" name="select-legacy-fill" type="boolean" gui-text="Legacy Fill">false</param>
|
||||
<param indent="1" name="fill-underlay" type="optiongroup" appearance="combo" gui-text="Underlay"
|
||||
gui-description="Only select fills with this underlay">
|
||||
|
|
Ładowanie…
Reference in New Issue