summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-03-11 14:08:56 +0100
committerGitHub <noreply@github.com>2024-03-11 14:08:56 +0100
commit4749eca8fdfe1b3fe362cacd409147ff89f35629 (patch)
tree9536e6f9177086289d5c921a769e1ec7dc3d805e /templates
parent3121bbaedf7e76d92a029fad067828014f9f5fde (diff)
Add apply palette extension (#2738)
* add apply palette extension * thread catalog: apply palette: do not overwrite cutwork settings
Diffstat (limited to 'templates')
-rw-r--r--templates/apply_palette.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/apply_palette.xml b/templates/apply_palette.xml
new file mode 100644
index 00000000..f315916c
--- /dev/null
+++ b/templates/apply_palette.xml
@@ -0,0 +1,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>