Bug 462336

Summary: Panel widgets not scaled evenly
Product: [Plasma] plasmashell Reporter: radimir.cacic09
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: niccolo.venerandi
Priority: NOR    
Version First Reported In: 5.26.3   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KDE default panel

Description radimir.cacic09 2022-11-28 01:16:58 UTC
Created attachment 154096 [details]
KDE default panel

SUMMARY

Panel widgets not scaled evenly.

STEPS TO REPRODUCE
1. Add color picker and a few system monitor sensor widgets to default plasma panel
2. See how system tray icons are tiny compared to system monitor sensor, color picker and date widgets

OBSERVED RESULT

System tray icons are tiny compared to system monitor sensor, color picker and date widgets.

EXPECTED RESULT

I'd expect system tray icons to scale evenly with system monitor sensor, color picker and date widgets.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.26
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 5.15.0-53-generic (64-bit)
Graphics Platform: X11
Comment 1 radimir.cacic09 2022-11-28 02:34:33 UTC
Update: I realized that system tray widget itself has Panel Icon Size options:
 - Small
 - Scale height with panel

After fiddling a bit more with my panel, I realized that the functionality is quite fragmented and complex.
For example:
 - System tray widget has sizing option
 - System monitor sensor widget always takes the whole height
 - Date and time widget/color picket scales with them a bit weird (i.e. color picker scales up in size on 44px+ panel height while date and time widget increases in size dynamically/on each panel increase)

I feel like this behavior should be much more simple and consistent.
Comment 2 veggero 2022-11-28 16:10:53 UTC
The fact that the system tray doesn't scale with panel height is intentional; all other widgets (all of them) currently scale with the panel, so they're all consistent with each other. Of course, it depends on the content on some extent; as an example, you cannot provide icons at *any* size, as that would cause blurring. So, we draw icons as big as possible with the given size. Other widgets which don't have that issue just draw the content covering all the available space.
Comment 3 radimir.cacic09 2022-11-29 03:30:02 UTC
I guess looking back that makes sense. Blurred icons would definitely be worse.
I appreciate the fast response.