Bug 479564 - Icons noticeably blurrier with fractional scaling in Plasma 6 compared to Plasma 5
Summary: Icons noticeably blurrier with fractional scaling in Plasma 6 compared to Pla...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.248.0
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: 1.0
Assignee: kdelibs bugs
URL:
Keywords: qt6
: 477051 479529 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-09 06:03 UTC by siddharth.manthan
Modified: 2024-09-05 02:00 UTC (History)
9 users (show)

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


Attachments
Plasma 6 UI (1.45 MB, image/png)
2024-01-09 06:03 UTC, siddharth.manthan
Details
Plasma 5 UI (2.54 MB, image/png)
2024-01-09 06:03 UTC, siddharth.manthan
Details
Plasma 6 UI without scaling (1.55 MB, image/png)
2024-01-09 06:21 UTC, siddharth.manthan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description siddharth.manthan 2024-01-09 06:03:18 UTC
Created attachment 164770 [details]
Plasma 6 UI

SUMMARY
The icons and quite possibly the UI of plasma 6 is noticeably blurrier. On plasma 5 it was sharp. It might be related to fractional scaling.

Please see the attached screenshots for comparision. Check the icons in Icons on systray (most noticeable), kwrite, settings, application menu

STEPS TO REPRODUCE
1. Set fractional scaling to 125% (at 1080p resolution ?)

OBSERVED RESULT
Blurry UI or Icons

EXPECTED RESULT
Sharp UI and Icons

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide
(available in About System)
KDE Plasma Version: Plasma 6 Beta 2
Comment 1 siddharth.manthan 2024-01-09 06:03:56 UTC
Created attachment 164771 [details]
Plasma 5 UI
Comment 2 siddharth.manthan 2024-01-09 06:04:44 UTC
*** Bug 479529 has been marked as a duplicate of this bug. ***
Comment 3 siddharth.manthan 2024-01-09 06:21:29 UTC
Created attachment 164772 [details]
Plasma 6 UI without scaling

Without scaling the icons and text are noticeably sharper. While some blur is expected at higher scaling, the blur is far more than plasma 5.
Comment 4 siddharth.manthan 2024-01-09 06:27:37 UTC
When viewing the image, kindly adjust the zoom levels as per your resolution to make the image not blurry.
Comment 5 equeim 2024-01-10 19:42:16 UTC
I think the reason for change between 5 and 6 is that in 5 Plasma's UI (unlike for normal apps) didn't use normal UI scaling and only scaled fonts. While 6 scales everything including icons. With 125% scale the icons become blurry because while icons are vectors they are created with the virtual pixel grid in mind and since 125% scaling is so close to 100% it messes up with their rasterization resulting in blurry half-pixels. I don't know whether it's possible to improve this (except buying 4K monitor which Apple tells to their customers). Though visually Windows 11 seems to handle 125% scaling better than Plasma (at least in UWP/WinUI apps). So maybe some tricks are possible.
Comment 6 equeim 2024-01-10 19:44:56 UTC
(In reply to equeim from comment #5)
> I think the reason for change between 5 and 6 is that in 5 Plasma's UI
> (unlike for normal apps) didn't use normal UI scaling and only scaled fonts.
> While 6 scales everything including icons. With 125% scale the icons become
> blurry because while icons are vectors they are created with the virtual
> pixel grid in mind and since 125% scaling is so close to 100% it messes up
> with their rasterization resulting in blurry half-pixels. I don't know
> whether it's possible to improve this (except buying 4K monitor which Apple
> tells to their customers). Though visually Windows 11 seems to handle 125%
> scaling better than Plasma (at least in UWP/WinUI apps). So maybe some
> tricks are possible.

In fact, macOS simply doesn't support fractional scaling below 200%. Unfortunately that's not a solution for PCs where 1440p monitors for which 125/150% scaling is desired are common.
Comment 7 siddharth.manthan 2024-01-10 20:41:18 UTC
(In reply to equeim from comment #5)
> I think the reason for change between 5 and 6 is that in 5 Plasma's UI
> (unlike for normal apps) didn't use normal UI scaling and only scaled fonts.
> While 6 scales everything including icons. With 125% scale the icons become
> blurry because while icons are vectors they are created with the virtual
> pixel grid in mind and since 125% scaling is so close to 100% it messes up
> with their rasterization resulting in blurry half-pixels. I don't know
> whether it's possible to improve this (except buying 4K monitor which Apple
> tells to their customers). Though visually Windows 11 seems to handle 125%
> scaling better than Plasma (at least in UWP/WinUI apps). So maybe some
> tricks are possible.

