Bug 462336 - Panel widgets not scaled evenly
Summary: Panel widgets not scaled evenly
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 5.26.3
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-28 01:16 UTC by radimir.cacic09
Modified: 2022-11-29 03:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
KDE default panel (155.68 KB, image/png)
2022-11-28 01:16 UTC, radimir.cacic09
Details

Note You need to log in before you can comment on or make changes to this bug.
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.