Hovering the indicators revealed it dimmed alongside the ones that can be switched on, though there is nothing to do with it there. An indicator can now opt out of that reveal, and remote session does. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
800 B
QML
26 lines
800 B
QML
import QtQuick
|
|
import qs.Commons as Commons
|
|
import qs.Ui
|
|
|
|
BarIndicator {
|
|
id: root
|
|
|
|
readonly property var remoteSessionService: bar?.shell?.firstPartyServiceFor("omarchy.remote-session")
|
|
readonly property var peers: remoteSessionService && Array.isArray(remoteSessionService.peers) ? remoteSessionService.peers : []
|
|
|
|
active: remoteSessionService ? remoteSessionService.active : false
|
|
activeText: ""
|
|
activeTooltipText: peers.length > 0 ? "Remote session from " + peers.join(", ") : "Remote session"
|
|
useActiveColor: true
|
|
activeColor: Commons.Color.urgent
|
|
revealWhenInactive: false
|
|
|
|
Connections {
|
|
target: root.indicatorHost
|
|
ignoreUnknownSignals: true
|
|
function onRefreshRequested() {
|
|
if (root.remoteSessionService) root.remoteSessionService.refresh()
|
|
}
|
|
}
|
|
}
|