-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panel icon is blurry #9985
Comments
tdesktop uses this algorithm to get icon: tdesktop/Telegram/SourceFiles/platform/linux/main_window_linux.cpp Lines 224 to 239 in feff514
As you can see, it tries to get exactly needed size at first, but if icon theme doesn't have it, it gets the biggest size and scales it. Maybe your icon theme just doesn't contain needed size? |
These are the files in the icon theme:
I tried setting the panel icon size to 22 or 24, restarting Telegram in between setting changes. The icon is still blurry. |
I'm happy to help reproduce the issue, if you can guide me. I have no experience in tdesktop code. |
Do you have a tdesktop-trayicon-* file in /run/user/$UID (where $UID is UID of your user)? |
No.
|
There's |
What logs should I report? I tried simply opening the app from the command line, this is what happens:
If I run it with sudo the icon actually appears clear... |
~/.local/share/TelegramDesktop/log.txt |
|
Could please you show your list of panel applets? |
I hope this answers... if not, please point me to what I should report you
|
vokoscreen-2020-12-23_23-34-01.mp4 |
Oh. Its really, really weird. I thought that the XML is wrong, but looks like you really have three tray applets at once. |
Yes, I know, tray icons are a mess... Most of my applications (Telegram included) use |
I reproduced, it's a |
Thank you! Just a simple question: can Telegram work around this bug? Seems like other apps did that too... |
Because both |
Other applications don't have a counter and just supplying an icon name. Since tdesktop generates icon on the fly for the counter, the only way is to supplying pixmaps. |
If you remove all tray applets except of |
electron... |
Is there no way that telegram could use |
I think you should ask (and maybe help) |
I posted in statusnotifier bug list. Something I was wondering though: if this were a problem with statusnotifier downscaling the wrong image, there should be one icon size that makes Telegram's icon nice and clean. I tried setting the panel icon size to various sizes and the icon is always blurrier than others. |
Maybe your icon theme doesn't have 48px size? It's the biggest that Telegram provides and if statusnotifier uses it, it will be upscaled by Telegram if icon theme doesn't have such size and right after that downscaled by statusnotifier. |
Looks like I found what's the problem: QIcon::actualSIze doesn't work as expected |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
The panel icon should be clear
Actual behaviour
The panel icon is blurry
Configuration
Operating system: Xubuntu 20.04.1 LTS
Version of Telegram Desktop: 2.5.1
Installation source (Linux Only): the official website
Used theme: Papirus
The Telegram icon is evidently more blurry than other icons.
The text was updated successfully, but these errors were encountered: