Bug 460159 - With a dark color scheme, Telegram's Tray icon color switches back to black after the app has been running for some time
Summary: With a dark color scheme, Telegram's Tray icon color switches back to black a...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 460182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-09 12:21 UTC by php4fan
Modified: 2022-12-31 09:33 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Telegram flatpak (4.61 KB, image/png)
2022-10-19 16:38 UTC, Faustino L. Padilla
Details
installed package (screenshot) (21.06 KB, image/png)
2022-10-19 20:41 UTC, php4fan
Details
Arch Linux Package (276.60 KB, image/png)
2022-10-19 23:15 UTC, Faustino L. Padilla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description php4fan 2022-10-09 12:21:05 UTC
Sorry if this is not the correct component, it's difficult to choose the right one especially when the description in most cases is just a repetition of the component name, or even less.

SUMMARY

On Manjaro Linux KDE Edition, I have Telegram Desktop installed via the AUR.

It has a tray icon which is white, as one would expect given it's on a dark background.

However, after some time, seemingly randomly, it switches to a black icon, which is almost invisible on that same dark background.

I initially assumed it was a bug in the application itself, or perhaps the AUR package, but here's what the Telegram developers said:

> This icon recoloring happens on Plasma side, so this is likely to be a Plasma bug

> As I said, Telegram is unaware of this recoloring, thus I don't imagine what we can do here.

(to which I objected that it happens with no other icon besides theirs, and interestingly they replied)

> It's the other way around I believe. The svg on hard disk is black and Plasma applies its black magic to some of them to make them follow the color scheme. It's a non-standard thing and no other DE does this.

STEPS TO REPRODUCE
1. install Telegram Desktop
2. run Telegram Desktop 
3. wait

OBSERVED RESULT

The tray icon should always remain visible

EXPECTED RESULT

Sometimes the tray icon, which is normally white, becomes black, and therefore almost invisible on the dark background.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.15.71-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Manufacturer: LENOVO
Product Name: 81WE
System Version: IdeaPad 3 15IIL05
Comment 1 Nate Graham 2022-10-10 21:41:30 UTC
*** Bug 460182 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2022-10-10 21:41:57 UTC
Duplicate report is also using Telegram from AUR, hmm.
Comment 3 Faustino L. Padilla 2022-10-19 14:19:47 UTC
I managed to replicate this bug 100% times. You can see the proper white Telegram icon in the system tray just when you don't have internet connection. Try disabling your wifi or internet adapter, reboot your machine, and it works properly, but as soon as you connect to the internet, it becomes dark again.
Comment 4 Nate Graham 2022-10-19 16:03:43 UTC
I can't reproduce that with Telegram from the Fedora package, Are you using Telegram from AUR as well?
Comment 5 php4fan 2022-10-19 16:28:57 UTC
For what it's worth: I use the package from AUR, I experience the issue pretty often (daily or weekly), but I am not able to reproduce it at will as described in comment 3, or in any other way that I know of, for that matter. 

I suspect the issue is triggered by some state change that causes the tray icon to change, but it's not just _any_ icon change. I have seen the icon change without becoming black.
Comment 6 php4fan 2022-10-19 16:31:55 UTC
> Duplicate report is also using Telegram from AUR, hmm.

> (replying to comment 3) Are you using Telegram from AUR as well?

The author of comment 3 is the author of the duplicate report, who said they're using the package from AUR.
Comment 7 Nate Graham 2022-10-19 16:37:44 UTC
Any ideas, Antonio?
Comment 8 Faustino L. Padilla 2022-10-19 16:38:02 UTC
Created attachment 153036 [details]
Telegram flatpak

I just installed the flatpak version (which is supported by Telegram if I'm not wrong) and something very interesting happens. The flatpak icon is the traditional blue telegram icon, but as soon as I logged into my account on the flatpak version, the AUR package colored properly now!
Take a look at the attachment.
Comment 9 Faustino L. Padilla 2022-10-19 16:41:32 UTC
I uninstalled the flatpak package now and the bug still happens.
Comment 10 Antonio Rojas 2022-10-19 19:09:02 UTC
(In reply to Nate Graham from comment #7)
> Any ideas, Antonio?

I have no idea what "the AUR telegram package" means. Anything else than the official telegram-desktop package from our repos is unsupported in Arch (and AFAICS none of the affected users are actually using Arch, so that's another layer of unsupported from my side). The only report we had about this downstream was actually from another Manjaro user.
Comment 11 php4fan 2022-10-19 20:40:00 UTC
Whoops!

I don't know why I thought I had installed it from the AUR.

The one I have installed is actually from the "Official Repositories (community)".

Sorry about the confusion 🤦🤦
Comment 12 php4fan 2022-10-19 20:41:02 UTC
Created attachment 153044 [details]
installed package (screenshot)
Comment 13 Faustino L. Padilla 2022-10-19 23:15:34 UTC
Created attachment 153046 [details]
Arch Linux Package

I'm sorry for being a total dumb. I don't know why I thought it was an AUR package as well. It is the official package from the Arch Repo. Take a look at my attachment.