docs: annotate temporary Herdr palette polling fallback

This commit is contained in:
2026-10-11 23:54:23 +02:00
parent 9f4488c771
commit b72a3e206f
+4
View File
@@ -7,6 +7,10 @@ use std::{
use crossterm::event::{Event, KeyCode, KeyEventKind, KeyEventState, KeyModifiers}; use crossterm::event::{Event, KeyCode, KeyEventKind, KeyEventState, KeyModifiers};
const QUERY_TIMEOUT: Duration = Duration::from_millis(250); const QUERY_TIMEOUT: Duration = Duration::from_millis(250);
// TODO: Remove periodic polling once a released Herdr fix reliably delivers palette-ready
// DEC 2031 notifications, including changes with unchanged light/dark preference.
// Verify notification-triggered queries return fresh colors before removing this fallback.
// Upstream: https://github.com/herdrdev/herdr/issues/4183
const REFRESH_INTERVAL: Duration = Duration::from_secs(1); const REFRESH_INTERVAL: Duration = Duration::from_secs(1);
const ESCAPE_TIMEOUT: Duration = Duration::from_millis(25); const ESCAPE_TIMEOUT: Duration = Duration::from_millis(25);
const HEADERS: [&[u8]; 3] = [b"11;", b"4;1;", b"4;2;"]; const HEADERS: [&[u8]; 3] = [b"11;", b"4;1;", b"4;2;"];