DuoRasterPainter

data class DuoRasterPainter(val darkPainter: Painter, val lightPainter: Painter) : ThemeSwitchIcon

A pair of raster painters that switch based on the current theme.

This implementation displays darkPainter when in dark theme and lightPainter when in light theme. The icon automatically transitions when the theme changes.

Constructors

Link copied to clipboard
constructor(darkPainter: Painter, lightPainter: Painter)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun Icon(state: ThemeAnimationState, tint: Color, modifier: Modifier, contentDescription: String?)

Renders the icon based on the current theme state.