Skip to content

Commit

Permalink
Fixed default animation spec providers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasyl Melnyk committed Aug 30, 2023
1 parent 8543714 commit f19fb99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ object ScrollbarsLayerContentTypeDefaults {
val ActiveColor: Color = Color.LightGray

/** The default content active color in [AnimationSpec]. */
val InAnimationSpec: AnimationSpec<Color> = spring()
val InAnimationSpec: AnimationSpec<Color>
get() = spring()

/** The default content active color out [AnimationSpec]. */
val OutAnimationSpec: AnimationSpec<Color> = tween(delayMillis = 750)
val OutAnimationSpec: AnimationSpec<Color>
get() = tween(delayMillis = 750)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ object ScrollbarsVisibilityTypeDefaults {
object Dynamic {

/** The default in [AnimationSpec]. */
val InAnimationSpec: AnimationSpec<Float> = spring()
val InAnimationSpec: AnimationSpec<Float>
get() = spring()

/** The default out [AnimationSpec]. */
val OutAnimationSpec: AnimationSpec<Float> = tween(delayMillis = 750)
val OutAnimationSpec: AnimationSpec<Float>
get() = tween(delayMillis = 750)

/** The default is faded indicator. */
const val IsFaded: Boolean = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import com.gigamole.composescrollbars.scrolltype.knobtype.ScrollbarsKnobTypeDefa
object ScrollbarsKnobTypeDefaults {

/** The default knob [AnimationSpec]. */
val AnimationSpec: AnimationSpec<Float> = spring()
val AnimationSpec: AnimationSpec<Float>
get() = spring()

/** The default values for static and dynamic fraction [ScrollbarsKnobType]. */
object Fraction {
Expand Down

0 comments on commit f19fb99

Please sign in to comment.