LogColorScheme
The complete set of per-LogLevel colors used by the Console module's UI.
DevView renders inside the host app's MaterialTheme, but log-level colors (a debug teal, a warning yellow, an error red, etc.) are intentionally not derived from MaterialTheme.colorScheme — they need to stay visually distinct and consistent regardless of the host's brand palette. Light and Dark are complete, hand-tuned palettes tested for contrast in each theme; use copy to override individual levels.
Usage
Provide the scheme where your app already configures its MaterialTheme, via com.worldline.devview.consolelogger.theme.LocalLogColorScheme:
MaterialTheme(colorScheme = if (darkTheme) darkColorScheme() else lightColorScheme()) {
CompositionLocalProvider(
LocalLogColorScheme provides if (darkTheme) LogColorScheme.Dark else LogColorScheme.Light
) {
// ...
}
}Overriding individual levels
LogColorScheme.Dark.copy(
error = LogColorScheme.Dark.error.copy(label = Color.Magenta)
)See also
Constructors
Properties
Colors for LogLevel.ASSERT.
Colors for LogLevel.DEBUG.
Colors for LogLevel.ERROR.
Colors for LogLevel.INFO.
Colors for LogLevel.UNKNOWN.
Colors for LogLevel.VERBOSE.
Colors for LogLevel.WARNING.
Functions
Returns the LogLevelColors for the given level.