mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
- Add fixed status bar at top showing model and directory info - Make photon-light the default theme - Implement bottom-aligned history rendering (chat-style) - Add theme switching via /theme command - Refine padding: 3 chars for history/status, 2 for input/status bar - Use consistent lighter border color for all UI elements - Remove "Message" title from input box - Add padding around "Coding..." status indicator - Keep composer visible during task execution - Reduce bottom padding from 3 to 2 lines - Fix cursor positioning and text visibility issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
2.3 KiB
2.3 KiB
Theme Testing Guide
Testing the /theme Command
The theme switching functionality has been successfully implemented. Here's how to test it:
1. Build and Install
npm run build:quick
2. Run Codex TUI
codex
3. Test Theme Switching
- Type
/themein the compose field - Press Enter to open the theme selection UI
- Use arrow keys (↑↓) to navigate between themes
- Press Enter to select a theme
- Press Esc to cancel
Available Themes
- Carbon Night - Sleek modern dark theme (default)
- Photon Light - Clean professional light theme
- Shinobi Dusk - Japanese-inspired twilight
- OLED Black Pro - True black for OLED displays
- Amber Terminal - Retro amber CRT aesthetic
- Aurora Flux - Northern lights inspired
- Charcoal Rainbow - High-contrast accessible
- Zen Garden - Calm and peaceful
- Paper Light Pro - Premium paper-like light
What to Verify
-
Theme Selection UI:
- The popup appears when typing
/theme - All 9 themes are listed with descriptions
- Current theme is marked with "(current)"
- Arrow keys navigate the list
- Selected item is highlighted with ">" and cyan color
- The popup appears when typing
-
Theme Application:
- When a theme is selected, colors change immediately
- A confirmation message appears: "✓ Theme changed to [Theme Name]"
- The new theme persists across different views
-
Configuration:
- Theme changes are logged (check terminal output)
- To persist themes, add to config.toml:
[tui.theme] name = "carbon-night" # or any other theme name
Features Implemented
- ✅ Complete theme system with 9 predefined themes
- ✅ Dynamic theme switching during active sessions
- ✅
/themeslash command - ✅ Interactive theme selection UI
- ✅ Immediate visual feedback
- ✅ Theme configuration in config.toml
- ✅ Custom color overrides support
Technical Implementation
- Theme Module (
tui/src/theme.rs): Core theme definitions and switching logic - Colors Module (
tui/src/colors.rs): Dynamic color functions using current theme - Theme Selection View (
tui/src/bottom_pane/theme_selection_view.rs): Interactive UI - Config Types (
core/src/config_types.rs): Theme configuration structures - Slash Command (
tui/src/slash_command.rs):/themecommand integration