Use alternating background colors in the register list

This commit is contained in:
Kingcom 2015-12-28 17:12:43 +01:00
parent 11bcb328f8
commit 1fe15c16cc
1 changed files with 7 additions and 1 deletions

View File

@ -220,9 +220,15 @@ void CtrlRegisterList::render(wxDC& dc)
if (currentRows[category] == i) if (currentRows[category] == i)
{ {
dc.SetBrush(wxBrush(wxColor(0xFFFFEFE8))); dc.SetBrush(wxBrush(wxColor(0xFFFFCFC8)));
dc.SetPen(wxPen(wxColor(0xFFFFEFE8))); dc.SetPen(wxPen(wxColor(0xFFFFEFE8)));
dc.DrawRectangle(0,y,size.x,rowHeight); 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); const char* name = cpu->getRegisterName(category,i);