From 9da7e39f9b22e3e0d1075340b732ff706dec86b8 Mon Sep 17 00:00:00 2001 From: Soapydev Date: Thu, 15 Aug 2024 18:21:43 -0400 Subject: [PATCH] Add cycling to theme Can use t or T to cycle through themes --- src/state.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state.rs b/src/state.rs index 0ce78ffb..5e31b521 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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(), _ => {} }, _ => {}