I hope this was the right sub forum for this question.
Is there anywhere some documentation on how to support the dark theme with today widgets? My app supported theming before and it was easy to implement a switch for the theme in it through
traitCollection.userInterfaceStylewhich is also available within the today widget (or at least it seems so). But how can we set the today widget background based on that? Or is there some flag to show that the widget is ready for the dark theme so that the OS will handle this on it's own?