mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 12:13:31 -04:00
feat: Blink WiFi/Bluetooth icons while connecting (#2448)
Pulses the WiFi and Bluetooth status icons while a connection is in progress (lock screen, DankBar control center button, control center compound pill). The pulse is implemented as a reusable Widgets/DankBlink component, and the wifi-connecting condition is centralized as NetworkService.isWifiConnecting. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1461,6 +1461,7 @@ Item {
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
id: lockNetworkIcon
|
||||
name: {
|
||||
if (NetworkService.wifiToggling)
|
||||
return "sync";
|
||||
@@ -1474,9 +1475,14 @@ Item {
|
||||
}
|
||||
}
|
||||
size: Theme.iconSize - 2
|
||||
color: NetworkService.networkStatus !== "disconnected" ? "white" : Qt.rgba(255, 255, 255, 0.5)
|
||||
color: (NetworkService.networkStatus !== "disconnected" || NetworkService.isConnecting) ? "white" : Qt.rgba(255, 255, 255, 0.5)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: NetworkService.networkAvailable
|
||||
|
||||
DankBlink {
|
||||
target: lockNetworkIcon
|
||||
running: NetworkService.isWifiConnecting
|
||||
}
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
@@ -1488,11 +1494,17 @@ Item {
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
id: lockBluetoothIcon
|
||||
name: "bluetooth"
|
||||
size: Theme.iconSize - 2
|
||||
color: "white"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: BluetoothService.available && BluetoothService.enabled
|
||||
|
||||
DankBlink {
|
||||
target: lockBluetoothIcon
|
||||
running: BluetoothService.connecting
|
||||
}
|
||||
}
|
||||
|
||||
DankIcon {
|
||||
|
||||
Reference in New Issue
Block a user