First commit
There was history before but now there is no more.
This commit is contained in:
commit
8d57bfb1ae
35 changed files with 2231 additions and 0 deletions
30
Volume.qml
Normal file
30
Volume.qml
Normal file
|
@ -0,0 +1,30 @@
|
|||
// SPDX-License-Identifier: Unlicense
|
||||
|
||||
import QtQuick.Controls 2.13
|
||||
|
||||
Button {
|
||||
property bool muted
|
||||
property alias value: volume.value
|
||||
|
||||
implicitWidth: implicitHeight
|
||||
icon.name: 'audio-volume-' +
|
||||
(muted ? 'muted' :
|
||||
(value < 0.33 ? 'low' :
|
||||
(value < 0.66 ? 'medium' : 'high')))
|
||||
|
||||
checkable: true
|
||||
checked: popup.opened
|
||||
|
||||
onClicked: popup.opened ? popup.close() : popup.open()
|
||||
Popup {
|
||||
id: popup
|
||||
y: -height
|
||||
height: 100
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||
Slider {
|
||||
id: volume
|
||||
anchors.fill: parent
|
||||
orientation: Qt.Vertical
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue