Revert "Reverted some of the changes to fix the transparent menu, as they were causing problems scrolling in rare situations."

This reverts commit 62a575e81131d125246f0ea15b084db0cf18345e.

This didn't help at all and, in fact, actually hindered my efforts to fix the transparency bug.