Use alternating background colors in the register list

This commit is contained in:
Kingcom 2015-12-28 17:12:43 +01:00 committed by Gregory Hainaut
parent bdf5be3111
commit 5b157d03e7
1 changed files with 7 additions and 1 deletions

View File

@ -220,9 +220,15 @@ void CtrlRegisterList::render(wxDC& dc)
if (currentRows[category] == i)
{
dc.SetBrush(wxBrush(wxColor(0xFFFFEFE8)));
dc.SetBrush(wxBrush(wxColor(0xFFFFCFC8)));
dc.SetPen(wxPen(wxColor(0xFFFFEFE8)));
dc.DrawRectangle(0,y,size.x,rowHeight);
} else if (i % 2)
{
wxColor color = wxColor(237,242,255,255);
dc.SetBrush(wxBrush(color));
dc.SetPen(wxPen(color));
dc.DrawRectangle(0, y, size.x, rowHeight);
}
const char* name = cpu->getRegisterName(category,i);