DuoRasterPainter

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

Constructors

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

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

Properties

Link copied to clipboard
open override val switchMode: ButtonSwitchMode

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.