Fixed widget color toggling/setting code.