mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-17 04:15:47 +01:00
Refines the dictation mic glow added in #327684. The glow currently spreads outward from the button as a focus-colored halo, and steps through four discrete intensity levels driven directly by each analyser frame. The stepping is visible as the level crosses a threshold, and tracking the waveform frame-for-frame reads as a level meter rather than as a microphone that is simply on. Move the light inside the button and smooth its response: - Light now gathers along the button's inner edge over a faint bloom, with the middle left clear so the glyph is never clouded. - Replace the four level classes with a continuous `--dictation-mic-level`, eased asymmetrically (fast attack, slow release) so the glow swells into speech and drifts back out of it. The level is also shaped to lift quiet speech and clamp loud speech, keeping opacity in a narrow band. - Add a `chat.dictationActiveMicGlow` theme color, defaulting to the blue Voice Mode's listening glow uses so the two features read as one family. - Suppress the glow while the model is preparing, so it doesn't compete with the download ring, and wind it down while the final transcript lands rather than cutting out the moment recording stops. The `setupDictationMicGlow` signature and its three call sites are unchanged, as is the high-contrast outline fallback and the reduced-motion behavior (the glow still shows, held at a steady level). Refs microsoft/vscode-internalbacklog#8607 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>