Refy Theme
fun RefyTheme(darkTheme: Boolean = when (localUser.theme) {
Light -> false
Dark -> true
else -> isSystemInDarkTheme()
}, dynamicColor: Boolean = true, colorStatusBar: Boolean = false, content: @Composable () -> Unit)
Function to set the Refy theme to the content
Parameters
dark Theme
: whether to use the dark or light theme
dynamic Color
: the dynamic color
color Status Bar
: whether the status bar needs to be coloured
content
: the content to display