Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ impl EventHandler {
KeyCode::Char('q') => Ok(AppEvent::Quit),
KeyCode::Esc => Ok(AppEvent::CloseSettings),
KeyCode::Char('s') | KeyCode::Char('S') => Ok(AppEvent::OpenSettings),
KeyCode::Char('t') | KeyCode::Char('T') => Ok(AppEvent::ToggleTheme),
KeyCode::Up => Ok(AppEvent::NavigateUp),
KeyCode::Down => Ok(AppEvent::NavigateDown),
KeyCode::Enter => Ok(AppEvent::Select),
KeyCode::Up | KeyCode::Char('k') => Ok(AppEvent::NavigateUp),
KeyCode::Down | KeyCode::Char('j') => Ok(AppEvent::NavigateDown),
KeyCode::Enter | KeyCode::Char(' ') => Ok(AppEvent::Select),
KeyCode::Char('c')
if key_event.modifiers.contains(KeyModifiers::CONTROL) =>
{
Expand Down
9 changes: 4 additions & 5 deletions src/ui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ impl App {
}
}
AppEvent::ToggleTheme => {
// Toggle theme through settings system
self.settings.get_mut().toggle_theme();
self.settings.get().apply_theme(&mut self.theme);
// T key functionality removed in Issue #21
// Theme changes now only available through settings modal
}
AppEvent::Resize(width, height) => {
self.last_size = Some((width, height));
Expand Down Expand Up @@ -371,11 +370,11 @@ impl App {

let footer_text = match self.state {
AppState::Main => format!(
"ESC/q: Quit | T: Toggle Theme | S: Settings | Current: [{}] | Production v0.1.0",
"ESC/q: Quit | S: Settings | Current: [{}] | Production v0.1.0",
current_theme
),
AppState::Settings => format!(
"ESC: Back to Main | T: Toggle Theme | Current: [{}] | Settings Mode",
"ESC: Back to Main | ↑↓/kj: Navigate | Enter/Space: Select | Current: [{}]",
current_theme
),
AppState::Quitting => "Application shutting down gracefully...".to_string(),
Expand Down