amnweb / yasb

A highly configurable Windows status bar written in Python.
Other
354 stars 25 forks source link

gWSL icons are transparent #54

Open vanchaxy opened 1 month ago

vanchaxy commented 1 month ago

Describe the bug When running pycharm using gWSL icons in the bar are transparent.

image

I added this to get_window_icon(), it helps but icons have a black background. (expected as they don't have transparent data at all)

 _, _, _, a = img.split()
if not sum(a.getdata()):
    img.putalpha(255)
image

I can submit a PR but maybe someone has a better solution without a black background. The icon looks norman in the windows toolbar:

image
amnweb commented 1 month ago

I just tried to run PyCharm from WSLg and here is what I have. Screenshot 2024-10-15 015709

vanchaxy commented 1 month ago

@amnweb it's gwsl (https://github.com/Opticos/GWSL-Source/). Executable is GWSL_vcxsrv.exe

amnweb commented 1 month ago

And what is the difference between this and WSLg? I mean you can run apps from WSL.

vanchaxy commented 1 month ago

It uses vcxsrv instead of wslg. For me, it works faster, looks more like native app, no clipboard synchronization bug, etc.

skyisthela commented 1 month ago

I am not sure if this is related or not but; an image viewer I use called qimgv has the exact same issue where it doesn't show up on the active window module nor the taskbar module. I apologize in advance if these are unrelated/irrelevant.

amnweb commented 1 month ago

It's not related but anyway I have just tested qimgv and it seems to be related to this app. YASB cannot find standard Windows icons for this app.