diff --git a/src/frontend/enterprise-wlan/enterprisewlandialog.cpp b/src/frontend/enterprise-wlan/enterprisewlandialog.cpp index bdab0ebe..7b772076 100644 --- a/src/frontend/enterprise-wlan/enterprisewlandialog.cpp +++ b/src/frontend/enterprise-wlan/enterprisewlandialog.cpp @@ -183,6 +183,16 @@ void EnterpriseWlanDialog::initConnections() }); connect(qApp, &QApplication::paletteChanged, this, &EnterpriseWlanDialog::onPaletteChanged); + + const QByteArray id(THEME_SCHAME); + if(QGSettings::isSchemaInstalled(id)){ + QGSettings * fontSetting = new QGSettings(id, QByteArray(), this); + connect(fontSetting, &QGSettings::changed,[=](QString key) { + if ("themeColor" == key) { + onPaletteChanged(); + } + }); + } } void EnterpriseWlanDialog::onPaletteChanged() diff --git a/src/frontend/netdetails/joinhiddenwifipage.cpp b/src/frontend/netdetails/joinhiddenwifipage.cpp index 193d3da7..03315782 100644 --- a/src/frontend/netdetails/joinhiddenwifipage.cpp +++ b/src/frontend/netdetails/joinhiddenwifipage.cpp @@ -175,6 +175,18 @@ void JoinHiddenWiFiPage::initComponent() setJoinBtnEnable(); }); connect(m_nameEdit, &LineEdit::textChanged, this, &JoinHiddenWiFiPage::setJoinBtnEnable); + + connect(qApp, &QApplication::paletteChanged, this, &JoinHiddenWiFiPage::onPaletteChanged); + + const QByteArray id(THEME_SCHAME); + if(QGSettings::isSchemaInstalled(id)){ + QGSettings * fontSetting = new QGSettings(id, QByteArray(), this); + connect(fontSetting, &QGSettings::changed,[=](QString key) { + if ("themeColor" == key) { + onPaletteChanged(); + } + }); + } } void JoinHiddenWiFiPage::setJoinBtnEnable() diff --git a/src/frontend/netdetails/securitypage.cpp b/src/frontend/netdetails/securitypage.cpp index f5f7c4b1..ddcf1d13 100644 --- a/src/frontend/netdetails/securitypage.cpp +++ b/src/frontend/netdetails/securitypage.cpp @@ -63,6 +63,7 @@ void SecurityPage::initUI() secuTypeCombox = new QComboBox(this); pwdEdit = new KPasswordEdit(this); + pwdEdit->setUseCustomPalette(true); eapTypeCombox = new QComboBox(this); //TLS identityEdit = new LineEdit(this); @@ -72,6 +73,7 @@ void SecurityPage::initUI() clientCertPathCombox = new QComboBox(this); clientPrivateKeyCombox = new QComboBox(this); clientPrivateKeyPwdEdit = new KPasswordEdit(this); + clientPrivateKeyPwdEdit->setUseCustomPalette(true); pwdOptionCombox = new QComboBox(this); tlsWidget = new QWidget(this); @@ -79,6 +81,7 @@ void SecurityPage::initUI() eapMethodCombox = new QComboBox(this); userNameEdit = new LineEdit(this); userPwdEdit = new KPasswordEdit(this); + userPwdEdit->setUseCustomPalette(true); userPwdFlagBox = new QCheckBox(this); QWidget *queryWidget = new QWidget(this);