fix errors when handling unsupported themes, improved color switching method that avoids read and write, and gradients and shadow rules added to make panel more opaque