Bug 511677

Summary: Panel size goes haywire in PNG-using Plasma Styles such as Fluffy Bunny
Product: [Plasma] plasmashell Reporter: The Feren OS Dev <ferenosdev>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev, niccolo.venerandi
Priority: NOR    
Version First Reported In: 6.5.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Test Plasma Style
Test Plasma Style

Description The Feren OS Dev 2025-11-05 15:02:11 UTC
Created attachment 186522 [details]
Test Plasma Style

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
The panel size in Plasma Styles now goes haywire whenever using Plasma Styles that have PNG embeds in their panel-background.svg, whom have the respective background part IDs assigned to themselves, such as with Fluffy Bunny and the attached test style.

STEPS TO REPRODUCE
1. Apply Fluffy Bunny or the attached test style
2. Replace plasmashell
3. Watch panel randomly become massive sizes such as 478px despite not needing to be

OBSERVED RESULT
The panel becomes way larger, in my tests consistently 478px, upon plasmashell launching even though it was a normal size, such as 40px, prior to the relaunch. Additionally, in some cases it refuses to be shrank lower than the enormously huge size, and in some cases also the panel toolbox toggle randomly spans the entire 'right' piece's size rather than being its usual size - it's all random-chance.

EXPECTED RESULT
As it was prior - panel does not decide it wants to be stupidly huge, and the toolbox toggle is always its usual size.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 The Feren OS Dev 2025-11-05 15:40:00 UTC
Created attachment 186523 [details]
Test Plasma Style
Comment 2 The Feren OS Dev 2025-11-05 16:07:00 UTC
Seems to mainly be an issue with Vertical Panels.
Comment 3 TraceyC 2025-11-26 23:36:17 UTC
On git-master, using the attached test theme, I can confirm this. For me, with a top, left and bottom panel, the bottom panel was re-sized to be huge when trying to set it to 48
Also, in the Panel Settings, the number in Panel Height is invisible