diff options
| -rw-r--r-- | lib/extensions/gradient_blocks.py | 3 | ||||
| -rw-r--r-- | templates/gradient_blocks.xml | 27 |
2 files changed, 23 insertions, 7 deletions
diff --git a/lib/extensions/gradient_blocks.py b/lib/extensions/gradient_blocks.py index 563e3127..d80d5340 100644 --- a/lib/extensions/gradient_blocks.py +++ b/lib/extensions/gradient_blocks.py @@ -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): diff --git a/templates/gradient_blocks.xml b/templates/gradient_blocks.xml index d5618704..f824d514 100644 --- a/templates/gradient_blocks.xml +++ b/templates/gradient_blocks.xml @@ -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> |
