summaryrefslogtreecommitdiff
path: root/templates/apply_palette.xml
blob: f315916c78101154f69ab3a2d7e712b3fd5d3c46 (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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Apply Palette</name>
    <id>org.{{ id_inkstitch }}.apply_palette</id>
    <param name="extension" type="string" gui-hidden="true">apply_palette</param>
    <param name="tabs" type="notebook">
      <page name="options" gui-text="Options">
        <param name="palette" type="optiongroup" appearance="combo" gui-text="Select color palette">
        {%- for item in threadcatalog %}
           <item value="{{ item }}">{{ item }}</item>
        {%- endfor %}
        </param>
      </page>
      <page name="info" gui-text="Help">
        <label>This extension applies nearest colors from chosen color palette to the elements in this document.</label>
        <spacer />
        <label>Get more information on our website</label>
        <label appearance="url">https://inkstitch.org/docs/thread-color/#apply-palette</label>
      </page>
    </param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Thread Color Management" />
            </submenu>
        </effects-menu>
    </effect>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>