Improve app mpris interface

This commit is contained in:
Aleix Pol 2015-07-17 17:20:06 +02:00
parent 38aa9704a7
commit 2b844e59da

View file

@ -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