mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Qt: include debug tool colors in stylesheet (#3527)
Qt: include debug tool colors in stylesheet
This commit is contained in:
parent
b338c81907
commit
cf83b796e1
11 changed files with 99 additions and 34 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue