无线网络 连接按钮变蓝文字需反白

This commit is contained in:
zhangyuanyuan1 2022-08-15 20:49:45 +08:00
parent 921fc4eb88
commit 238b9bed7c
1 changed files with 1 additions and 0 deletions

View File

@ -620,6 +620,7 @@ void WlanListItem::setConnectButtonState()
QPalette btnPal;
if (m_connectButton->isEnabled()) {
btnPal.setColor(QPalette::Button, ENABLE_BUTTON_COLOR);
btnPal.setColor(QPalette::ButtonText, Qt::white);
m_connectButton->setPalette(btnPal);
} else {
btnPal.setColor(QPalette::Button, UNABLE_BUTTON_COLOR);