Updating the library to handle dynamic theme changes.