summaryrefslogtreecommitdiff
path: root/templates/install_custom_palette.xml
blob: 74a47d515d20ee1f6f460779ee7ce65586733f70 (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
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Install custom palette</name>
    <id>org.{{ id_inkstitch }}.install_custom_palette</id>
    <param name="extension" type="string" gui-hidden="true">install_custom_palette</param>

    <param name="notebook" type="notebook">
        <page name="options" gui-text="Options">
            <label indent="1">Choose a .gpl color palette file to install into Inkscape.</label>
            <label indent="1">Restart Inkscape to use.</label>
            <spacer />
            <param indent="1" name="filepath" type="path" gui-text="Choose file" mode="file" filetypes="gpl"/>
        </page>
        <page name="info" gui-text="Help">
            <label>This extension installs a custom thread palette into Inkscape.</label>
            <spacer />
            <label>More information on our website</label>
            <label appearance="url">https://inkstitch.org/docs/thread-color/#install-custom-palette</label>
        </page>
    </param>

    <effect needs-live-preview="false">
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/color_management.svg</icon>
        <menu-tip>Installs a custom color palette into Inkscape</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Thread Color Management" />
            </submenu>
        </effects-menu>
    </effect>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>