From 84ca8371d7fad24aa4bbbd9f3d00f259fc476c5e Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Tue, 14 Jan 2020 08:53:29 -0800 Subject: [PATCH] Show baseline spanning the bottom of the net sparklines --- CHANGELOG.md | 1 + Cargo.lock | 2 +- src/widgets/net.rs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06efdac..0dd9b65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Group processes by default - Add sorting arrow to process header +- Show baseline spanning the bottom of the net sparklines ## 0.1.0 - 2020-01-13 diff --git a/Cargo.lock b/Cargo.lock index f41314b..1381645 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -886,7 +886,7 @@ dependencies = [ [[package]] name = "tui" version = "0.8.0" -source = "git+https://github.com/cjbassi/tui-rs#9e6666c03ee299de16e6a77b081f4009d666b6d0" +source = "git+https://github.com/cjbassi/tui-rs#652dde97a63e240bf68a64851498aa6db119c47e" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "cassowary 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/widgets/net.rs b/src/widgets/net.rs index 5fa7ba6..366f8ab 100644 --- a/src/widgets/net.rs +++ b/src/widgets/net.rs @@ -136,6 +136,7 @@ impl Widget for NetWidget<'_, '_> { .as_slice(), ) .direction(RenderDirection::RTL) + .show_baseline(true) .max(*self.bytes_recv.iter().max().unwrap()) .style(self.colorscheme.net_bars) .draw(top_sparkline, buf); @@ -168,6 +169,7 @@ impl Widget for NetWidget<'_, '_> { .as_slice(), ) .direction(RenderDirection::RTL) + .show_baseline(true) .max(*self.bytes_sent.iter().max().unwrap()) .style(self.colorscheme.net_bars) .draw(bottom_sparkline, buf);