How do you save a theme in preferences without defining a constant for each theme?
The style resource id is pretty straightforward to get and save, but also likely to change in an update.
The style name seems a better option. If that’s the way to do it, how do you get the theme name given its resource id, and how do you get the resource id given the theme’s name?
I manage to solve this by using the theme name and getResourceEntryName. Full code: