Add support for widget and window opacity