LocalMockColorScheme
CompositionLocal for providing the MockColorScheme used by the Network Mock module's UI.
Provide this where your app already configures its MaterialTheme, so the status-family palette switches alongside your light/dark theme:
MaterialTheme(colorScheme = if (darkTheme) darkColorScheme() else lightColorScheme()) {
CompositionLocalProvider(
LocalMockColorScheme provides if (darkTheme) MockColorScheme.Dark else MockColorScheme.Light
) {
// ... DevView content ...
}
}Content copied to clipboard
If never provided, the module falls back to MockColorScheme.Light/MockColorScheme.Dark chosen from the ambient MaterialTheme's surface luminance, and logs a one-time warning pointing at this CompositionLocal (see the "Theming" guide).