浅色模式控制面板无线网络切换时列表底色异常问题

This commit is contained in:
zhangyuanyuan1 2023-02-01 09:37:39 +08:00
parent e4336c606d
commit acc7d7a503
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void AddNetBtn::paintEvent(QPaintEvent *event)
QPainter painter(this);
painter.setRenderHint(QPainter:: Antialiasing, true); //设置渲染,启动反锯齿
painter.setPen(Qt::NoPen);
painter.setBrush(pal.color(QPalette::Base));
painter.setBrush(this->palette().base().color());
QColor color = pal.color(QPalette::Button);
color.setAlphaF(0.5);

View File

@ -94,7 +94,7 @@ void LanItem::paintEvent(QPaintEvent *event)
QPainter painter(this);
painter.setRenderHint(QPainter:: Antialiasing, true); //设置渲染,启动反锯齿
painter.setPen(Qt::NoPen);
painter.setBrush(pal.color(QPalette::Base));
painter.setBrush(this->palette().base().color());
QColor color = pal.color(QPalette::Button);
color.setAlphaF(0.5);

View File

@ -96,7 +96,7 @@ void WlanItem::paintEvent(QPaintEvent *event)
QPainter painter(this);
painter.setRenderHint(QPainter:: Antialiasing, true); //设置渲染,启动反锯齿
painter.setPen(Qt::NoPen);
painter.setBrush(pal.color(QPalette::Base));
painter.setBrush(this->palette().base().color());
QColor color = pal.color(QPalette::Button);
color.setAlphaF(0.5);