From 7cd700ad8da4bef2d37f403b815a88131fc4e5b8 Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Thu, 30 Jan 2025 00:08:26 +0800 Subject: [PATCH] chore: Opt page switch --- app/src/main/kotlin/statusbar/lyric/App.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/kotlin/statusbar/lyric/App.kt b/app/src/main/kotlin/statusbar/lyric/App.kt index 63c99c44..043bd789 100644 --- a/app/src/main/kotlin/statusbar/lyric/App.kt +++ b/app/src/main/kotlin/statusbar/lyric/App.kt @@ -99,12 +99,18 @@ fun PortraitLayout(navController: NavHostController, currentStartDestination: Mu slideOutHorizontally( targetOffsetX = { -windowWidth / 5 }, animationSpec = tween(durationMillis = 500, easing = easing) + ) + fadeOut( + animationSpec = tween(durationMillis = 500), + targetAlpha = 0.5f ) }, popEnterTransition = { slideInHorizontally( initialOffsetX = { -windowWidth / 5 }, animationSpec = tween(durationMillis = 500, easing = easing) + ) + fadeIn( + animationSpec = tween(durationMillis = 500), + initialAlpha = 0.5f ) }, popExitTransition = {