summaryrefslogtreecommitdiff
path: root/templates/gradient_blocks.xml
blob: 7b6e1d35fc4616d64049cde187f2a2e9135f95ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Convert to gradient blocks</name>
    <id>org.{{ id_inkstitch }}.gradient_blocks</id>
    <param name="extension" type="string" gui-hidden="true">gradient_blocks</param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Tools: Fill" />
            </submenu>
        </effects-menu>
    </effect>
    <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>
</inkscape-extension>