Skip to content

Commit

Permalink
Update editor 'Saving...' bottom-right label design (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
panarch authored Jan 19, 2025
1 parent fa1123a commit c813f26
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tui/src/views/body/notebook/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ pub fn draw(frame: &mut Frame, area: Rect, context: &mut Context) {
context.notebook.editors.iter().any(|(_, item)| item.dirty),
) {
(_, true) => block.title_bottom(
Line::from(" 󰔚 Saving... ")
.fg(BLACK)
.bg(YELLOW)
.right_aligned(),
Line::from(vec![
Span::raw("").fg(YELLOW).bg(GRAY_BLACK),
Span::raw(" 󰔚 Saving... ").fg(BLACK).bg(YELLOW),
])
.right_aligned(),
),
(Some((log, _)), false) => {
block.title_bottom(Line::from(format!(" {} ", log).fg(BLACK).bg(GREEN)).right_aligned())
Expand Down

0 comments on commit c813f26

Please sign in to comment.