Apply the same logic to other two pills (Brightness and Volume)

This commit is contained in:
Sébastien Atoch 2025-07-31 09:00:14 -04:00
parent d35ed0d7bb
commit c68c361af3
4 changed files with 36 additions and 28 deletions

View file

@ -40,7 +40,6 @@ Item {
pillColor: Theme.surfaceVariant
iconCircleColor: Theme.accentPrimary
textColor: charging ? Theme.accentPrimary : Theme.textPrimary
autoHide: false
MouseArea {
anchors.fill: parent
hoverEnabled: true
@ -76,19 +75,4 @@ Item {
delay: 1500
}
}
Timer {
id: hideTimer
interval: 2000
running: true
onTriggered: {
pill.hide();
}
}
Component.onCompleted: {
if (isReady && battery.isLaptopBattery) {
pill.show();
}
}
}