2018-12-22 14:07:44 +00:00
|
|
|
import QtQuick 2.0
|
2018-11-28 18:41:54 +00:00
|
|
|
import player 1.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
objectName: "buttonLayout"
|
|
|
|
id: layout
|
2018-11-29 08:25:54 +00:00
|
|
|
anchors.fill: controlsBar
|
2018-11-30 16:42:19 +00:00
|
|
|
height: parent.height
|
2018-11-28 18:41:54 +00:00
|
|
|
|
|
|
|
PlaylistPrevButton {
|
|
|
|
id: playlistPrevButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: parent.left
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2018-11-28 18:41:54 +00:00
|
|
|
width: visible ? playlistNextButton.width : 0
|
|
|
|
}
|
|
|
|
PlayPauseButton {
|
|
|
|
id: playPauseButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: playlistPrevButton.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2020-04-22 13:17:08 +01:00
|
|
|
leftPadding: 14
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
PlaylistNextButton {
|
|
|
|
id: playlistNextButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: playPauseButton.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
|
2018-12-05 12:13:28 +00:00
|
|
|
MouseArea {
|
|
|
|
id: mouseAreaVolumeArea
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors.fill: volumeSlider
|
2020-04-24 11:15:49 +01:00
|
|
|
width: volumeSlider.width
|
2018-12-05 12:13:28 +00:00
|
|
|
hoverEnabled: true
|
|
|
|
propagateComposedEvents: true
|
|
|
|
acceptedButtons: Qt.NoButton
|
2020-04-24 11:15:49 +01:00
|
|
|
z: 100
|
2018-12-05 12:13:28 +00:00
|
|
|
}
|
2018-12-06 08:13:14 +00:00
|
|
|
|
2018-11-28 18:41:54 +00:00
|
|
|
VolumeButton {
|
|
|
|
id: volumeButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: playlistNextButton.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2020-04-24 11:15:49 +01:00
|
|
|
z: 50
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
VolumeSlider {
|
|
|
|
id: volumeSlider
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: volumeButton.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2018-11-30 16:42:19 +00:00
|
|
|
height: parent.height
|
2018-12-05 12:13:28 +00:00
|
|
|
visible: mouseAreaVolumeArea.containsMouse || volumeButton.hovered
|
|
|
|
width: visible ? implicitWidth : 0
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
TimeLabel {
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
left: volumeSlider.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
leftMargin: parent.width / 128
|
|
|
|
}
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SettingsButton {
|
|
|
|
id: settingsButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
right: fullscreenButton.left
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
FullscreenButton {
|
|
|
|
id: fullscreenButton
|
2020-04-24 17:06:14 +01:00
|
|
|
anchors {
|
|
|
|
right: parent.right
|
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
2018-11-28 18:41:54 +00:00
|
|
|
}
|
|
|
|
}
|