Bug 433290

Summary: Plasma panel gets skewed on right side
Product: [Plasma] plasmashell Reporter: Andrei Amuraritei <andamu>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: herzenschein, nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 5.21.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Panel skew right side

Description Andrei Amuraritei 2021-02-20 06:39:56 UTC
Created attachment 135937 [details]
Panel skew right side

SUMMARY

After getting Plasma 5.21 along with:
KDE Frameworks 5.79.0
Qt 5.15.2 (built against 5.15.2)
The xcb windowing system

When editing the panel, to resize it for example, the right side looks wrong. See screenshot attached. Looks normal after exiting editing mode (pressing X on the top middle bar)

STEPS TO REPRODUCE
1. Right click panel, select Edit Panel (shortcuts ALT+D,ALT+S don't work, will bug that separately)
2. Panel gets skewed on the right side
3. Exit edit mode, restores it

OBSERVED RESULT
Panel gets skewed on right side

EXPECTED RESULT
Panel is rectangular

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210217
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-1-default
OS Type: 64-bit
Graphics Platform: X11
Nvidia driver: 460.39
Comment 1 Andrei Amuraritei 2021-02-20 06:44:02 UTC
Observed behavior is the same on the Wayland session also.
Comment 2 Thiago Sueto 2021-02-20 19:58:44 UTC
Are you referring to the blue outline?
Comment 3 Andrei Amuraritei 2021-02-20 23:45:14 UTC
Hi,

I am referring to the way the panel right corner looks, or if you focus on the blue outline, yeah, on the right side it's thicker.
Comment 4 Nate Graham 2021-02-22 21:49:21 UTC
This is the intentional behavior when you have a Margins Separator widget in the panel, which is a new feature in Plasma 5.21 that is enabled by default for new installs and new panels. Its purpose is to apply larger margins for the items that come after it. So that's what it's doing in your screenshot. The thicker blue lines display the margins which are being applied to the applets in your panel.

If you want your System Tray, Clock, and Show Desktop widgets to use the same margins as the rest of the widgets in the panel, you can remove the Margins Separator item.
Comment 5 Andrei Amuraritei 2021-02-22 22:20:13 UTC
Hi Nate,

Thanks for the explanation. However, I fail to see the point of those "margins". Why was it necessary to skew/add the margins on the panel on the area between Margin separators (the visual effect is not right I would say).

If the intended outcome was just to point our to the user that there's a Margins separator, why not "highlight" it with a different color (desaturate perhaps)?
Comment 6 Nate Graham 2021-02-22 22:44:10 UTC
That's a good point that the margins separator isn't visible at all even in edit mode. We should fix that. Can you file another bug report for it? Thanks!