Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Defines theme-aware icons for the theme switch button.
Functions
Link copied to clipboard
fun rememberLottieIcon(lightThemeProgress: Float, darkThemeProgress: Float, animationSpec: AnimationSpec<Float>, onReadContent: suspend () -> LottieCompositionSpec): ThemeSwitchIcon.LottieFilePainter
fun rememberLottieIcon(lightThemeProgress: Float, darkThemeProgress: Float, systemThemeProgress: Float, animationSpec: AnimationSpec<Float>, onReadContent: suspend () -> LottieCompositionSpec): ThemeSwitchIcon.LottieFilePainter
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a JSON string.
Link copied to clipboard
fun rememberLottieIconJson(lightThemeProgress: Float, darkThemeProgress: Float, animationSpec: AnimationSpec<Float>, onReadContentJson: suspend () -> String): ThemeSwitchIcon.LottieFilePainter
fun rememberLottieIconJson(lightThemeProgress: Float, darkThemeProgress: Float, systemThemeProgress: Float, animationSpec: AnimationSpec<Float>, onReadContentJson: suspend () -> String): ThemeSwitchIcon.LottieFilePainter
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a composition specification.
Link copied to clipboard
fun ThemeIconButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), interactionSource: MutableInteractionSource? = null, indication: Indication? = null, shape: Shape = IconButtonDefaults.standardShape, content: @Composable () -> Unit)
Link copied to clipboard
fun ThemeAnimationLayoutScope.ThemeSwitch(animationState: ThemeAnimationState, buttonIcon: ThemeSwitchIcon = DefaultButtonIcon, modifier: Modifier = Modifier, iconSize: DpSize = DpSize(20.dp, 20.dp), iconScale: Float = 1.0f, iconShape: Shape = RoundedCornerShape(50), iconTint: Color = MaterialTheme.colorScheme.primary, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current)
A composable abstract switch that toggles themes in a binary or tristate transition.
Link copied to clipboard
fun ThemeAnimationLayoutScope.ThemeSwitchButton(animationState: ThemeAnimationState, buttonIcon: ThemeSwitchIcon = DefaultButtonIcon, modifier: Modifier = Modifier, iconSize: Dp = 20.dp, iconScale: Float = 1.0f, iconTint: Color = MaterialTheme.colorScheme.primary, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current)
A composable button that toggles between light and dark themes with animation.