summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-10-27 17:27:41 +0100
committerGitHub <noreply@github.com>2025-10-27 17:27:41 +0100
commit0f95684bff102d8f573c17e806d37c35b59562d6 (patch)
tree06a63b16a10dea712fcc9b81737b0b58fa672dee /templates
parenta91c18c374db810357283f8197f05db1cfd87b65 (diff)
add apply attribute extension (#3983)
Diffstat (limited to 'templates')
-rw-r--r--templates/apply_attribute.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/apply_attribute.xml b/templates/apply_attribute.xml
new file mode 100644
index 00000000..ddc7e0d4
--- /dev/null
+++ b/templates/apply_attribute.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Apply attribute</name>
+ <id>org.{{ id_inkstitch }}.apply_attribute</id>
+ <param name="extension" type="string" gui-hidden="true">apply_attribute</param>
+ <effect>
+ <object-type>all</object-type>
+ <icon>{{ icon_path }}inx/apply_attribute.svg</icon>
+ <menu-tip>Applies a custom attribute to multiple elements</menu-tip>
+ <effects-menu>
+ <submenu name="{{ menu_inkstitch }}" translatable="no">
+ <submenu name="Edit" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="notebook" type="notebook">
+ <page name="options" gui-text="Options">
+ <param name="namespace" type="string" gui-text="Namespace">inkstitch</param>
+ <param name="key" type="string" gui-text="Attribute"></param>
+ <param name="value" type="string" gui-text="Value"></param>
+ <spacer />
+ <param name="remove" type="boolean" gui-text="Remove attribute">false</param>
+ </page>
+ <page name="info" gui-text="Help">
+ <label appearance="header">This extension sets a custom attribute to all selected elements.</label>
+ <spacer/>
+ <label>It is an extension for experienced users.</label>
+ <spacer/>
+ <label appearance="url">https://inkstitch.org/docs/edit/#apply-attribute</label>
+ </page>
+ </param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>