mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 03:58:56 +01:00
Complete Settings migration to Voyager (#8639)
Now the Controller wrapper can be yeeted anytime
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package eu.kanade.presentation.util
|
||||
|
||||
import androidx.compose.animation.ExitTransition
|
||||
import androidx.compose.animation.core.LinearEasing
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.animation.fadeIn
|
||||
import androidx.compose.animation.with
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.ui.unit.dp
|
||||
@@ -24,3 +29,15 @@ class Padding {
|
||||
|
||||
val MaterialTheme.padding: Padding
|
||||
get() = Padding()
|
||||
|
||||
object Transition {
|
||||
|
||||
/**
|
||||
* Mimics [eu.kanade.tachiyomi.ui.base.controller.OneWayFadeChangeHandler]
|
||||
*/
|
||||
val OneWayFade = fadeIn(
|
||||
animationSpec = tween(
|
||||
easing = LinearEasing,
|
||||
),
|
||||
) with ExitTransition.None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user