Bug 479159

Summary: Aurorae engine references "fill" element in svg if it have both "fill" and "style" element
Product: [Frameworks and Libraries] frameworks-ksvg Reporter: Hiroki Ando <hikuohiku>
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Hiroki Ando 2023-12-29 14:35:53 UTC
SUMMARY
The Aurorae engine references the "fill" element in SVG files even if both "fill" and "style" elements are present to define its color.

Based on my research, SVG viewers prioritize the color definition in "style" elements, and Inkscape only edits "style" elements. However, the Aurorae engine references "fill" elements, so the color can't be edited using Inkscape if there is a "fill" element in the SVG file.

I am an elementary user of KDE Plasma and attempted to customize the Aurorae theme "White Sur" (https://store.kde.org/p/1398835).

I'm also a beginner in English, so I apologize for any mistakes.

STEPS TO REPRODUCE

Download the White Sur theme from https://store.kde.org/p/1398835.
Edit the decoration.svg file with Inkscape (change the color of the decoration-top object).
Notice that you can't change its color except for decoration-topleft and decoration-topright objects.
OBSERVED RESULT
The window decoration color doesn't change.

EXPECTED RESULT
The window decoration color should change.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10