wnayes / bond-wm

An X Window Manager built on web technologies.
https://wnayes.github.io/bond-wm/
MIT License
67 stars 2 forks source link

Tray icon has transparency issues #7

Closed danielmeloalencar closed 2 months ago

danielmeloalencar commented 6 months ago

Hello! Firstly, congratulations on the incredible work! I was investigating why the board is getting the primary color and I managed to come up with the following result, it's not a solution yet, but it could be a starting point for the solution:

image

danielmeloalencar commented 5 months ago

From what I understand, it is taking the color from the closest DIV, and if the div is transparent it takes it from the next div, and so on.

danielmeloalencar commented 3 months ago

nothing?

wnayes commented 3 months ago

I looked for quite a while, but I haven't been able to figure out how to get these tray icon windows to display with transparency. I can alter the background color to some other solid color though, so I can update it to match the taskbar color, which will look good for any solid colored taskbar. I will try to go with that approach for now since it's better than the current behavior.

danielmeloalencar commented 3 months ago

Yes, I believe it is the best solution for now.

wnayes commented 2 months ago

Sorry for the delay, I found some time to wrap up this change and publish a new minor version.

New packages with this change:

bond-wm@0.4.2 @bond-wm/shared@0.4.1 @bond-wm/react-taskbar@0.4.1

Closing this issue since the background color approach should be sufficient for any solid colored taskbar. If someone has a more complex styled taskbar with gradient/transparency this could be revisited in a new issue.

wnayes commented 2 months ago

Missed an issue in the prior package versions, needed to publish a fix to just the wm server half.

bond-wm@0.4.3