more color tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
87ee67fbcf
commit
bd798ae1db
|
@ -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
|
mh.Rows[row].HumanData[0].Color = color.RGBA{255, 255, 255, 0} // makes the background of each other row grey
|
||||||
} else if (row == 5) {
|
} else if (row == 5) {
|
||||||
mh.Rows[row].HumanData[0].Color = color.RGBA{55, 55, 55, 255} // makes the background of each other row grey
|
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
|
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].Text = item.Name
|
||||||
mh.Rows[row].HumanData[1].Color = defaultTextColor
|
mh.Rows[row].HumanData[1].Color = defaultTextColor
|
||||||
|
|
19
main.go
19
main.go
|
@ -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:
|
// Doing this can sometimes avoid a panic() on things like:
|
||||||
// panic: runtime error: slice bounds out of range
|
// panic: runtime error: slice bounds out of range
|
||||||
//
|
//
|
||||||
// In debugging mode, always panic() and never try to recover()
|
// In debugging mode, always panic() and never try to recover()
|
||||||
//
|
//
|
||||||
|
|
||||||
func r() {
|
func r() {
|
||||||
if (gui.Data.Debug == false) {
|
if (gui.Data.Debug == false) {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|
Loading…
Reference in New Issue