Apply the same logic to other two pills (Brightness and Volume)
This commit is contained in:
parent
d35ed0d7bb
commit
c68c361af3
4 changed files with 36 additions and 28 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue