Bug 500883

Summary: plasma-mobile screen corners and round displays
Product: [Plasma] plasma-mobile Reporter: lainlives
Component: ShellAssignee: Plasma Mobile Bugs <plasma-mobile-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: carl, espidev
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description lainlives 2025-03-01 06:57:58 UTC
Plasma-mobile on my OP6t cuts off the corner taskpanel buttons and the clock and battery %

I worked around by adding a 30px margin to the anchors of the elements on the root rectangle

A proper fix would be adding an option to the shell config to pad the corners, maybe an option for top and bottom padding separately as non-uniform corner curves are a thing I've already encountered outside of phones.

Linux: 6.13.0-rc2
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Devin Lin 2025-03-01 16:45:47 UTC
We currently don't have a framework for doing this yet, because we need to take into account the orientation of the device as well.
Comment 2 lainlives 2025-03-03 10:57:25 UTC
Amusingly my workaround works perfectly on all 4 orientations.  Maybe a dummy 0px wide can be added to either side with its width being a variable definable somewhere in the shell.
Comment 3 lainlives 2025-03-03 10:59:13 UTC
Yeah actually that would work well upon further thought if its offset is in raw pixels, as they are generally circular corners instead of ovular so the same offset defined in pixels works in landscape or portrait.