Add cycling to theme

Can use t or T to cycle through themes
This commit is contained in:
Soapydev 2024-08-15 18:21:43 -04:00
parent 16c6363a95
commit 9da7e39f9b

View File

@ -196,6 +196,8 @@ impl AppState {
self.refresh_tab();
}
KeyCode::Char('/') => self.enter_search(),
KeyCode::Char('t') => self.theme = self.theme.next(),
KeyCode::Char('T') => self.theme = self.theme.prev(),
_ => {}
},
Focus::List if key.kind != KeyEventKind::Release => match key.code {
@ -212,6 +214,8 @@ impl AppState {
}
KeyCode::Char('/') => self.enter_search(),
KeyCode::Tab => self.focus = Focus::TabList,
KeyCode::Char('t') => self.theme = self.theme.next(),
KeyCode::Char('T') => self.theme = self.theme.prev(),
_ => {}
},
_ => {}