Color Variables

Bug #501229 reported by Rena Kunisaki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Jon A. Cruz

Bug Description

Instead of assigning a colour to every object's fill and stroke, gradient stops, etc, be able to define variables whose value is a colour, and assign that variable as the colour. Then if several objects have the same colour you can quickly adjust them all by changing the variable.

If SVG doesn't have this capability natively, it could be an Inkscape extension, where the variables are replaced with their value on export to standard SVG, or emulated using Javascript to dynamically set them.

Tags: color styles
jazzynico (jazzynico)
tags: added: color styles
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
su_v (suv-lp) wrote :

possibly related reports and blueprint:

Bug #170194 in Inkscape: “user-defined named colors in fill/stroke dialog”
https://bugs.launchpad.net/inkscape/+bug/170194
Bug #397796 in Inkscape: “Allow external paint servers”
https://bugs.launchpad.net/inkscape/+bug/397796

Blueprint: lock a certain number of color to change them as a group (instead of individually as only option of changing colors)
https://blueprints.launchpad.net/inkscape/+spec/color-groups

Revision history for this message
Rena Kunisaki (i-am-inuyasha) wrote :

From the blueprint:
"Another way to do this is to open the xml editor, create a svg:style element with type "text/css" and create a class element with a special fill color. Assign it then to any object you want to affecct with the class definiton. Doesn't works in inkscape, but works in svg readers."

This is about what I'm suggesting. Provide a way to create, modify, and apply classes that specify attributes such as colours.

Bug #170194 is not quite the same; it's a program-wide colour list, and changing entries in it wouldn't change the objects already using them.

su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Some work that had basic functionality for shared colors has been in for a little while. It has not been refined to cover gradient stops, etc. but will work for solid colors, gradients, etc. applied to shapes.

http://codewideopen.blogspot.com/2009/03/swatches-moving-in.html

It was #ifdef'd out for the 0.47 release, but was turned back on for current trunk.

Changed in inkscape:
status: Confirmed → In Progress
assignee: nobody → Jon A. Cruz (jon-joncruz)
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

(Minor note on the title spelling, but since this is SVG, the "color" spelling is in the spec. Makes searching easier, etc.)

summary: - Colour Variables
+ Color Variables
Revision history for this message
v1nce (vincent-pennec) wrote :

I filled a bug report 506590 that is some kind of extension of this one. It's about using variables (coming from system (eg color of wallpaper) or user defined) for filters.

https://bugs.launchpad.net/inkscape/+bug/506590

Revision history for this message
Rena Kunisaki (i-am-inuyasha) wrote :

This seems to be fixed by the addition of the Swatch button in the Fill and Stroke dialog.

Changed in inkscape:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.