Merge branch 'main' into worktree-improvise-ewi-formula-crate
# Conflicts: # src/ui/app.rs # src/ui/effect.rs # src/view/layout.rs
This commit is contained in:
+5
-1
@@ -132,12 +132,16 @@ fn mode_name(mode: &AppMode) -> &'static str {
|
||||
AppMode::CommandMode { .. } => "COMMAND",
|
||||
AppMode::Help => "HELP",
|
||||
AppMode::Quit => "QUIT",
|
||||
AppMode::RecordsNormal => "RECORDS",
|
||||
AppMode::RecordsEditing { .. } => "RECORDS INSERT",
|
||||
}
|
||||
}
|
||||
|
||||
fn mode_style(mode: &AppMode) -> Style {
|
||||
match mode {
|
||||
AppMode::Editing { .. } => Style::default().fg(Color::Black).bg(Color::Green),
|
||||
AppMode::Editing { .. } | AppMode::RecordsEditing { .. } => {
|
||||
Style::default().fg(Color::Black).bg(Color::Green)
|
||||
}
|
||||
AppMode::CommandMode { .. } => Style::default().fg(Color::Black).bg(Color::Yellow),
|
||||
AppMode::TileSelect => Style::default().fg(Color::Black).bg(Color::Magenta),
|
||||
_ => Style::default().fg(Color::Black).bg(Color::DarkGray),
|
||||
|
||||
Reference in New Issue
Block a user