Added logic to initialize the fore and background color palettes of the Qt trace logger viewport.

This commit is contained in:
mjbudd77 2020-10-18 21:36:49 -04:00
parent 1c0d999033
commit 9e57c49f5a
1 changed files with 10 additions and 0 deletions

View File

@ -1088,10 +1088,20 @@ void FCEUD_TraceInstruction(uint8 *opcode, int size)
QTraceLogView::QTraceLogView(QWidget *parent)
: QWidget(parent)
{
QPalette pal;
QColor fg("black"), bg("white");
font.setFamily("Courier New");
font.setStyle( QFont::StyleNormal );
font.setStyleHint( QFont::Monospace );
pal = this->palette();
pal.setColor(QPalette::Base , bg );
pal.setColor(QPalette::Background, bg );
pal.setColor(QPalette::WindowText, fg );
this->setPalette(pal);
calcFontData();
vbar = NULL;