Update ratatui to v0.24
This commit is contained in:
@ -50,7 +50,7 @@ matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk.git", rev =
|
||||
|
||||
# UI
|
||||
crossterm = { version = "0.27.0", features = ["serde", "event-stream"] }
|
||||
ratatui = { version = "0.23.0", features = ["serde", "macros"] }
|
||||
ratatui = { version = "0.24.0", features = ["serde", "macros"] }
|
||||
strip-ansi-escapes = "0.2.0"
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -1,12 +1,13 @@
|
||||
use color_eyre::eyre::Result;
|
||||
use crossterm::event::{KeyEvent, MouseEvent};
|
||||
use ratatui::layout::Rect;
|
||||
use ratatui::Frame;
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
|
||||
use crate::{
|
||||
action::Action,
|
||||
config::Config,
|
||||
tui::{Event, Frame},
|
||||
tui::Event,
|
||||
};
|
||||
|
||||
pub mod fps;
|
||||
|
@ -4,7 +4,7 @@ use color_eyre::eyre::Result;
|
||||
use ratatui::{prelude::*, widgets::*};
|
||||
|
||||
use super::Component;
|
||||
use crate::{action::Action, tui::Frame};
|
||||
use crate::action::Action;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct FpsCounter {
|
||||
|
@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
use tokio::sync::OnceCell;
|
||||
|
||||
use super::{Component, Frame};
|
||||
use super::Component;
|
||||
use crate::{
|
||||
action::Action,
|
||||
config::{Config, KeyBindings},
|
||||
|
@ -25,7 +25,6 @@ pub type IO = std::io::Stderr;
|
||||
pub fn io() -> IO {
|
||||
std::io::stderr()
|
||||
}
|
||||
pub type Frame<'a> = ratatui::Frame<'a, Backend<IO>>;
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub enum Event {
|
||||
|
Reference in New Issue
Block a user