backlight panel: flash on hotkey changes

This commit is contained in:
Damocles 2026-04-12 18:17:07 +02:00
parent 5d7e3fb090
commit 7aadbed03e

View file

@ -13,7 +13,21 @@ M.BarSection {
property int percent: 0
property bool _panelHovered: false
readonly property bool _showPanel: root._hovered || _panelHovered
property bool _osdActive: false
readonly property bool _showPanel: root._hovered || _panelHovered || _osdActive
onPercentChanged: if (percent > 0) _flashPanel()
function _flashPanel() {
_osdActive = true;
_osdTimer.restart();
}
Timer {
id: _osdTimer
interval: 1500
onTriggered: root._osdActive = false
}
Process {
id: adjProc