mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 16:10:50 +00:00
When enabled (default for new users), the terminal theme automatically switches to match the active app UI theme — so the terminal background blends seamlessly with the app chrome, regardless of which UI theme preset the user picks (Snow, Midnight, Forest, etc.). ## New terminal themes (14) Each built-in UI theme preset now has a corresponding terminal theme with an exactly matching background color: Light: ui-snow, ui-pure-white, ui-ivory, ui-mist, ui-mint, ui-sand, ui-lavender — ANSI palette based on netcatty-light with per-theme cursor colors that complement the UI accent. Dark: ui-pure-black, ui-midnight, ui-deep-blue, ui-vscode, ui-graphite, ui-obsidian, ui-forest — ANSI palette based on netcatty-dark with accent-matched cursors and selections. ## "Follow Application Theme" setting - New toggle in Settings → Terminal → Theme section - Default ON for new users, persisted in localStorage - When ON: terminal theme auto-derived from the active UI theme via a mapping table in domain/terminalAppearance.ts - When OFF: manual theme selector shown (existing behavior) - Switching the app between light/dark (or changing the UI theme preset) instantly updates the terminal theme ## Files changed (9) - terminalThemes.ts: +14 theme definitions - terminalAppearance.ts: UI→terminal mapping table + getTerminalThemeForUiTheme() - useSettingsState.ts: followAppTerminalTheme state + persist + currentTerminalTheme derivation - storageKeys.ts: new storage key - SettingsTerminalTab.tsx: toggle UI + conditional theme selector - SettingsPage.tsx: pass new props - App.tsx: destructure new state - en.ts + zh-CN.ts: 2 new i18n keys Closes #675 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>