Files
RedBear-OS/local
kellito 9ea6826a58 tlc: Sprint 2 B8 — Input widget uses theme tokens by default
Input widget colors no longer hardcoded to Color::White / Blue /
Yellow. New instances use Color::Reset as a sentinel meaning
'use the theme token', and render() falls back to:
  - fg: theme.foreground
  - bg: theme.background
  - cursor_color: theme.warning

Callers that explicitly call .fg() / .bg() / .cursor_color() still
override the sentinel — existing API surface preserved.

Changes:
  - input.rs::Input::new() defaults fg/bg/cursor_color to Color::Reset
  - input.rs::Input::render() resolves Reset → theme token
  - New pub fn cursor_color(c) builder (was missing; .fg/.bg existed)

Tests (2 new in widget::input::tests):
  - default_colors_are_reset_sentinel
  - explicit_color_overrides_reset_sentinel

Total: 1268 passing (was 1266; +2 new).
2026-07-05 17:34:47 +03:00
..