From e275caa8726e01f2c4722855da36634b1270fded Mon Sep 17 00:00:00 2001 From: Ashvin Arsakularatne Date: Wed, 25 Aug 2021 02:45:52 +0530 Subject: [PATCH] add scrollbar to revlog --- src/components/commitlist.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/commitlist.rs b/src/components/commitlist.rs index ae34745e..07859067 100644 --- a/src/components/commitlist.rs +++ b/src/components/commitlist.rs @@ -6,8 +6,8 @@ use crate::{ }, keys::SharedKeyConfig, strings::{self, symbol}, - ui::calc_scroll_top, ui::style::{SharedTheme, Theme}, + ui::{calc_scroll_top, draw_scrollbar}, }; use anyhow::Result; use asyncgit::sync::{CommitId, Tags}; @@ -409,6 +409,14 @@ impl DrawableComponent for CommitList { area, ); + draw_scrollbar( + f, + area, + &self.theme, + self.count_total, + self.selection, + ); + Ok(()) } }