how to delete dashes styles

Post questions on how to use or achieve an effect in Inkscape.
Chirashi
Posts: 2
Joined: Wed Aug 12, 2015 6:11 pm

how to delete dashes styles

Postby Chirashi » Sun Aug 16, 2015 7:01 pm

In "Fill and Stroke" dialogue box (Shift+Ctrl+F) I have a lot of not needed dash styles. After finding out how to add the ones I need with the preferences.xml file I want to delete all the other ones.

I thought deleting them in the preferences.xml file would do the trick but it does not. As soon as I restart all the default dash styles are back in.

Where (else) does Inkscape get the style info or how do I delete an unwanted dash style properly?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: how to delete dashes styles

Postby tylerdurden » Sun Aug 16, 2015 9:36 pm

Looks like they are hard-coded coded in based on ID.

So while you cannot delete the standard IDs, you can re-write the standard numeric sequences to your custom styles at the top of the list and ignore the remainder of the pick list.
e.g. solid is always at the top

Code: Select all

      <dash
         id="solid"
         style="stroke-dasharray:none" />


Can be re-written:

Code: Select all

      <dash
         id="solid"
         style="stroke-dasharray:12,1,12,1" />


Do this at your own risk.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Chirashi
Posts: 2
Joined: Wed Aug 12, 2015 6:11 pm

Re: how to delete dashes styles

Postby Chirashi » Mon Aug 17, 2015 5:55 pm

Hard coded ... i feared it was so. Would have made life a little easier if not ... but who said it would be easy ;-)

Anyway thanks for the help.


Return to “Help with using Inkscape”