Very minimal volume widget and PWAudioService
This commit is contained in:
parent
56777fc9fd
commit
5c7268aaee
7 changed files with 326 additions and 234 deletions
|
|
@ -64,10 +64,10 @@ Rectangle {
|
|||
root.onExited()
|
||||
}
|
||||
onClicked: {
|
||||
root.onClicked()
|
||||
if (tooltipText) {
|
||||
tooltip.hide()
|
||||
}
|
||||
root.onClicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@ Item {
|
|||
property real sizeMultiplier: 0.8
|
||||
property bool autoHide: false
|
||||
|
||||
property var onEntered: function () {}
|
||||
property var onExited: function () {}
|
||||
property var onClicked: function () {}
|
||||
|
||||
// Internal state
|
||||
property bool showPill: false
|
||||
property bool shouldAnimateHide: false
|
||||
|
|
@ -190,10 +194,15 @@ Item {
|
|||
onEntered: {
|
||||
showDelayed()
|
||||
tooltip.show()
|
||||
root.onEntered()
|
||||
}
|
||||
onExited: {
|
||||
hide()
|
||||
tooltip.hide()
|
||||
root.onExited()
|
||||
}
|
||||
onClicked: {
|
||||
root.onClicked()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue