File: color_replace.inx

package info (click to toggle)
inkscape 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320,944 kB
  • sloc: cpp: 532,425; ansic: 59,393; python: 51,398; javascript: 3,864; xml: 2,708; sh: 2,426; perl: 614; makefile: 431
file content (24 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Replace color</name>
    <id>org.inkscape.color.replace_color</id>
    <param name="tab" type="notebook">
      <page name="from" gui-text="Color to replace">
        <param name="from_color" type="color" gui-text="From color"></param>
        <param name="ignore_opacity" type="bool" 
               gui-text="Ignore opacity when searching for colors to replace">true</param>
      </page>
      <page name="to" gui-text="New color">
        <param name="to_color" type="color" gui-text="To color"></param>
      </page>
    </param>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="Color"/>
        </effects-menu>
    </effect>
    <script>
        <command location="inx" interpreter="python">color_replace.py</command>
    </script>
</inkscape-extension>