Skip to content

Commit d78a19f

Browse files
committed
library: Optimize LocalIndication configuration
1 parent ef0a5eb commit d78a19f

File tree

1 file changed

+4
-1
lines changed
  • miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/theme

1 file changed

+4
-1
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/theme/MiuixTheme.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ fun MiuixTheme(
3131
paragraph = textStyles.paragraph.copy(color = colorScheme.onBackground)
3232
)
3333
}
34+
val miuixRipple = remember(colorScheme.onBackground) {
35+
ripple(color = colorScheme.onBackground.copy(alpha = 0.5f))
36+
}
3437
CompositionLocalProvider(
3538
LocalMiuixColor provides colorScheme,
3639
LocalMiuixTextStyles provides miuixTextStyles,
37-
LocalIndication provides ripple(),
40+
LocalIndication provides miuixRipple,
3841
) {
3942
content()
4043
}

0 commit comments

Comments
 (0)