more color tests

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-28 16:47:16 -07:00
parent 87ee67fbcf
commit bd798ae1db
2 changed files with 5 additions and 18 deletions

View File

@ -110,8 +110,10 @@ func ReadReceivedData(data *pb.Event, mh *gui.TableData, window *ui.Window, tab
mh.Rows[row].HumanData[0].Color = color.RGBA{255, 255, 255, 0} // makes the background of each other row grey
} else if (row == 5) {
mh.Rows[row].HumanData[0].Color = color.RGBA{55, 55, 55, 255} // makes the background of each other row grey
} else {
} else if (row < 10) {
mh.Rows[row].HumanData[0].Color = linuxBgMauve
} else {
mh.Rows[row].HumanData[0].Color = color.RGBA{250, 250, 250, 250}
}
mh.Rows[row].HumanData[1].Text = item.Name
mh.Rows[row].HumanData[1].Color = defaultTextColor

19
main.go
View File

@ -374,31 +374,16 @@ func mainMouseClick(b *gui.ButtonMap) {
}
}
}
/*
if (gui.Data.State == "splash") {
gui.Data.State = "account1"
return
} else if (gui.Data.State == "account1") {
// gui.ShowAccountTab(-1, b.B)
gui.ShowAccountTab(-1)
gui.Data.State = "main"
} else if (gui.Data.State == "main") {
gui.ShowMainTab()
gui.Data.State = "done"
} else if (gui.Data.State == "QUIT") {
onExit(nil)
}
*/
}
//
// This is GO language concept for 'recover' to keep an app from completely crashing
//
// Doing this can sometimes avoid a panic() on things like:
// panic: runtime error: slice bounds out of range
//
// In debugging mode, always panic() and never try to recover()
//
func r() {
if (gui.Data.Debug == false) {
if r := recover(); r != nil {