settings: keep the motion preview hint under the pill

fixes #3469
This commit is contained in:
bbedward
2026-09-17 19:15:29 -04:00
parent c5a76d9e46
commit 1bb13d8bcf
@@ -170,6 +170,22 @@ Item {
radius: Theme.cornerRadiusL
color: Theme.surfaceContainerLowest
StyledText {
x: parent.width - width - Theme.spacingL
anchors.verticalCenter: parent.verticalCenter
text: I18n.tr("Tap to play")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
opacity: motionPreview.atEnd ? 0 : 1
Behavior on opacity {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}
}
}
Rectangle {
x: motionPreview.trackPadding + pillSpring.value
anchors.verticalCenter: parent.verticalCenter
@@ -187,15 +203,6 @@ Item {
}
}
StyledText {
anchors.right: parent.right
anchors.rightMargin: Theme.spacingL
anchors.verticalCenter: parent.verticalCenter
text: I18n.tr("Tap to play")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor