OverrideDarkMode

@Composable
fun OverrideDarkMode(isDark: Boolean, content: @Composable () -> Unit)

Overrides the isDark value for the content. It is used to inject a different dark mode style in a sub-tree.

Note: this does not change the theme. If you want to change the theme, you need to do it by yourself. For example, in standalone:

IntUiTheme(isDark = false) {
Text("I am light")

IntUiTheme(isDark = true) {
Text("I am dark")
}
}