summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-04-10 10:10:50 +0200
committerGitHub <noreply@github.com>2022-04-10 10:10:50 +0200
commitc575aeda96d389de29389c9e6e46395e1b938244 (patch)
treee235d604bcbd7262c79a02dc255c667eb7ebe56e /templates
parent3780791c26cb5a61855c14685837f5513958a1b1 (diff)
palette to text (#1619)
Diffstat (limited to 'templates')
-rw-r--r--templates/generate_palette.xml2
-rw-r--r--templates/palette_to_text.xml30
2 files changed, 31 insertions, 1 deletions
diff --git a/templates/generate_palette.xml b/templates/generate_palette.xml
index 3f876ead..cf5a18e4 100644
--- a/templates/generate_palette.xml
+++ b/templates/generate_palette.xml
@@ -27,7 +27,7 @@
With this extension you can export colors from text elements in their stacking order.
The text will be used as the color name and number.</label>
<separator />
- <label>On our website we describe all necessaty steps to generate a color palette for Ink/Stitch.</label>
+ <label>On our website we describe all necessary steps to generate a color palette for Ink/Stitch.</label>
<label appearance="url">https://inkstitch.org/docs/thread-color#generate-color-palette</label>
</page>
</param>
diff --git a/templates/palette_to_text.xml b/templates/palette_to_text.xml
new file mode 100644
index 00000000..42b2b6b7
--- /dev/null
+++ b/templates/palette_to_text.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Palette to text</name>
+ <id>org.inkstitch.palette_to_text</id>
+ <effect needs-live-preview="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch" translatable="no">
+ <submenu name="Thread Color Management" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="extension" type="string" gui-hidden="true">palette_to_text</param>
+ <param name="notebook" type="notebook">
+ <page name="options" gui-text="Options">
+ <label>Choose a .gpl color palette file to import colors as text elements.</label>
+ <param name="file" type="path" gui-text="Choose file" mode="file" filetypes="gpl"/>
+ </page>
+ <page name="info" gui-text="Help">
+ <label appearance="header">Palette to text</label>
+ <label>Import a .gpl palette into Inkscape as text elements to edit color entries.</label>
+ <separator />
+ <label>Read more on our webiste:</label>
+ <label appearance="url">https://inkstitch.org/docs/thread-color#palette-to-text</label>
+ </page>
+ </param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>