Bug 462222

Summary: Plasma panel Icons-Only Task Manager widget resizes by a huge number of px at a time
Product: [Plasma] plasmashell Reporter: Frank <frankebay99>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: niccolo.venerandi
Priority: NOR    
Version: 5.26.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: 72px
134px
136px

Description Frank 2022-11-25 00:27:26 UTC
Created attachment 154008 [details]
72px

SUMMARY
The Icons-Only Task Manager widget does not scale pixel by pixel when changing the size of the panel. Instead you have to increase the size say from 72px to 136 until the icons grow and they then do it by that huge 64px step. On the other way, down from 70px you have to hit 56px for the icons to shrink.

This limits a lot the icon size choices for the user.

In between two px marks (say 72 and 136 excluded), the icons only space out from themselves rather than scale their size.

The exact px number varies, not sure on what, maybe the plasma theme or some chosen configurations, sometimes the 136px mark has been 132px that I have seen, but the behavior is the same: you need to change the panel size by a large number in order to get the icons to scale.

Tested in a real machine and tested in a VM with exact same behavior.

STEPS TO REPRODUCE
1. Use any Plasma Style (try with Breeze Dark)
2. Create a panel (either floating or not, both have the same behavior)
3. Add Icons-Only Task Manager widget
4. Enter EDIT MODE
5. Change the size of the panel both sides (up and down)

OBSERVED RESULT
The icons space out (or space in) from themselves until you hit a certain px mark and then they change a lot in size

EXPECTED RESULT
The icons should scale their size on every px step you change, or at least something a lot smaller than 50px.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Attached screenshots
Comment 1 Frank 2022-11-25 00:27:59 UTC
Created attachment 154009 [details]
134px
Comment 2 Frank 2022-11-25 00:28:15 UTC
Created attachment 154010 [details]
136px
Comment 3 veggero 2022-11-25 13:50:12 UTC
This is intentional; if we scaled the size of the icons along with the panel, they would end up being blurry since they wouldn't be pixel-aligned anymore.
Comment 4 Frank 2022-11-25 14:21:16 UTC
Hi Nicco!

I knew you'd respond, I follow all your youtube videos, you are awesome, tnx for your work and clear explanations (both in videos and here)!

I understand your explanation about scaling. That's how it is, ok. You know I spent a lot of time finding something about this and no documentation or forum threads gave me any detail, which is why I ended up here. Sorry for reporting something that was intentional in the 1st place.

I will just point out that Latte-Dock does scale perfectly the icons without getting blurry. I guess the framwork/architecture behing Latte is much different than Plasma Panel, but if in Plasma 6 this can evolve, I'm sure you will remember. :)

Thanks again! :)
Comment 5 veggero 2022-11-25 14:28:32 UTC
(In reply to Frank from comment #4)
> Hi Nicco!
> 
> I knew you'd respond, I follow all your youtube videos, you are awesome, tnx
> for your work and clear explanations (both in videos and here)!
> 
> I understand your explanation about scaling. That's how it is, ok. You know
> I spent a lot of time finding something about this and no documentation or
> forum threads gave me any detail, which is why I ended up here. Sorry for
> reporting something that was intentional in the 1st place.
> 
> I will just point out that Latte-Dock does scale perfectly the icons without
> getting blurry. I guess the framwork/architecture behing Latte is much
> different than Plasma Panel, but if in Plasma 6 this can evolve, I'm sure
> you will remember. :)
> 
> Thanks again! :)

Hey :) I'm not sure how Latte does it; maybe the blurry-ness is less noticeable at higher icon sizes? I don't know. If you manage to investigate I'll be happy to learn if that's the case, otherwise I'll try if I get any time (probably not soon :-/)