feat(tui): add /theme command to toggle dark/light theme#1057
Merged
Hmbown merged 1 commit intoHmbown:mainfrom May 7, 2026
Merged
feat(tui): add /theme command to toggle dark/light theme#1057Hmbown merged 1 commit intoHmbown:mainfrom
Hmbown merged 1 commit intoHmbown:mainfrom
Conversation
Adds a minimal /theme command that toggles between dark and light theme using the existing UiTheme system (no new theme state). Changes: - config.rs: theme() function toggles app.ui_theme via UiTheme::for_mode() - mod.rs: command entry and dispatch for /theme - localization.rs: CmdThemeDescription in en/zh/ja/pt AI-use: assisted Human-owner: kurise, has read the diff and can explain every change Closes Hmbown#992 (minimal focused PR per maintainer feedback)
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Minimal
/themecommand that toggles between dark and light themes using the existingUiThemesystem — no new theme state, no thread_local, no persistence layer.Linked Issue
Follows up on PR #992 comment where maintainer requested a focused smaller PR.
AI-Use Disclosure
assisted— Claude Code used for implementation; all changes reviewed line-by-line by human.Human-Owner Statement
I have read the diff and can explain every changed file:
commands/config.rs:theme()function togglesapp.ui_themeviaUiTheme::for_mode()— delegates to existing systemcommands/mod.rs: CommandInfo entry and dispatch match for/themelocalization.rs:CmdThemeDescriptionadded in en/zh/ja/pt localesChanges (3 files, 30 lines)
commands/config.rstheme()togglesapp.ui_themecommands/mod.rslocalization.rsCmdThemeDescription(en/zh/ja/pt)Test Plan
cargo build -p deepseek-tui✓/themetoggles theme and shows confirmationVerification Commands Run
cargo build -p deepseek-tui # ✓ Passed