Inkscape does not allow to save colors in <solidColor> defs

Bug #1078287 reported by dexter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Wishlist
Unassigned

Bug Description

Currently, Inkscape does not allow to save colors in the <defs> tag using the <solidColor> tag. It would be great if one can save some colors and give them a name instead of just using RGBA notation.

If I manually create a <solidColor> tag, I can assign an object that color using the style="fill:url(#my_color_name)" and so on. This works well.

But if I create a new object, take the color picker and assign it the defined color, Inkscape still uses the RGBA notation for the new object fill instead of referencing the color url.

Tags: color svg
Revision history for this message
su_v (suv-lp) wrote :

> But if I create a new object, take the color picker and assign it the
> defined color, Inkscape still uses the RGBA notation for the new object
> fill instead of referencing the color url.

To be expected (and not a bug): '<solidColor>' is not part of current the SVG 1.1. specification [1] (Solid color paint servers have been accepted for SVG 2.0, and are defined in the initial draft version of the spec for SVG 2.0 [2]. This special paint server is also part of the SVG Tiny 1.2 specification [3] which Inkscape does not support [4]).

With current stable Inkscape 0.48, you can use custom swatches for named colors in the current document:
<http://wiki.inkscape.org/wiki/index.php/Release_notes/0.48#Custom_Swatches>
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Fill-Stroke.html#Attributes-CustomSwatches>

[1] <http://www.w3.org/TR/SVG11/color.html>
[2] <http://www.w3.org/TR/2012/WD-SVG2-20120828/pservers.html#SolidColors>
[3] <http://www.w3.org/TR/SVGMobile12/painting.html#SolidColorElement>
[4] Bug #171283 “Implement SVG Tiny profile”
    Bug #701406 “Request feature - suport svgb format”

tags: added: color svg
Revision history for this message
su_v (suv-lp) wrote :

Setting bug importance to 'Wishlist' for now (likely this report is a duplicate of earlier ones requesting support for named colors in Inkscape).

Related blueprints:
<https://blueprints.launchpad.net/inkscape/+spec/named-color-swatches>
<https://blueprints.launchpad.net/inkscape/+spec/color-groups>

Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
dexter (dextermagnific) wrote :

Thank you for the hint about swatches. It is currently enough for what I need to do. The only whish I have about swatches is that you cannot rename the color: "linearGradient1234" is not a good color name. This is already in Bug 170194.

Inkscape forever.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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