diff options
author | remique <44347542+remique@users.noreply.github.com> | 2020-11-12 15:39:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 15:39:50 +0100 |
commit | 2f3af71408b20d064b5abcc3eadc730938e66bc7 (patch) | |
tree | 927cce999bf2cd7a3d3dee69669487fbdc2310bc /src/ui | |
parent | 8bf0d78b0462ead482b387ac7d091905019fa57a (diff) |
Add scrollbar in branchlist (#417)
* Add scrollbar in branchlist
* Change scrollbar symbol to DOUBLE_VERTICAL
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/scrollbar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/scrollbar.rs b/src/ui/scrollbar.rs index 5cd63bd4..73f2ab9b 100644 --- a/src/ui/scrollbar.rs +++ b/src/ui/scrollbar.rs @@ -5,7 +5,7 @@ use tui::{ buffer::Buffer, layout::{Margin, Rect}, style::Style, - symbols::{block::FULL, line::THICK_VERTICAL}, + symbols::{block::FULL, line::DOUBLE_VERTICAL}, widgets::Widget, Frame, }; @@ -50,7 +50,7 @@ impl Widget for Scrollbar { } for y in area.top()..area.bottom() { - buf.set_string(right, y, THICK_VERTICAL, self.style_bar); + buf.set_string(right, y, DOUBLE_VERTICAL, self.style_bar); } let max_pos = self.lines.saturating_sub(area.height); |