From 31014e275ace35707c165f487234fe2922faf067 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Tue, 4 Sep 2018 17:39:21 +0300 Subject: [PATCH] ui: add visual separators for accounts in menu tracking issue: #25 --- ui/src/components/mail/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/components/mail/mod.rs b/ui/src/components/mail/mod.rs index 56fcb590a..0c46a561c 100644 --- a/ui/src/components/mail/mod.rs +++ b/ui/src/components/mail/mod.rs @@ -240,10 +240,16 @@ impl Component for AccountMenu { } clear_area(grid, area); let upper_left = upper_left!(area); + let x = get_x(upper_left); let bottom_right = bottom_right!(area); + let x_max = get_x(bottom_right); self.dirty = false; let mut y = get_y(upper_left); for a in &self.accounts { + for x in x..=x_max { + grid[(x, y)].set_ch('━'); + } + y += 1; y += self.print_account(grid, (set_y(upper_left, y), bottom_right), &a, context); }