spinners and fmt

This commit is contained in:
2026-06-21 01:32:47 -05:00
parent d32914d99d
commit 8e90084b53
31 changed files with 1445 additions and 284 deletions
+4 -2
View File
@@ -9,10 +9,10 @@
//! but open animations may advertise an interactive mode so the overlay is
//! responsive before the animation completes.
use crate::input::InputMode;
use ratatui::buffer::Buffer;
use ratatui::layout::Rect;
use ratatui::widgets::Widget;
use crate::input::InputMode;
/// Which region of the terminal an animation occupies.
pub enum AnimationLayer {
@@ -32,7 +32,9 @@ pub trait Animation {
fn layer(&self) -> AnimationLayer;
/// Which [`InputMode`] is active while this animation is running.
/// Defaults to [`InputMode::Ignore`] (all input discarded).
fn input_mode_during(&self) -> InputMode { InputMode::Ignore }
fn input_mode_during(&self) -> InputMode {
InputMode::Ignore
}
/// Which [`InputMode`] to enter when the animation finishes.
fn input_mode_after(&self) -> InputMode;
}