From 0023e0929ac7075cd008e0093de58ddc89efd597 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Mon, 26 Feb 2018 11:14:21 +0100 Subject: Bulk commit before redesign in another branch. --- window.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'window.go') diff --git a/window.go b/window.go index 763acc9..0e85bb7 100644 --- a/window.go +++ b/window.go @@ -280,7 +280,7 @@ func (win *Window) Flags() string { func (win *Window) Resize(x, y, w, h int) { win.x, win.y, win.w, win.h = x, y, w, h - win.tagline.Resize(win.x, win.y, win.w, 1) + win.tagline.Resize(win.x+3, win.y, win.w-3, 1) // 3 for tagbox win.body.Resize(win.x, win.y+1, win.w, win.h-1) } @@ -320,6 +320,15 @@ func (win *Window) HandleEvent(ev tcell.Event) { } func (win *Window) Draw() { + // Draw tag square + boxstyle := tagSquareStyle + if win.body.dirty { + boxstyle = tagSquareModifiedStyle + } + screen.SetContent(win.x, win.y, ' ', nil, boxstyle) + screen.SetContent(win.x+1, win.y, ' ', nil, boxstyle) + screen.SetContent(win.x+2, win.y, ' ', nil, win.tagline.style) + // Tagline win.tagline.Draw() -- cgit v1.2.3