From a504355900c0b624ca160b44d834f559f91b44be Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 29 May 2017 16:59:02 +0100 Subject: [PATCH] Use QPalette::Base as background for SuggestRemoteDialog * Removes hardcoded #fff white background which breaks on other themes. --- qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.cpp | 3 +++ qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.ui | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.cpp b/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.cpp index f625ca5a0..28a410cfc 100644 --- a/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.cpp +++ b/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.cpp @@ -44,6 +44,9 @@ SuggestRemoteDialog::SuggestRemoteDialog(const QString &driver, const QString &m tr("to replay on. Would you like to load the capture locally or\n") + tr("back out to configure one in Tools > Manage Remote Servers?")); + ui->topFrame->setBackgroundRole(QPalette::Base); + ui->topFrame->setAutoFillBackground(true); + m_Remotes = new QMenu(this); ui->remote->setEnabled(false); diff --git a/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.ui b/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.ui index 2d0d66693..87b6b1608 100644 --- a/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.ui +++ b/qrenderdoc/Windows/Dialogs/SuggestRemoteDialog.ui @@ -31,9 +31,6 @@ - - background-color: #fff; - QFrame::NoFrame