osd for volume and brightness

This commit is contained in:
Damocles 2026-04-12 15:24:08 +02:00
parent a53616523b
commit ab2eb2578e
6 changed files with 104 additions and 0 deletions

20
modules/OsdState.qml Normal file
View file

@ -0,0 +1,20 @@
pragma Singleton
import QtQuick
QtObject {
property bool visible: false
property real value: 0 // 0.01.0
property string icon: ""
property Timer _timer: Timer {
interval: 1500
onTriggered: visible = false
}
function show(val, ico) {
value = val;
icon = ico;
visible = true;
_timer.restart();
}
}