Qt: include debug tool colors in stylesheet (#3527)

Qt: include debug tool colors in stylesheet
This commit is contained in:
Megamouse 2017-10-05 00:10:24 +02:00 committed by Ani
parent b338c81907
commit cf83b796e1
11 changed files with 99 additions and 34 deletions

View file

@ -387,11 +387,10 @@ namespace
if (img.isNull()) return;
//QString title = qstr(fmt::format("Raw Image @ 0x%x", addr));
QLabel* canvas = new QLabel();
QPalette pal_bg;
pal_bg.setColor(canvas->backgroundRole(), QColor(240, 240, 240));
canvas->setPalette(pal_bg); //This fix the ugly background color under Windows
canvas->setObjectName("rsx_debugger_display_buffer");
canvas->setPixmap(QPixmap::fromImage(img));
canvas->setFixedSize(img.size());
canvas->ensurePolished();
canvas->show();
}
}