This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/generate_palette/generate_palette.inx

40 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-07-23 02:36:56 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Generate Palette</name>
<id>fablabchemnitz.de.generate_palette</id>
<label>Select a set of objects and create a custom color palette.</label>
<label appearance="header">Palette Properties</label>
<label>Palette Name</label>
<param name="name" type="string" gui-text=" " />
<vbox>
<param name="property" type="optiongroup" appearance="combo" gui-text="Color Property">
<option value="fill">Fill Color</option>
<option value="stroke">Stroke Color</option>
<option value="both">Both</option>
</param>
</vbox>
<label appearance="header">Options</label>
<param name="default" type="bool" gui-text="Include default grays">false</param>
<param name="replace" type="bool" gui-text="Replace existing palette">false</param>
<param name="sort" type="optiongroup" appearance="combo" gui-text="Sort colors">
<option value="selection">Selection / Z-index</option>
<option value="hsl">By HSL values</option>
<option value="rgb">By RGB values</option>
<option value="x_location">X Location</option>
<option value="y_location">Y Location</option>
</param>
<spacer />
<hbox>
<image>info.svg</image>
<label>Don't forget to restart Inkscape</label>
</hbox>
<effect needs-live-preview="false">
<object-type>all</object-type>
<effects-menu>
<submenu name="Palette" />
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">generate_palette.py</command>
</script>
</inkscape-extension>