generated from PlexSheep/rs-base
Merge branch 'feat/timebar' of https://git.cscherr.de/PlexSheep/crock into feat/timebar
This commit is contained in:
commit
aaa7dd77e9
|
@ -14,6 +14,7 @@ use ratatui::style::{Style, Stylize};
|
||||||
use ratatui::widgets::{Block, LineGauge, Padding, Paragraph};
|
use ratatui::widgets::{Block, LineGauge, Padding, Paragraph};
|
||||||
use ratatui::Terminal;
|
use ratatui::Terminal;
|
||||||
use std::io::Stdout;
|
use std::io::Stdout;
|
||||||
|
use std::thread::{sleep, sleep_ms};
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
|
@ -66,7 +67,7 @@ pub struct Clock {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Default)]
|
#[derive(Debug, Clone, PartialEq, Default)]
|
||||||
pub(crate) struct UiData {
|
pub struct UiData {
|
||||||
fdate: [String; 2],
|
fdate: [String; 2],
|
||||||
ftime: [String; 2],
|
ftime: [String; 2],
|
||||||
timebar_ratio: [Option<f64>; 2],
|
timebar_ratio: [Option<f64>; 2],
|
||||||
|
|
Reference in New Issue