mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 14:44:18 +00:00
Changed toml one more time.
This commit is contained in:
parent
231049c118
commit
b9ff7efa21
3 changed files with 5 additions and 5 deletions
|
@ -26,9 +26,8 @@ log = "0.4"
|
||||||
sysinfo = "0.9.4"
|
sysinfo = "0.9.4"
|
||||||
tokio = "0.2.0-alpha.4"
|
tokio = "0.2.0-alpha.4"
|
||||||
|
|
||||||
[dependencies.tui]
|
[dependencies.tui-temp-fork]
|
||||||
version = "0.6.2"
|
version = "0.6.2"
|
||||||
git = "https://github.com/ClementTsang/tui-rs"
|
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ['crossterm']
|
features = ['crossterm']
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
use tui::{
|
use tui_temp_fork::{
|
||||||
|
backend,
|
||||||
layout::{Constraint, Direction, Layout},
|
layout::{Constraint, Direction, Layout},
|
||||||
style::{Color, Modifier, Style},
|
style::{Color, Modifier, Style},
|
||||||
widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Row, Table, Widget},
|
widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Row, Table, Widget},
|
||||||
|
@ -28,7 +29,7 @@ pub struct CanvasData {
|
||||||
pub cpu_data : Vec<(String, Vec<(f64, f64)>)>,
|
pub cpu_data : Vec<(String, Vec<(f64, f64)>)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw_data<B : tui::backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
|
pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state : &mut app::App, canvas_data : &CanvasData) -> error::Result<()> {
|
||||||
let border_style : Style = Style::default().fg(BORDER_STYLE_COLOUR);
|
let border_style : Style = Style::default().fg(BORDER_STYLE_COLOUR);
|
||||||
let highlighted_border_style : Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR);
|
let highlighted_border_style : Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ extern crate failure;
|
||||||
|
|
||||||
use crossterm::{input, AlternateScreen, InputEvent, KeyEvent, MouseButton, MouseEvent};
|
use crossterm::{input, AlternateScreen, InputEvent, KeyEvent, MouseButton, MouseEvent};
|
||||||
use std::{sync::mpsc, thread, time::Duration};
|
use std::{sync::mpsc, thread, time::Duration};
|
||||||
use tui::{backend::CrosstermBackend, Terminal};
|
use tui_temp_fork::{backend::CrosstermBackend, Terminal};
|
||||||
|
|
||||||
pub mod app;
|
pub mod app;
|
||||||
mod utils {
|
mod utils {
|
||||||
|
|
Loading…
Reference in a new issue