Set dark theme to warning popup if needed

This commit is contained in:
morg
2021-11-21 17:21:00 +01:00
committed by Adam Honse
parent 408ea734f9
commit aee13c45c9

View File

@@ -1432,6 +1432,16 @@ void OpenRGBDialog2::onShowDialogMessage()
{
QMessageBox box;
if(IsDarkTheme())
{
QPalette pal = palette();
pal.setColor(QPalette::WindowText, Qt::white);
box.setPalette(pal);
QFile darkTheme(":/windows_dark.qss");
darkTheme.open(QFile::ReadOnly);
box.setStyleSheet(darkTheme.readAll());
}
box.setInformativeText(dialog_message);
box.exec();