Bug 460695

Summary: Ability to size spacers based on percentage of panel width
Product: [Plasma] plasmashell Reporter: Techognito <kde.whxeb>
Component: Panel Spacer widgetAssignee: veggero <niccolo.venerandi>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: nate, niccolo.venerandi, niccolo
Priority: NOR    
Version First Reported In: 5.26.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Techognito 2022-10-19 06:23:38 UTC
SUMMARY
Recreating this request as https://bugs.kde.org/show_bug.cgi?id=460638, turned in to a bug about flexible spacers.

I would like the ability to set a panel spacer to a set percentage, so that if the monitor width changes, the distances of widgets are relative in the same space.
Comment 1 veggero 2022-10-19 08:19:16 UTC
Is this really necessary if https://bugs.kde.org/show_bug.cgi?id=460638 is fixed?
Comment 2 Techognito 2022-10-19 13:01:56 UTC
Well, yes and no.
It is still a feature that would be nice to have, but with flexible spacers working I am able to customize the panel how I wanted.

I will leave it up to you, if you think this would make the panel too complicated and too feature-rich (harder to maintain). I am fine with closing the request. However, if it is not too much work, I believe percentage would be easier than pixels for users (opinion based, might not be true for everyone).
Comment 3 Nate Graham 2022-10-19 17:58:40 UTC
Your choice, Niccolò.
Comment 4 veggero 2022-11-16 15:34:38 UTC
Will do
Comment 5 Niccolò Venerandi 2024-08-15 13:51:01 UTC
Well, eventually I didn't, and looking back I'd like to avoid this. The reason is purely because the spacer options are necessarily hardcoded within the panel, and I'd like to keep those as simple as possible, code-wise. There also does not seem to be much interest in it.