This forum has been archived. All content is frozen. Please use KDE Discuss instead.

using vector art to add shadows for plasma widgets

Tags: None
(comma "," separated)
sir_herrbatka
Registered Member
Posts
212
Karma
0
I noticed that majority of themes use nested raster images insinde svg for widget shadows. I tried to add large shadow (like in the new air style) for widgets but using vector element. It does not look quite right in plasma. Is there some sort of bug here?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If I recall correctly, Plasma Desktop depends upon the SVG rendering capabilities of Qt, using the QtSVG module. The QtSVG renderer is unfortunately weak in certain areas - you have likely run into a bug with it - which is why others include rendered raster images instead.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sir_herrbatka
Registered Member
Posts
212
Karma
0
Yes, I think so.

Hopefully this can be solved some day.
sir_herrbatka
Registered Member
Posts
212
Karma
0
After looking trough different themes I start to think that this is not quite related to the shadow itself but rather to the mask. After removing mask my shadows look perfectly fine.

Can someone explain how to use mask in KDE plasma themes correctly, please?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Interesting. As Plasma code itself is not responsible for rendering the SVG files, the inability to use masks is still likely a bug in QtSVG i'm afraid. It does give more information on where to look for the bug though - which may be useful if someone is interested in attempting to fix it.

You could try asking the other theme developers, or the Plasma developers themselves, if anyone has managed to use masks in a SVG file successfully before.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sir_herrbatka
Registered Member
Posts
212
Karma
0
Actually masks works as intended. It is just me, looking at wrong themes!

After taking carefull look at air theme and reading about svg standard I was finally to make everything what I wanted to do from the very begining.

If you have doubts about plasma themeing just model after Air theme.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]