My mistake. My background was set to a solid colour, not the application settings.The “Gainsboro” that kept getting returned was actually my application settings (220,220,220).
Is there a method to detect the background style that is currently applied?