From 8c869b0fd719a7cbbc15c005d899b76466956ab3 Mon Sep 17 00:00:00 2001 From: evan Date: Mon, 21 May 2018 11:08:47 -0500 Subject: make room finder transparent --- ui/fuzzy-view.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ui') diff --git a/ui/fuzzy-view.go b/ui/fuzzy-view.go index 5efad04..8dd2cf2 100644 --- a/ui/fuzzy-view.go +++ b/ui/fuzzy-view.go @@ -24,12 +24,13 @@ import ( "github.com/evidlo/fuzzysearch/fuzzy" "maunium.net/go/gomuks/debug" "maunium.net/go/gomuks/matrix/rooms" + "maunium.net/go/gomuks/ui/widget" "maunium.net/go/tcell" "maunium.net/go/tview" ) type FuzzyView struct { - *tview.Grid + tview.Primitive matches fuzzy.Ranks selected int } @@ -69,12 +70,9 @@ func NewFuzzyView(view *MainView, width int, height int) *FuzzyView { var matches fuzzy.Ranks var selected int fuzz := &FuzzyView{ - Grid: tview.NewGrid(). - SetColumns(0, width, 0). - SetRows(0, height, 0). - AddItem(fuzzyFlex, 1, 1, 1, 1, 0, 0, true), - matches: matches, - selected: selected, + Primitive: widget.TransparentCenter(width, height, fuzzyFlex), + matches: matches, + selected: selected, } // callback to update search box -- cgit v1.2.3