Bug 426978 - System Tray icon spacing is larger than before when not using Qt scaling
Summary: System Tray icon spacing is larger than before when not using Qt scaling
Status: RESOLVED DUPLICATE of bug 381794
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 5.19.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-09-26 02:46 UTC by tildearrow
Modified: 2021-07-26 18:35 UTC (History)
1 user (show)

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


Attachments
Figure 1 (17.61 KB, image/png)
2020-09-26 02:46 UTC, tildearrow
Details
Figure 2 (41.82 KB, image/png)
2020-09-26 02:47 UTC, tildearrow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tildearrow 2020-09-26 02:46:54 UTC
Created attachment 131942 [details]
Figure 1

SUMMARY
Apparently, since Plasma 5.19.90 the icon spacing got worse, being much larger than usual (essentially the size of an icon by now).
This wasn't the case in previous versions of Plasma.

Resizing the system tray does not help as it appears to be a hard-coded value (isn't this KDE? I should be able to set this spacing...)

STEPS TO REPRODUCE
1. Set global scaling to 200%
2. Move the System Tray to the desktop (it should not be under a panel)

OBSERVED RESULT
See Figure 1.

EXPECTED RESULT
See Figure 2.


SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Linux linux 5.4.61-rt37-1-rt-lts #1 SMP PREEMPT_RT Sat, 12 Sep 2020 21:01:23 +0000 x86_64 GNU/Linux/5.19.90
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
There may be a chance that this issue is caused because I am using a HiDPI monitor (therefore set scaling to 200%) and I am aware of Plasma's caveats when scaled...
Comment 1 tildearrow 2020-09-26 02:47:15 UTC
Created attachment 131943 [details]
Figure 2
Comment 2 Nate Graham 2020-09-26 15:54:29 UTC
We did slightly increase the spacing by like one pixel for various reasons, but not by as much as you're seeing.

Can you test again after doing the following:
1. Run `rm ~/.cache/plasma*; PLASMA_USE_QT_SCALING=1 plasmashell --replace`
2. Set your Plasma theme to the default Breeze theme and then run `rm ~/.cache/plasma*; plasmashell --replace`
Comment 3 tildearrow 2020-09-27 02:28:18 UTC
> 1. Run `rm ~/.cache/plasma*; PLASMA_USE_QT_SCALING=1 plasmashell --replace`

Effectively, doing that fixes the issue (it does make the icons slightly bigger but it's much better).
I don't think there is any way to have Plasma use the Qt scaling value at login time though...

> 2. Set your Plasma theme to the default Breeze theme and then run `rm ~/.cache/plasma*; plasmashell --replace`

Works as well.
Comment 4 Nate Graham 2020-09-27 03:15:18 UTC
Thanks, Yet another example of Bug 426674, then. I wonder why this regressed so severely recently. At least it's fixed now...

*** This bug has been marked as a duplicate of bug 426674 ***
Comment 5 tildearrow 2020-09-27 03:31:51 UTC
Sorry but this issue should not be marked as duplicate, because the bug still persists after clearing the cache again and not using PLASMA_USE_QT_SCALING (which Plasma doesn't set when logging in due to its experimental status).
Comment 6 Nate Graham 2020-09-27 03:57:56 UTC
Oh, I thought the cache clearing was the common denominator, not the use of Qt scaling.

Can you confirm that when NOT using Qt scaling, it looks bad even after clearing the cache again and setting the Breeze theme?
Comment 7 tildearrow 2020-09-27 04:00:31 UTC
(In reply to Nate Graham from comment #6)
> Oh, I thought the cache clearing was the common denominator, not the use of
> Qt scaling.
> 
> Can you confirm that when NOT using Qt scaling, it looks bad even after
> clearing the cache again and setting the Breeze theme?

Done, confirmed still reproducing under the aforementioned conditions.
Comment 8 Nate Graham 2020-09-27 04:03:43 UTC
Darn.

This situation with Qt scaling is intensely frustrating to me. It's used by default on Wayland, but not X11--even though it results in Plasma generally looking much better on X11 when scaled.
Comment 9 Nate Graham 2020-11-09 17:55:45 UTC
Not sure this is fixable in a generic way, sorry. :(

*** This bug has been marked as a duplicate of bug 356446 ***
Comment 10 Nate Graham 2021-07-26 18:35:49 UTC

*** This bug has been marked as a duplicate of bug 381794 ***