Skip to content

Choose the theme: the system's, light or dark - #91

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:theme-choice
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:theme-choice

Conversation

@armada45-pixel

@armada45-pixel armada45-pixel commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

One of a set of small PRs that replace #87 and #88, one feature each. Rebased onto 1.5.0 (73bdbb3); they touch neighbouring lines in state.rs, views.rs and tests.rs, so whichever merges later will need another rebase; I'll do those as they come up.

T (shift-t) steps the theme from the system's to light, to dark and round again; a notice names the one now in force. A chosen light or dark stays put when the system's appearance changes; System resumes following it (or the Omarchy theme files, where there are any). The key is listed in the ? overlay and the README.

The choice lasts for the run. Remembering it between launches is left to a later PR, since saving settings is its own change.

Also. Text on the highlight is now whichever end of the theme stands further from the fill. In the light theme the "Mark for removal" button drew dark text on a dark amber and could hardly be read.

Behaviour change. Shift-T no longer does what plain t does (Size / Files / Age); plain t is unchanged.

Verified. cargo xtask lint is green on Windows and all 99 disktree-app tests pass. 9 tests in disktree-cli, disktree-core and disktree-scanner (btrfs, hardlink and cache tests) fail on Windows on an unchanged 1.5.0 too, so the full cargo xtask test run is red there for reasons outside this PR.

Since 1.5.0. The contrast fix for the highlighted button is gone: 1.5.0 removed that button and palette::on_highlight.

Not verified. Nothing was run on Linux or macOS. On this branch the feature was exercised through the window-harness tests only; the app was not launched from it. Returning to the Omarchy theme files after an explicit choice, and a real system appearance change arriving while light or dark is chosen, are untested.

🤖 Generated with Claude Code

The app followed the Omarchy theme or the system's light or dark setting
and offered no way to overrule either. `T` now steps from the system's
theme to light, to dark and round again, and a notice names the one in
force. A chosen light or dark stays put when the system's appearance
changes; going back to the system's resumes following it, or the Omarchy
theme files. The choice lasts for the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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