Function run_visuals_loop
async fn run_visuals_loop(
api: &dyn WindowsApi,
state_receiver: Receiver<ClientState>,
highlight_receiver: Receiver<bool>,
original_console_color: Option<CONSOLE_CHARACTER_ATTRIBUTES>,
disabled_console_color: CONSOLE_CHARACTER_ATTRIBUTES,
highlighted_console_color: CONSOLE_CHARACTER_ATTRIBUTES,
)Expand description
Drives the per-client console color: tracks state_receiver and
highlight_receiver, paints the steady-state combination, and flashes
the underlying state color for HIGHLIGHT_FLASH_DURATION.
ยงArguments
api- The Windows API implementation to use.state_receiver- Receiver for daemon-driven state changes.highlight_receiver- Receiver for submenu highlight transitions.original_console_color- Pristine attributes;Nonedegrades all painting to a no-op.disabled_console_color- Color forClientState::Disabled.highlighted_console_color- Color while highlighted; overrides the disabled color.