Bug 432035 - Panel: Blurred Icons and aliased text with very thin panels on a low DPI screen
Summary: Panel: Blurred Icons and aliased text with very thin panels on a low DPI screen
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.20.90
Platform: Arch Linux Linux
: HI normal
Target Milestone: 1.0
Assignee: veggero
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-01-24 13:42 UTC by Giuseppe Calà
Modified: 2021-01-27 18:25 UTC (History)
2 users (show)

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


Attachments
A panel with height set to 22px (22.41 KB, image/png)
2021-01-24 13:42 UTC, Giuseppe Calà
Details
Blurred icons in panel at 22 px size (11.18 KB, image/png)
2021-01-26 19:50 UTC, Víctor
Details
Blurred icons in panel at 22 px size (2.19 MB, image/gif)
2021-01-26 23:17 UTC, Víctor
Details
fonts settings (38.20 KB, image/png)
2021-01-27 08:19 UTC, Giuseppe Calà
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Calà 2021-01-24 13:42:44 UTC
Created attachment 135129 [details]
A panel with height set to 22px

Using a panel height of 22 px makes icons in systray blurry and global menu text aliased


STEPS TO REPRODUCE
1. Clic dx on a panel and select Edit panel
2. Set an height of 22px
3. Confirm

OBSERVED RESULT
Blurry icons and aliased text

EXPECTED RESULT
sharp icons and text

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Víctor 2021-01-26 19:50:33 UTC
Created attachment 135223 [details]
Blurred icons in panel at 22 px size

Operating System: KDE neon Testing Edition
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-64-generic
OS Type: 64-bit
Processors: 6 × AMD Phenom(tm) II X6 1045T Processor
Memory: 7,8 GiB of RAM
Graphics Processor: GeForce GTX 750/PCIe/SSE2
Comment 2 Nate Graham 2021-01-26 21:16:03 UTC
Are you using a fractional scale factor? Does it only happen at 22px size? What about 20 or 24? Is this s regression from Plasma 5.20?
Comment 3 Víctor 2021-01-26 23:10:21 UTC
(In reply to Nate Graham from comment #2)
> Are you using a fractional scale factor? Does it only happen at 22px size?
> What about 20 or 24? Is this s regression from Plasma 5.20?

From 20 to 27 px the icons in system tray blurry and global menu text aliased. Only looks fine when set height to 28 px and above. I'm not using any fractional scale factor.
Comment 4 Víctor 2021-01-26 23:17:11 UTC
Created attachment 135224 [details]
Blurred icons in panel at 22 px size
Comment 5 Giuseppe Calà 2021-01-27 08:19:27 UTC
(In reply to Nate Graham from comment #2)
> Are you using a fractional scale factor? Does it only happen at 22px size?
> What about 20 or 24? Is this s regression from Plasma 5.20?

I'm not using any scale factor (1920x1080 resolution on a 24" monitor)

At 20px same problem, at 24px looks fine.

If of any help: I'm using "Noto Sans 10pt" as system font (image attached)
Comment 6 Giuseppe Calà 2021-01-27 08:19:49 UTC
Created attachment 135229 [details]
fonts settings
Comment 7 Nate Graham 2021-01-27 16:31:18 UTC
Ah yes, at this very thin panel height, everything gets squeezed a bit to retain margins.

I don't notice this with a HiDPI screen and a 200% scale factor, but I imagine it's visible with a lower DPI screen at 100% scale.

Probably the new margins code triggered this at a greater panel thickness than before. Niccolò, would you mind taking a look?
Comment 9 veggero 2021-01-27 16:34:06 UTC
Or, huh, it should. Could you test if it did fix it?
Comment 10 Nate Graham 2021-01-27 16:47:42 UTC
I thought that was just for left panels.

Also that commit only went into 5.22.

Finally, I can't test because my screen DPI makes this work fine for me with a horizontal panel. :)
Comment 11 Giuseppe Calà 2021-01-27 17:06:15 UTC
!318 fixed the issue for me; both 20px and 22px height look fine
Comment 12 veggero 2021-01-27 17:08:19 UTC
Fixed in 5.22 by https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/318