DesktopWidget: MediaPlayer add animation and a persistent position for play/pause

This commit is contained in:
onelocked
2026-01-02 18:35:59 +00:00
parent 0a6e5430a8
commit e60f7b46a9
@@ -250,7 +250,13 @@ DraggableDesktopWidget {
Layout.alignment: root.showAlbumArt ? Qt.AlignVCenter : Qt.AlignCenter
NIconButton {
visible: showPrev
opacity: showPrev ? 1 : 0
Behavior on opacity {
NumberAnimation {
duration: Style.animationSlow
easing.type: Easing.InOutQuad
}
}
baseSize: Math.round(32 * widgetScale)
icon: "media-prev"
enabled: hasPlayer && MediaService.canGoPrevious
@@ -280,7 +286,13 @@ DraggableDesktopWidget {
}
NIconButton {
visible: showNext
opacity: showNext ? 1 : 0
Behavior on opacity {
NumberAnimation {
duration: Style.animationSlow
easing.type: Easing.InOutQuad
}
}
baseSize: Math.round(32 * widgetScale)
icon: "media-next"
enabled: hasPlayer && MediaService.canGoNext