mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 19:44:25 +08:00
refactor: specially function param names
This commit is contained in:
@@ -135,7 +135,7 @@ fun NavigationItem(
|
|||||||
val currentContentShape = contentShape ?: LocalNavigationContentShape.current ?: Navigation.style.contentShape
|
val currentContentShape = contentShape ?: LocalNavigationContentShape.current ?: Navigation.style.contentShape
|
||||||
val animatedIndicatorColor by animateColorAsState(if (selected) currentColors.indicatorColor else Color.Transparent)
|
val animatedIndicatorColor by animateColorAsState(if (selected) currentColors.indicatorColor else Color.Transparent)
|
||||||
val animatedContentColor by animateColorAsState(if (selected) currentColors.selectedContentColor else currentColors.unselectedContentColor)
|
val animatedContentColor by animateColorAsState(if (selected) currentColors.selectedContentColor else currentColors.unselectedContentColor)
|
||||||
val currentContentStyle = LocalTextStyle.current.copy(animatedContentColor)
|
val currentContentStyle = LocalTextStyle.current.copy(color = animatedContentColor)
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier.status(enabled)
|
modifier = Modifier.status(enabled)
|
||||||
.clip(currentContentShape)
|
.clip(currentContentShape)
|
||||||
|
@@ -210,7 +210,7 @@ fun Tab(
|
|||||||
val currentContentPadding = contentPadding ?: LocalTabContentPadding.current ?: Tab.style.contentPadding
|
val currentContentPadding = contentPadding ?: LocalTabContentPadding.current ?: Tab.style.contentPadding
|
||||||
val currentContentShape = contentShape ?: LocalTabContentShape.current ?: Tab.style.contentShape
|
val currentContentShape = contentShape ?: LocalTabContentShape.current ?: Tab.style.contentShape
|
||||||
val contentColor by animateColorAsState(if (selected) currentSelectedContentColor else currentUnselectedContentColor)
|
val contentColor by animateColorAsState(if (selected) currentSelectedContentColor else currentUnselectedContentColor)
|
||||||
val contentStyle = LocalTextStyle.current.copy(contentColor)
|
val contentStyle = LocalTextStyle.current.copy(color = contentColor)
|
||||||
CompositionLocalProvider(
|
CompositionLocalProvider(
|
||||||
LocalIconTint provides contentColor,
|
LocalIconTint provides contentColor,
|
||||||
LocalTextStyle provides contentStyle
|
LocalTextStyle provides contentStyle
|
||||||
|
@@ -683,7 +683,7 @@ private fun TextFieldDecorationBox(
|
|||||||
val animatedAlpha by animateFloatAsState(if (value.isNotEmpty()) 0f else 1f)
|
val animatedAlpha by animateFloatAsState(if (value.isNotEmpty()) 0f else 1f)
|
||||||
Box(modifier = Modifier.alpha(animatedAlpha)) {
|
Box(modifier = Modifier.alpha(animatedAlpha)) {
|
||||||
CompositionLocalProvider(
|
CompositionLocalProvider(
|
||||||
LocalTextStyle provides LocalTextStyle.current.copy(placeholderContentColor)
|
LocalTextStyle provides LocalTextStyle.current.copy(color = placeholderContentColor)
|
||||||
) { placeholder() }
|
) { placeholder() }
|
||||||
}
|
}
|
||||||
innerTextField()
|
innerTextField()
|
||||||
|
Reference in New Issue
Block a user