Update NewBoxWizard.cpp
Set radio buttons colours to white
This commit is contained in:
parent
acf734de74
commit
e773f51998
|
@ -217,7 +217,7 @@ CBoxTypePage::CBoxTypePage(bool bAlowTemp, QWidget *parent)
|
||||||
QWidget* pW = bCheck ? (QWidget*)new QCheckBox() : (QWidget*)new QRadioButton();
|
QWidget* pW = bCheck ? (QWidget*)new QCheckBox() : (QWidget*)new QRadioButton();
|
||||||
if (theGUI->m_DarkTheme) {
|
if (theGUI->m_DarkTheme) {
|
||||||
QPalette palette = QApplication::palette();
|
QPalette palette = QApplication::palette();
|
||||||
palette.setColor(QPalette::Base, Qt::lightGray);
|
palette.setColor(QPalette::Base, Qt::white);
|
||||||
palette.setColor(QPalette::Text, Qt::black);
|
palette.setColor(QPalette::Text, Qt::black);
|
||||||
pW->setPalette(palette);
|
pW->setPalette(palette);
|
||||||
}
|
}
|
||||||
|
@ -311,12 +311,6 @@ CBoxTypePage::CBoxTypePage(bool bAlowTemp, QWidget *parent)
|
||||||
registerField("autoRemove", pTemp);
|
registerField("autoRemove", pTemp);
|
||||||
|
|
||||||
m_pAdvanced = new QCheckBox(tr("Configure advanced options"));
|
m_pAdvanced = new QCheckBox(tr("Configure advanced options"));
|
||||||
if (theGUI->m_DarkTheme) {
|
|
||||||
QPalette palette = QApplication::palette();
|
|
||||||
palette.setColor(QPalette::Base, Qt::lightGray);
|
|
||||||
palette.setColor(QPalette::Text, Qt::black);
|
|
||||||
m_pAdvanced->setPalette(palette);
|
|
||||||
}
|
|
||||||
m_pAdvanced->setChecked(theConf->GetBool("Options/AdvancedBoxWizard", false));
|
m_pAdvanced->setChecked(theConf->GetBool("Options/AdvancedBoxWizard", false));
|
||||||
layout->addWidget(m_pAdvanced, row++, 2, 1, 1);
|
layout->addWidget(m_pAdvanced, row++, 2, 1, 1);
|
||||||
connect(m_pAdvanced, SIGNAL(toggled(bool)), this, SLOT(OnAdvanced()));
|
connect(m_pAdvanced, SIGNAL(toggled(bool)), this, SLOT(OnAdvanced()));
|
||||||
|
|
Loading…
Reference in New Issue