parent
4a639270ff
commit
6ba8970d23
|
@ -66,14 +66,23 @@ func ReadReceivedData(data *pb.Event, mh *gui.TableData) {
|
|||
vms := data.GetVms()
|
||||
log.Println("ReadReceivedData() Event vms=", vms)
|
||||
for row, item := range vms {
|
||||
if (row % 2) == 1 {
|
||||
// if (row % 2) == 1 {
|
||||
if (row == 1) {
|
||||
mh.Rows[row].HumanData[0].Color = color.RGBA{100, 100, 100, 142} // makes the background of each other row grey
|
||||
} else if (row == 2) {
|
||||
mh.Rows[row].HumanData[0].Color = color.RGBA{0, 0, 0, 0} // makes the background of each other row grey
|
||||
} else if (row == 3) {
|
||||
mh.Rows[row].HumanData[0].Color = color.RGBA{255, 255, 255, 255} // makes the background of each other row grey
|
||||
} else if (row == 4) {
|
||||
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 {
|
||||
mh.Rows[row].HumanData[0].Color = color.RGBA{72, 0, 0, 142}
|
||||
// mh.Rows[row].HumanData[0].Color = nil
|
||||
}
|
||||
mh.Rows[row].HumanData[1].Text = item.Name
|
||||
mh.Rows[row].HumanData[1].Color = color.RGBA{0, 0, 0, 0}
|
||||
mh.Rows[row].HumanData[1].Color = color.RGBA{255, 255, 255, 255}
|
||||
mh.Rows[row].HumanData[2].Text = item.Hostname
|
||||
mh.Rows[row].HumanData[2].Color = color.RGBA{200, 200, 0, 200}
|
||||
mh.Rows[row].HumanData[3].Text = fmt.Sprintf("%d",item.Cpus)
|
||||
|
|
Loading…
Reference in New Issue