svg2xaml does not correctly write colour values.
Summary:
When exporting an SVG icon to a XAML icon the colour values are not correctly written to the output. It looks like this was mentioned on the forum earlier this year but I was unable find an issue logged corresponding to it: https://inkscape.org/ar/forums/questions/save-svg-as-microsoft-xaml-sets-all-fills-to-black-fill000000/
Steps to reproduce:
- open Inkscape
- open an .svg file.
- save as Microsoft XAML (*.xaml).
Silverlight compatibility doesn't seem to make a difference here. We do want to use this setting though hence why the print to XPS Document workaround mentioned in the linked forum thread is inappropriate for us.
What happened?
All of the colours are written as Fill="#000000".
For Line geometry Fill colour is written instead of Stroke colour resulting in the Line no longer being visible in the output.
What should have happened?
The colour should be maintained. Ideally the exported XAML icon would look identical to the SVG icon.
Sample attachments:
Original:
Result:
Expected Result:
Version Info:
- Inkscape Version: Inkscape 1.0.1 (3bc2e813f5, 2020-09-07)
- Operating System: Windows 10 1909
- Operating System version: 18363.1082