change Theme

fun changeTheme(newTheme: EquinoxUser.ApplicationTheme, onChange: () -> Unit)

Function to execute the theme change

Parameters

newTheme

: the new theme of the user

onChange

: the action to execute when the theme changed