Mstdn icon indicating copy to clipboard operation
Mstdn copied to clipboard

Icon not displaying properly on system tray on Linux

Open jjatria opened this issue 8 years ago • 3 comments
trafficstars

In Kubuntu 16.10, the icon on the system tray looks like a black mess. Not sure what's going on there.

icon

Note that the icon next to it in the screencap is a raster image, so I don't think this is related to these icons needing to be vectorised.

jjatria avatar Apr 20 '17 12:04 jjatria

I think size of tray icons in this repository is wrong. Mstdn puts 34x36 tray icon to support retina display. This is generally not a problem because Electron recognizes pixel ratio automatically and shrinks the icon to half size if pixel ratio is 1. So icon should be shown as 17x18 image in environment where pixel ratio is 1. However, it looks to put 34x36 icon directly on your environment.

I think I need to prepare 17x18 icon and set it to tray if app is run in Kubuntu.

rhysd avatar Apr 20 '17 13:04 rhysd

This may be specific to my setup, but setting normal_window to true sort of made this problem disappear. With that, the icon does not display at all in the system tray, and the icon displayed elsewhere shows correctly.

I'll leave this open since I guess this shouldn't happen even without a normal window.

jjatria avatar Apr 20 '17 16:04 jjatria

I'm happy to hear that. Thank you for confirmation.

Then let's leave this issue open. If someone encounters this issue, please feel free to add a comment.

rhysd avatar Apr 20 '17 16:04 rhysd