Bug 350190 - Incorrect rendering of prefixed elements in widgets/panel-background.svg
Summary: Incorrect rendering of prefixed elements in widgets/panel-background.svg
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.3.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: http://i.imgur.com/skZIp7n.png
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-13 20:00 UTC by obnosim
Modified: 2020-11-03 23:54 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description obnosim 2015-07-13 20:00:23 UTC
In Plasma 4 (and, according to techbase.kde.org/Development/Tutorials/Plasma5/ThemeDetails, in Plasma 5 as well) there is a feature that allows theme designers to define different theme elements to be used for panels based on the side of the screen they are on. This seems to be quite buggy at the moment.

First of all, elements prefixed with north-mini, south-mini, east-mini and west-mini are completely ignored, whether or not there are analogous elements without -mini.

Secondly, north-bottom (and west-bottomleft and west-bottomright), west-right (and west-topright and west-bottom-right) elements are recognized and the workspace allocates room for them but doesn't paint them, leaving transparent borders in the panels (see screenshot).

The same theme renders perfectly under Plasma 4 so the theme isn't the problem. I assume this was not found before because Breeze (like most themes) doesn't use that feature.

Reproducible: Always

Steps to Reproduce:
1. Use a theme with prefixed panel elements
2. Use north or west panels or mini panels on any side of the screen

Actual Results:  
The bottom elements from the north panels and the right elements from the west panels are not displayed but still take up space.

Expected Results:  
All elements should be painted.

Screenshots:

Svg file with coloured parts to tell them apart: http://i.imgur.com/FY80LGC.png
Result: http://i.imgur.com/skZIp7n.png

As you can see, none of the north-mini or west-mini elements are actually painted. Instead, the north-center element is picked. The empty space underneath it might be for north-bottom, or, as it should, north-mini-bottom, or possibly center-bottom. Either way, it isn't painted.

For testing purposes, my theme can be found here: https://github.com/obnosim/velours/tree/plasma5
Comment 1 Marco Martin 2015-07-14 11:23:10 UTC
the -mini prefixes are not supported anymore.
however the north/west etc should be fine (they would need to be complete with all elements).

is still a problem tough that in the screenshot the red element should appear correctly
Comment 2 obnosim 2015-07-14 12:38:33 UTC
(In reply to Marco Martin from comment #1)
> the -mini prefixes are not supported anymore.
Thanks for the answer. In this case, the techbase page should be updated to reflect this.
Comment 3 Justin Zobel 2020-11-02 03:42:30 UTC
Are you able to please confirm if this issue is still persisting, thanks.
Comment 4 obnosim 2020-11-03 23:33:26 UTC
(In reply to Justin Zobel from comment #3)
> Are you able to please confirm if this issue is still persisting, thanks.

I believe it's been fixed for quite a while now.
Comment 5 Justin Zobel 2020-11-03 23:54:24 UTC
Thanks, I've marked this as resolved but if the issue returns please don't hesitate to reopen the bug.