Bug 432444

Summary: Blurry icons on latte tasks (on latest -git)
Product: [Unmaintained] lattedock Reporter: David Rubio <david.alejandro.rubio>
Component: plasmoidAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David Rubio 2021-02-03 00:57:42 UTC
SUMMARY
Last working commit: d46864e0ade1f0edee7a6bc4b9f6a219baea79aa

Having a dock with absolute size 48px should show perfectly scaled 48x icons on the tasks applet. In latte-dock git, probably after ba502fa5951f9c5688d0ff6db06a25883cca5d7d, the icon size is not actually 48x (maybe 47x?) and the icon is blurry in result.

STEPS TO REPRODUCE
1. Dock with absolute size 48x, padding shouldn't matter, but I use 15%


OBSERVED RESULT
Blurry icons

EXPECTED RESULT
Icons look sharp just like in the last working commit (d46864e0ade1f0edee7a6bc4b9f6a219baea79aa)

SOFTWARE/OS VERSIONS
Linux: 5.10.12
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.78
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Went back to commit d46864e0ade1f0edee7a6bc4b9f6a219baea79aa and it's fine. 
Tested 8ae3b4ecfb08c4c90fef3445aa1b1863b951644d and it's broken. It probably broke before that commit, but I didn't try compiling every commit in between.
Comment 1 David Rubio 2021-02-03 01:01:36 UTC
On d46864e0ade1f0edee7a6bc4b9f6a219baea79aa setting the dock size to 47x or 46x (or 49x) still results in a midly-sharp icon. On latest git it's definitely way way blurrier.
Comment 2 Michail Vourlakos 2021-02-03 06:33:43 UTC
it comes from Items shadows. If you disable them they will look sharp. I will try to track it down.
Comment 3 Michail Vourlakos 2021-02-03 17:39:54 UTC
please try again, it should be fixed now. The should look crispy when the tasks an not hovered and when a task is fully zoomed through the parabolic effect.
Comment 4 David Rubio 2021-02-03 18:53:33 UTC
(In reply to Michail Vourlakos from comment #3)
> please try again, it should be fixed now. The should look crispy when the
> tasks an not hovered and when a task is fully zoomed through the parabolic
> effect.

Well, now they're not blurry, but it's definitely still not quite there: https://i.imgur.com/8R15adr.png

That icon definitely shouldn't look like that. Went back to d46864e0ade1f0edee7a6bc4b9f6a219baea79aa and it looks fine. 

Well. Might be worth another bug report since now it's not blur, it's... jaggy?
Comment 5 Michail Vourlakos 2021-02-03 18:58:33 UTC
yeah open it...
and we can forward it to Plasma afterwards. Latte is now using PlasmaCore.IconItems in roundToIconSize:false state so Latte can not fix this any more... 

Personally I can not do any better.
Comment 6 David Rubio 2021-02-03 19:01:05 UTC
(In reply to Michail Vourlakos from comment #5)
> yeah open it...
> and we can forward it to Plasma afterwards. Latte is now using
> PlasmaCore.IconItems in roundToIconSize:false state so Latte can not fix
> this any more... 
> 
> Personally I can not do any better.

It might be on latte to be fair. The icons look *okay*, but if you hover over them then the icon looks bad and goes all jaggy and artifact-y (Parabolic effect issue?). I'll open the bug report with more details and a video.