Skip to content

feat: add configurable light theme support#94

Open
lukaszcz wants to merge 11 commits intodlvhdr:mainfrom
lukaszcz:light-theme
Open

feat: add configurable light theme support#94
lukaszcz wants to merge 11 commits intodlvhdr:mainfrom
lukaszcz:light-theme

Conversation

@lukaszcz
Copy link
Contributor

@lukaszcz lukaszcz commented Feb 27, 2026

Add configurable light theme support with automatic background detection. Improves readability on light terminals across the diff viewer, file tree, footer, and search highlights.

  • New Features

    • UI.theme supports "auto" (default), "light", and "dark"; DIFFNAV_THEME env var overrides config.
    • Auto-detects terminal background when theme is "auto" and updates styles live.
    • Light theme passes delta args for high-contrast diffs (Monokai Extended Light, readable +/- backgrounds, line number styles).
    • Selection and accent colors adapt to background for file tree, footer, and search results.
  • Migration

    • Optional: set UI.theme in config to "auto", "light", or "dark".
    • Optional: set DIFFNAV_THEME to force a theme regardless of config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant