Fixed an issue where widgets would not respond properly to dark theme changes.