Bug 483022 - Icons-Only Task Manager scaling misbehavior/inconsistency on Side Position Panel
Summary: Icons-Only Task Manager scaling misbehavior/inconsistency on Side Position Panel
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-09 19:30 UTC by Frank
Modified: 2024-03-18 13:24 UTC (History)
3 users (show)

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


Attachments
Machine1-Plasma6-bottom (66.05 KB, image/png)
2024-03-09 19:30 UTC, Frank
Details
Machine1-Plasma6-side (51.45 KB, image/png)
2024-03-09 19:31 UTC, Frank
Details
Machine2-Plasma5-side (44.24 KB, image/png)
2024-03-09 19:31 UTC, Frank
Details
Machine2-Plasma6-side-Scaleddown (38.10 KB, image/png)
2024-03-09 19:31 UTC, Frank
Details
Machine2-Plasma6-side (64.46 KB, image/png)
2024-03-09 19:32 UTC, Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank 2024-03-09 19:30:39 UTC
Created attachment 166817 [details]
Machine1-Plasma6-bottom

SUMMARY, Observed result and Expected result

Since Plasma 6, IOTM scales almost perfectly with the Panel size.

However this causes some issues and inconsistencies and has a limiting factor.

1- The icons are too big for the Panel size, unless you use small Panel size, which is small enough so that it's less enjoyable for UX perspective. At a certain smaller size, the icons shrink more relative to the Panel size, which frees up space inside the Panel, but that size is too small. When you increase size from that point, icons increase more than Panel to take all the space and from there they scale 1-1 relative to Panel size. On one machine, for example, in Plasma 5 I was using 100px for a Panel, but on Plasma 6 I need to reduce to 66 in order to free up space around the icons. Obviously those got smaller too!

This limits the use of custom Themes because it removes a lot of space around the icons.
I could not find a way to change IOTM size relative to Panel size.

2- When moving the Panel to the either side (compared to bottom or top), they take even more space on either side of the icons, which again limits even more than issue #1 because almost anything you try to draw on the sides of the icons is drawn under the face of the icons.

No matter where the Panel is located, icons should have the same amount of space all around to keep consistency.
That amount of space should be sufficient to allow drawing indicators around the icons, like SVG elements "focus-bottom, focus-right, focus-left, focus-top", etc..


Screen resolution does not seem to affect this, the same behaviors are observed.
Plasma Style (Breeze or other ported to Plasma 6) does not seem to affect this either, the same behaviors are observed.


The following files will be attached:
Machine1-Plasma6-bottom.png
Machine1-Plasma6-side.png
Machine2-Plasma5-side.png
Machine2-Plasma5-side-Scaleddown.png
Machine2-Plasma6-side.png



SOFTWARE/OS VERSIONS
Windows: Not at all
macOS: Not either
Linux/KDE Plasma: 6.0.1
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 Frank 2024-03-09 19:31:12 UTC
Created attachment 166818 [details]
Machine1-Plasma6-side
Comment 2 Frank 2024-03-09 19:31:30 UTC
Created attachment 166819 [details]
Machine2-Plasma5-side
Comment 3 Frank 2024-03-09 19:31:53 UTC
Created attachment 166820 [details]
Machine2-Plasma6-side-Scaleddown
Comment 4 Frank 2024-03-09 19:32:16 UTC
Created attachment 166821 [details]
Machine2-Plasma6-side
Comment 5 Nate Graham 2024-03-11 23:05:53 UTC
I'm afraid it's intentional that Task Manager icons scale with panel size. There are two ways you can change this:
1. Surround the Task Manager with a "margins Separator" widgets
2. Choose a theme with larger margins
3. Edit your preferred theme to have larger margins
Comment 6 Frank 2024-03-12 00:16:07 UTC
> 3. Edit your preferred theme to have larger margins

Thanks, this is my preferred option.

Changing the hint-[direction]-margin in panel-background.svgz does change the margins on pretty much all widgets (App Launcher, Sys Tray, Digital Clock), but does not affect IOTM.

Is IOTM working differently than other widgets in that manner?
Comment 7 Niccolò Venerandi 2024-03-18 13:24:59 UTC
(In reply to Frank from comment #6)
> > 3. Edit your preferred theme to have larger margins
> 
> Thanks, this is my preferred option.
> 
> Changing the hint-[direction]-margin in panel-background.svgz does change
> the margins on pretty much all widgets (App Launcher, Sys Tray, Digital
> Clock), but does not affect IOTM.
> 
> Is IOTM working differently than other widgets in that manner?

Yep, you want to change the margin items in the tasks.svg file. Or, rather, you want to create them, since they don't exist (and the width/height of the north/east/… items is thus used as margin)