Setting up default style as unset

Post questions on how to use or achieve an effect in Inkscape.
tottot
Posts: 1
Joined: Fri Feb 01, 2013 11:17 pm

Setting up default style as unset

Postby tottot » Mon Feb 04, 2013 8:12 pm

Hi!

I have a very specific task to do with Incscape. I need to prepare a template document with well-defined layers and an embedded CSS style section that sets styles according to the layer. The idea is that all objects will have their atributes as "unset" and will inherit style after a layer they are placed on.

I did all that and then I faced a difficulty - Every time I want to start drawing on the template, I have to manually set attributes as "unset". I tried to tinker around default settings, but it's impossible to set them to "Unset" as default.
Is there another way to do that? I really don't want the template's end user to override CSS with default attributes and it seems risky to just leave it to them to remember to "unset" all the object. I'd like it to be as dumb-user-friendly as possible.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Setting up default style as unset

Postby brynn » Tue Feb 05, 2013 5:02 am

Image
Welcome to InkscapeForum!

I don't understand much about what you're doing with the template and CSS. But I have been able to change a rectangle's fill and stroke to Unset, as the Rectangle tool's default style. Maybe you're missing something when setting the default style?

Edit
Oh, I see what you're saying. Instead of Unset, it actually sets a black fill and stroke on any subsequently drawn rectangles.

The only thing I know about the Unset style, is that it's required for using the color options in Tiled Clones. My guess wouldl be that either Unset styles have no other use in Inkscape, or for some reason tools can't have Unset as their own style.

Or maybe there is some trick to make it work. But I don't know what it is :(


Return to “Help with using Inkscape”