Hi.
I'm wondering if anyone knows if there's a way to query the default background color (set with the -bgc flag in most window, layout and control commands). I.e. not the viewport background color, but the light grey all windows, layouts and buttons have by default.
I tried color picking it and I got the rgb values
0.878, 0.874, 0.890, but I suppose the user can change this like everything else in maya.
The reason I'm asking is I'm making a UI which has three state buttons that change color when clicked. One of the colors I want is the same as the window it's on, but I have to set that explicitly when the button changes state. And I'm not sure I can query the window's background color, because it might be closed.
So, is there a command or global or optionvar or some other way of getting this color?