2018-12-22 14:07:44 +00:00
|
|
|
import QtQuick 2.0
|
2018-12-22 14:13:53 +00:00
|
|
|
import QtQuick.Controls 2.3
|
2018-12-03 08:17:57 +00:00
|
|
|
import QtQuick.Dialogs 1.3
|
2018-12-22 14:26:34 +00:00
|
|
|
import QtQuick.Layouts 1.2
|
2018-12-22 14:21:42 +00:00
|
|
|
import QtQuick.Window 2.2
|
2018-12-03 08:17:57 +00:00
|
|
|
import Qt.labs.settings 1.0
|
|
|
|
import Qt.labs.platform 1.0 as LabsPlatform
|
|
|
|
import player 1.0
|
|
|
|
|
|
|
|
Item {
|
|
|
|
objectName: "buttonLayout"
|
|
|
|
id: layout
|
|
|
|
anchors.fill: controlsBar
|
|
|
|
|
|
|
|
PlayPauseButton {
|
|
|
|
id: playPauseButton
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
2020-04-22 12:53:42 +01:00
|
|
|
iconHeight: parent.height / 1.25
|
|
|
|
iconWidth: parent.height / 1.25
|
2018-12-03 08:17:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
id: mouseAreaVolumeArea
|
|
|
|
anchors.right: volumeSliderArea.right
|
2020-04-22 12:53:42 +01:00
|
|
|
anchors.bottom: volumeButton.bottom
|
|
|
|
anchors.left: volumeButton.left
|
|
|
|
height: parent.height + (volumeSliderArea.visible ? volumeSliderArea.height : 0)
|
2018-12-03 08:17:57 +00:00
|
|
|
hoverEnabled: true
|
2020-04-22 12:53:42 +01:00
|
|
|
z: 500
|
2018-12-03 08:17:57 +00:00
|
|
|
propagateComposedEvents: true
|
|
|
|
acceptedButtons: Qt.NoButton
|
|
|
|
onEntered: {
|
|
|
|
mouseAreaPlayerTimer.stop()
|
|
|
|
}
|
|
|
|
|
|
|
|
onExited: {
|
|
|
|
mouseAreaPlayerTimer.restart()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
VolumeButton {
|
|
|
|
id: volumeButton
|
|
|
|
anchors.left: playPauseButton.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
2020-04-22 12:53:42 +01:00
|
|
|
iconHeight: parent.height / 1.25
|
|
|
|
iconWidth: parent.height / 1.25
|
|
|
|
hoverEnabled: true
|
|
|
|
iconColor: hovered
|
2020-04-22 13:17:08 +01:00
|
|
|
|| mouseAreaVolumeArea.containsMouse ? getAppearanceValueForTheme(
|
|
|
|
appearance.themeName,
|
|
|
|
"buttonHoverColor") : getAppearanceValueForTheme(
|
|
|
|
appearance.themeName,
|
|
|
|
"buttonColor")
|
2018-12-03 08:17:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VerticalVolume {
|
|
|
|
id: volumeSliderArea
|
|
|
|
anchors.bottom: volumeButton.top
|
|
|
|
anchors.left: volumeButton.left
|
|
|
|
anchors.right: volumeButton.right
|
|
|
|
width: volumeButton.width
|
|
|
|
visible: mouseAreaVolumeArea.containsMouse || volumeButton.hovered
|
|
|
|
}
|
|
|
|
|
|
|
|
TimeLabel {
|
|
|
|
id: timeLabel
|
|
|
|
anchors.left: volumeButton.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
}
|
|
|
|
|
|
|
|
VideoProgress {
|
|
|
|
id: videoProgressRoosterTeeth
|
|
|
|
anchors.left: timeLabel.right
|
|
|
|
anchors.right: speedText.left
|
2020-04-23 15:10:48 +01:00
|
|
|
anchors.leftMargin: parent.width / 128
|
|
|
|
anchors.rightMargin: parent.width / 128
|
2018-12-03 08:17:57 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
height: parent.height
|
|
|
|
to: progressBar.to
|
|
|
|
value: progressBar.value
|
2020-04-23 15:10:48 +01:00
|
|
|
center: true
|
2018-12-03 08:17:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SpeedText {
|
|
|
|
id: speedText
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.right: fullscreenButton.left
|
|
|
|
}
|
|
|
|
|
|
|
|
FullscreenButton {
|
|
|
|
id: fullscreenButton
|
|
|
|
anchors.right: settingsButton.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
2020-04-22 12:53:42 +01:00
|
|
|
iconHeight: parent.height / 1.25
|
|
|
|
iconWidth: parent.height / 1.25
|
2018-12-03 08:17:57 +00:00
|
|
|
}
|
|
|
|
SettingsButton {
|
|
|
|
id: settingsButton
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
2020-04-22 12:53:42 +01:00
|
|
|
iconHeight: parent.height / 1.25
|
|
|
|
iconWidth: parent.height / 1.25
|
2018-12-03 08:17:57 +00:00
|
|
|
}
|
|
|
|
}
|