osd for volume and brightness

This commit is contained in:
Damocles 2026-04-12 15:24:08 +02:00
commit ab2eb2578e

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.0–1.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();
}
}