Fix scrollbar animations.

This commit is contained in:
2026-02-02 18:21:28 -05:00
parent 29024e3999
commit 0f50577d78

View File

@@ -187,7 +187,7 @@ SplitView {
implicitWidth: scrollBar.interactive ? 8 : 4
// Fade the scrollbar gutter when inactive.
opacity: scrollBar.active && scrollBar.size < 1.0 ? 1.0 : 0.2
opacity: scrollBar.active && scrollBar.size < 1.0 ? 1.0 : 0.0
Behavior on opacity {
OpacityAnimator {
@@ -205,7 +205,7 @@ SplitView {
implicitHeight: scrollBar.interactive ? 8 : 4
implicitWidth: scrollBar.interactive ? 8 : 4
// Fade the scrollbar when inactive.
opacity: scrollBar.active && scrollBar.size < 1.0 ? 1.0 : 0.35
opacity: scrollBar.active && scrollBar.size < 1.0 ? 1.0 : 0
// Smooth transition between color changes based on the state above.
Behavior on color {
@@ -215,7 +215,7 @@ SplitView {
}
Behavior on opacity {
OpacityAnimator {
duration: 500
duration: 1000
}
}
}