add help tab to gradient block extension

pull/2284/head
Kaalleen 2023-05-10 15:57:21 +02:00
rodzic 39627371ac
commit 573abab9e7
2 zmienionych plików z 23 dodań i 7 usunięć

Wyświetl plik

@ -28,6 +28,9 @@ class GradientBlocks(CommandsExtension):
def __init__(self, *args, **kwargs):
CommandsExtension.__init__(self, *args, **kwargs)
self.arg_parser.add_argument("--notebook", type=str, default=0.0)
self.arg_parser.add_argument("--options", type=str, default=0.0)
self.arg_parser.add_argument("--info", type=str, default=0.0)
self.arg_parser.add_argument("-e", "--end-row-spacing", type=float, default=0.0, dest="end_row_spacing")
def effect(self):

Wyświetl plik

@ -11,13 +11,26 @@
</submenu>
</effects-menu>
</effect>
<param name="end-row-spacing"
gui-text="End row spacing"
gui-description="Set to zero to use twice the row spacing value"
type="float"
min="0" max="100"
precision="2"
indents="1">0</param>
<param name="notebook" type="notebook">
<page name="options" gui-text="Options">
<param name="end-row-spacing"
gui-text="End row spacing"
gui-description="Set to zero to use twice the row spacing value"
type="float"
min="0" max="100"
precision="2"
indents="1">0</param>
</page>
<page name="info" gui-text="Help">
<label appearance="header">Converts a fill with a linear color gradient into color blocks with variable row spacing.</label>
<spacer />
<label>This may add density at the center.</label>
<spacer />
<label>If necessary adapt the end row spacing value after the conversion with the params dialog.</label>
<spacer />
<label appearance="url">https://inkstitch.org/docs/fill-tools/#convert-to-gradient-blocks</label>
</page>
</param>
<script>
{{ command_tag | safe }}
</script>