Automatically update the widget with the dark/light theme.