Unexplained black window on Mac

I tried that. Invert colors works well. The shadows are just white in light mode to add a minor beveling effect. The purple would be green if inverted too. So it’s not that.