mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-06 21:57:57 -04:00
Set dark theme to warning popup if needed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user