From 83ce69a4785d6464fafd07e60b20b968529f018a Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 8 Feb 2024 15:32:34 -0500 Subject: move Focus to gui/widget package --- ui.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'ui.go') diff --git a/ui.go b/ui.go index 132ae89..eae60b0 100644 --- a/ui.go +++ b/ui.go @@ -14,7 +14,9 @@ func spawnWidgets( displacementChan chan uint, rpmChan, veChan, imapChan, actChan [POINTS]chan uint, flowChan [POINTS]chan float64, - focus *Focus, mux *gui.Mux, wg *sync.WaitGroup, + focus *widget.Focus, + mux *gui.Mux, + wg *sync.WaitGroup, ) { bounds := layout.Grid{ Rows: []int{2, 7, 7, 7, 7, 7}, @@ -34,7 +36,7 @@ func spawnWidgets( go widget.Input( displacementChan, bounds[1], - focus.widgets[0][0], + focus.Widgets[0][0], mux.MakeEnv(), wg, ) @@ -53,7 +55,7 @@ func spawnWidgets( go widget.Input( // speed rpmChan[i], bounds[3+i], - focus.widgets[1][i], + focus.Widgets[1][i], mux.MakeEnv(), wg, ) @@ -61,7 +63,7 @@ func spawnWidgets( go widget.Input( // VE veChan[i], bounds[4+POINTS+i], - focus.widgets[2][i], + focus.Widgets[2][i], mux.MakeEnv(), wg, ) @@ -69,7 +71,7 @@ func spawnWidgets( go widget.Input( // IMAP imapChan[i], bounds[5+2*POINTS+i], - focus.widgets[3][i], + focus.Widgets[3][i], mux.MakeEnv(), wg, ) @@ -77,7 +79,7 @@ func spawnWidgets( go widget.Input( // ACT actChan[i], bounds[6+3*POINTS+i], - focus.widgets[4][i], + focus.Widgets[4][i], mux.MakeEnv(), wg, ) -- cgit v1.2.3