โ– humdrum codex / soft

โ† issues

TASK-033 TUI: Auto-select dark/light theme based on macOS appearance

To Do tui priority: low enhancement

created 2026-06-12 04:21

depends on: TASK-021

Description

On startup, detect macOS Dark Mode and choose the matching theme variant automatically, rather than always defaulting to flexoki.

Detection:

import subprocess
result = subprocess.run(
    ["defaults", "read", "-g", "AppleInterfaceStyle"],
    capture_output=True, text=True
)
is_dark = result.returncode == 0 and "Dark" in result.stdout

Startup behavior:

Acceptance Criteria