Merge branch '2209zc-ui' into 'yhkylin/v101'

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

See merge request kylinos-src/kylin-nm!88
This commit is contained in:
赵世旭 2023-02-03 03:43:28 +00:00
commit 24e2af60b9
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);