Improve app mpris interface
This commit is contained in:
parent
38aa9704a7
commit
2b844e59da
1 changed files with 8 additions and 8 deletions
|
@ -41,27 +41,27 @@ ColumnLayout
|
|||
Layout.fillWidth: true
|
||||
text: root.mprisInterface.nowPlaying
|
||||
}
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
text: root.mprisInterface.isPlaying ? "pause" : "play"
|
||||
onClicked: root.mprisInterface.sendAction("PlayPause");
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
text: "<<"
|
||||
iconName: "media-skip-backward"
|
||||
onClicked: root.mprisInterface.sendAction("Previous")
|
||||
}
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
text: ">>"
|
||||
iconName: root.mprisInterface.isPlaying ? "media-playback-pause" : "media-playback-start"
|
||||
onClicked: root.mprisInterface.sendAction("PlayPause");
|
||||
}
|
||||
Button {
|
||||
Layout.fillWidth: true
|
||||
iconName: "media-skip-forward"
|
||||
onClicked: root.mprisInterface.sendAction("Next")
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Label { text: "x" }
|
||||
Label { text: i18n("Volume:") }
|
||||
Slider {
|
||||
value: root.mprisInterface.volume
|
||||
maximumValue: 100
|
||||
|
|
Loading…
Reference in a new issue