fix(托盘网络): 修改多网卡下拉框文本颜色(bug#186955)

This commit is contained in:
zhangyuanyuan1 2023-08-10 16:46:19 +08:00
parent 4cf54f01df
commit 1fa53b4885
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ void TabPage::onPaletteChanged()
QPalette view_pal = m_deviceComboBox->view()->palette();
QColor view_color = this->palette().color(QPalette::Active, QPalette::Button);
view_pal.setColor(QPalette::Base, view_color);
view_pal.setColor(QPalette::Text, this->palette().color(QPalette::Text));
view_pal.setColor(QPalette::Foreground, this->palette().color(QPalette::Foreground));
m_deviceComboBox->setPalette(view_pal);
m_deviceComboBox->view()->setPalette(view_pal);
}