Will it be possible to add an option that does not scale everything. Only scale font ?
Comment 8 equeim 2024-01-10 23:54:41 UTC
(In reply to siddharth.manthan from comment #7)
> (In reply to equeim from comment #5)
> > I think the reason for change between 5 and 6 is that in 5 Plasma's UI
> > (unlike for normal apps) didn't use normal UI scaling and only scaled fonts.
> > While 6 scales everything including icons. With 125% scale the icons become
> > blurry because while icons are vectors they are created with the virtual
> > pixel grid in mind and since 125% scaling is so close to 100% it messes up
> > with their rasterization resulting in blurry half-pixels. I don't know
> > whether it's possible to improve this (except buying 4K monitor which Apple
> > tells to their customers). Though visually Windows 11 seems to handle 125%
> > scaling better than Plasma (at least in UWP/WinUI apps). So maybe some
> > tricks are possible.
> 
> Will it be possible to add an option that does not scale everything. Only
> scale font ?

You can set scaling to 100% and just increase font size directly instead (in font settings). However this won't work as expected if you have multiple monitors with different pixel densities since font size is global.
Comment 9 siddharth.manthan 2024-01-11 05:54:37 UTC
(In reply to equeim from comment #8)
> (In reply to siddharth.manthan from comment #7)
> > (In reply to equeim from comment #5)
> > > I think the reason for change between 5 and 6 is that in 5 Plasma's UI
> > > (unlike for normal apps) didn't use normal UI scaling and only scaled fonts.
> > > While 6 scales everything including icons. With 125% scale the icons become
> > > blurry because while icons are vectors they are created with the virtual
> > > pixel grid in mind and since 125% scaling is so close to 100% it messes up
> > > with their rasterization resulting in blurry half-pixels. I don't know
> > > whether it's possible to improve this (except buying 4K monitor which Apple
> > > tells to their customers). Though visually Windows 11 seems to handle 125%
> > > scaling better than Plasma (at least in UWP/WinUI apps). So maybe some
> > > tricks are possible.
> > 
> > Will it be possible to add an option that does not scale everything. Only
> > scale font ?
> 
> You can set scaling to 100% and just increase font size directly instead (in
> font settings). However this won't work as expected if you have multiple
> monitors with different pixel densities since font size is global.

I do have multiple monitors but there are other issues with this approach.

I tried this approach. In android studio the font size increased but the size of other elements did not which make the overall UI look out of proportion.

In chromium it is necessary to use 1.25 scaling to make pages readable. Combine that with increased font size, the Address bar and tab title font look too big. 

Most electron apps don't follow the font settings and don't provide a way to change it either. These apps look too small without global scaling.
Comment 10 siddharth.manthan 2024-01-11 06:00:25 UTC
Global fractional scaling is necessary on small high resolution screens (like in laptops). Without it everything is too small.
Comment 11 Nate Graham 2024-01-11 17:23:34 UTC
You'll also notice that the icons' iconography itself is different, which may account for a certain amount of this.

In Plasma 5 were you using Wayland? Or only in Plasma 6?
Comment 12 siddharth.manthan 2024-01-11 19:14:26 UTC
(In reply to Nate Graham from comment #11)
> You'll also notice that the icons' iconography itself is different, which
> may account for a certain amount of this.
> 
> In Plasma 5 were you using Wayland? Or only in Plasma 6?

Yes, the icons are different. I have attached unscaled plasma 6 screenshot tk make comparision easier.

Wayland on both. Fedora enables it by default.
Comment 13 Nate Graham 2024-01-11 23:38:38 UTC
Thanks.
Comment 15 Patrick Silva 2024-02-06 14:05:49 UTC
*** Bug 477051 has been marked as a duplicate of this bug. ***