cant use classes to set colors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned | ||
inkscape (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
in inkscape, when we try to use classes to set a color (important for kde-plasma workspace theming). inkscape always writes the color of the element, written in the classdescription directly to the style of the element. we have to remove it from outside inkscape all the time.
for example:
create an svg file with the content:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://
xmlns:cc="http://
xmlns:rdf="http://
xmlns:svg="http://
xmlns="http://
xmlns:sodipodi="http://
xmlns:inkscape="http://
viewBox="0 0 24 24"
id="svg"
version="1.1"
inkscape:
width="100%"
height="100%"
sodipodi:
<defs
id="defs1">
<style
color:#333333;
}</style>
</defs>
<metadata
id=
<rdf:RDF>
<cc:Work
<dc:type
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:
pagecolor=
bordercolo
borderopac
objecttole
gridtolera
guidetoler
inkscape:
inkscape:
inkscape:
inkscape:
id=
showgrid=
inkscape:
inkscape:
inkscape:
inkscape:
inkscape:
inkscape:
inkscape:
borderlaye
showguides
inkscape:
<inkscape:grid
id="grid1"
</sodipodi:
</svg>
as you can se we embedded the css alreads. so save it as "test.svg", and open it with inkscape.
now create an element like a circle, open the xml editor and navigate to the circle element.
in your xml editor you can write now a new attribute "class" with the value of "ColorScheme-
next go to the style part and set the value only to "fill:currentCo
now it *should* change the color to what is giver by the css (that part works).
BUT alongside to the "fill:currentColor" there will now be a "color:#333333". and that should not happen, because it breaks the funktionality of the css.
when you try to remove that part "color:#333333" from xml editor, its not possible. but you can remove it from outside inkscape. inkscape can still read the file.
so please make it possible that it wont write the color from css to the style element, but uses what we write in.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: inkscape 0.91-3ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.16.2-0ubuntu3
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Mar 13 11:09:06 2015
InstallationDate: Installed on 2015-02-01 (39 days ago)
InstallationMedia: Kubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150130)
SourcePackage: inkscape
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: bug-migration |
Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new
bug tracker on GitLab, and closed it here.
Please feel free to file new bugs about the issues you're seeing at inkscape. org/report.
http://
Moved to: https:/ /gitlab. com/inkscape/ inbox/issues/ 452 /gitlab. com/nathanal
Closed by: https:/