fix(托盘网络): 修改多网卡下拉框文本颜色(bug#186955)
This commit is contained in:
parent
4cf54f01df
commit
1fa53b4885
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue