mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-24 12:29:44 +00:00
Add cycling to theme
Can use t or T to cycle through themes
This commit is contained in:
parent
16c6363a95
commit
9da7e39f9b
|
@ -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(),
|
||||
_ => {}
|
||||
},
|
||||
_ => {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user