Thanks for the script. From what I see, you're putting a half transparent window over your panel - that seems to be the reason of the transparency. A window is a hole in the panel background, it makes your panel transparent at that place and you can see through. Remove that window and all is fine.