From 61dce2eecd17c39c1ca7163a63fa5c5e7671aff4 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sun, 10 May 2026 21:17:19 -0400 Subject: [PATCH] IN-CALL bar shows MUTED / CAM OFF pills MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Operators with auto-hide Teams couldn't tell if they were muted or had their camera off — needed to restore Teams just to check. New coral pills in the IN-CALL bar surface the local-user state, populated from a single UIA traversal that also drives the IN-CALL pill (so the cost stays at one walk per stats tick, not three). Detection: TeamsControlBridge.DetectCallState returns a CallStateSnapshot with IsInCall + IsMuted + IsCameraOff. The Mute and Camera buttons toggle their UIA Name between 'Mute'/'Unmute' and 'Turn camera off'/'Turn camera on' depending on state; check the more-specific candidate (unmute / turn camera on) first to avoid false positives from substring matching. Localized for EN / DE / ES / FR / PT / JA — same locale list the candidate-name arrays already cover. Pills visible only when both in-call AND the corresponding state is true; once you unmute, the pill vanishes within ~1s (next stats tick). --- src/TeamsISO.App/MainWindow.xaml | 33 ++++++++ .../Services/TeamsControlBridge.cs | 80 +++++++++++++++++++ src/TeamsISO.App/ViewModels/MainViewModel.cs | 25 +++++- 3 files changed, 137 insertions(+), 1 deletion(-) diff --git a/src/TeamsISO.App/MainWindow.xaml b/src/TeamsISO.App/MainWindow.xaml index d1fc1c0..a787a96 100644 --- a/src/TeamsISO.App/MainWindow.xaml +++ b/src/TeamsISO.App/MainWindow.xaml @@ -510,6 +510,39 @@ VerticalAlignment="Center"/> + + + + + + + +