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
|
Layout.fillWidth: true
|
||||||
text: root.mprisInterface.nowPlaying
|
text: root.mprisInterface.nowPlaying
|
||||||
}
|
}
|
||||||
Button {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
text: root.mprisInterface.isPlaying ? "pause" : "play"
|
|
||||||
onClicked: root.mprisInterface.sendAction("PlayPause");
|
|
||||||
}
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Button {
|
Button {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: "<<"
|
iconName: "media-skip-backward"
|
||||||
onClicked: root.mprisInterface.sendAction("Previous")
|
onClicked: root.mprisInterface.sendAction("Previous")
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
Layout.fillWidth: true
|
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")
|
onClicked: root.mprisInterface.sendAction("Next")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Label { text: "x" }
|
Label { text: i18n("Volume:") }
|
||||||
Slider {
|
Slider {
|
||||||
value: root.mprisInterface.volume
|
value: root.mprisInterface.volume
|
||||||
maximumValue: 100
|
maximumValue: 100
|
||||||
|
|
Loading…
Reference in a new issue