feat: Optimize search animations and improve content rendering in SearchScreen; update Saved Messages icon handling in DialogItemContent
This commit is contained in:
@@ -159,9 +159,9 @@ fun ConfirmSeedPhraseScreen(
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(500)) + slideInVertically(
|
||||
initialOffsetY = { -20 },
|
||||
animationSpec = tween(500)
|
||||
enter = fadeIn(tween(250)) + slideInVertically(
|
||||
initialOffsetY = { -40 },
|
||||
animationSpec = tween(250)
|
||||
)
|
||||
) {
|
||||
Text(
|
||||
|
||||
@@ -78,9 +78,9 @@ fun ImportSeedPhraseScreen(
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(500)) + slideInVertically(
|
||||
initialOffsetY = { -20 },
|
||||
animationSpec = tween(500)
|
||||
enter = fadeIn(tween(250)) + slideInVertically(
|
||||
initialOffsetY = { -40 },
|
||||
animationSpec = tween(250)
|
||||
)
|
||||
) {
|
||||
Text(
|
||||
|
||||
@@ -80,9 +80,9 @@ fun SeedPhraseScreen(
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(500)) + slideInVertically(
|
||||
initialOffsetY = { -20 },
|
||||
animationSpec = tween(500)
|
||||
enter = fadeIn(tween(250)) + slideInVertically(
|
||||
initialOffsetY = { -40 },
|
||||
animationSpec = tween(250)
|
||||
)
|
||||
) {
|
||||
Text(
|
||||
|
||||
@@ -103,9 +103,9 @@ fun SelectAccountScreen(
|
||||
// Header
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(500)) + slideInVertically(
|
||||
initialOffsetY = { -30 },
|
||||
animationSpec = tween(500)
|
||||
enter = fadeIn(tween(250)) + slideInVertically(
|
||||
initialOffsetY = { -40 },
|
||||
animationSpec = tween(250)
|
||||
)
|
||||
) {
|
||||
Column {
|
||||
@@ -269,9 +269,9 @@ private fun AccountListItem(
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(400)) + slideInHorizontally(
|
||||
initialOffsetX = { -50 },
|
||||
animationSpec = tween(400)
|
||||
enter = fadeIn(tween(200)) + slideInHorizontally(
|
||||
initialOffsetX = { 50 },
|
||||
animationSpec = tween(200)
|
||||
)
|
||||
) {
|
||||
Card(
|
||||
@@ -378,9 +378,9 @@ private fun AddAccountButton(
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(400)) + slideInHorizontally(
|
||||
enter = fadeIn(tween(200)) + slideInHorizontally(
|
||||
initialOffsetX = { -50 },
|
||||
animationSpec = tween(400)
|
||||
animationSpec = tween(200)
|
||||
)
|
||||
) {
|
||||
Card(
|
||||
|
||||
@@ -147,11 +147,11 @@ fun SetPasswordScreen(
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter =
|
||||
fadeIn(tween(500)) +
|
||||
fadeIn(tween(250)) +
|
||||
scaleIn(
|
||||
initialScale = 0.5f,
|
||||
animationSpec =
|
||||
tween(500, easing = FastOutSlowInEasing)
|
||||
tween(250, easing = FastOutSlowInEasing)
|
||||
)
|
||||
) {
|
||||
Box(
|
||||
@@ -460,19 +460,19 @@ fun SetPasswordScreen(
|
||||
AnimatedVisibility(
|
||||
visible = visible && !isKeyboardVisible,
|
||||
enter =
|
||||
fadeIn(tween(400)) +
|
||||
fadeIn(tween(200)) +
|
||||
slideInVertically(
|
||||
initialOffsetY = { 30 },
|
||||
animationSpec = tween(400)
|
||||
animationSpec = tween(200)
|
||||
) +
|
||||
scaleIn(initialScale = 0.9f, animationSpec = tween(400)),
|
||||
scaleIn(initialScale = 0.9f, animationSpec = tween(200)),
|
||||
exit =
|
||||
fadeOut(tween(300)) +
|
||||
fadeOut(tween(150)) +
|
||||
slideOutVertically(
|
||||
targetOffsetY = { 30 },
|
||||
animationSpec = tween(300)
|
||||
animationSpec = tween(150)
|
||||
) +
|
||||
scaleOut(targetScale = 0.9f, animationSpec = tween(300))
|
||||
scaleOut(targetScale = 0.9f, animationSpec = tween(150))
|
||||
) {
|
||||
Row(
|
||||
modifier =
|
||||
|
||||
@@ -181,7 +181,7 @@ fun UnlockScreen(
|
||||
// Rosetta Logo
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(600)) + scaleIn(tween(600, easing = FastOutSlowInEasing))
|
||||
enter = fadeIn(tween(300)) + scaleIn(tween(300, easing = FastOutSlowInEasing))
|
||||
) {
|
||||
Image(
|
||||
painter = painterResource(id = R.drawable.rosetta_icon),
|
||||
|
||||
@@ -97,7 +97,7 @@ fun WelcomeScreen(
|
||||
// Animated Lock Icon
|
||||
AnimatedVisibility(
|
||||
visible = visible,
|
||||
enter = fadeIn(tween(600)) + scaleIn(tween(600, easing = FastOutSlowInEasing))
|
||||
enter = fadeIn(tween(300)) + scaleIn(tween(300, easing = FastOutSlowInEasing))
|
||||
) {
|
||||
Box(modifier = Modifier.size(180.dp), contentAlignment = Alignment.Center) {
|
||||
lockComposition?.let { comp ->
|
||||
|
||||
Reference in New Issue
Block a user