分割线颜色&bug#99710

This commit is contained in:
kangshuning 2021-12-27 17:55:11 +08:00
parent 6fcef8a81a
commit 028859d5e2
4 changed files with 8 additions and 9 deletions

View File

@ -252,10 +252,9 @@ void WlanListItem::initWlanUI()
m_pwdLineEdit->setLayout(m_pwdLineEditLyt);
m_showPwdButton = new QPushButton(m_pwdLineEdit);
m_showPwdButton->setStyleSheet("QPushButton{color:white; background-color:transparent;}");
m_showPwdButton->setFlat(true); //去除边框
m_showPwdButton->installEventFilter(this);
m_showPwdButton->setFixedSize(SHOW_PWD_BUTTON_SIZE);
m_showPwdButton->setAutoFillBackground(false);
m_showPwdButton->setIcon(QIcon::fromTheme("ukui-eye-hidden-symbolic"));
m_showPwdButton->setCursor(Qt::PointingHandCursor);
connect(m_showPwdButton, &QPushButton::clicked, this, &WlanListItem::onShowPwdButtonClicked);

View File

@ -1,5 +1,6 @@
#include "divider.h"
#include <QPainter>
#include <QApplication>
Divider::Divider(QWidget * parent) : QFrame(parent)
{
@ -11,12 +12,11 @@ Divider::Divider(QWidget * parent) : QFrame(parent)
void Divider::paintEvent(QPaintEvent * e)
{
QPainter p(this);
QColor color;
color.setRgb(77,77,77);
QColor color = qApp->palette().color(QPalette::BrightText);
color.setAlphaF(0.08);
p.save();
p.setBrush(color);
p.setPen(Qt::transparent);
p.setOpacity(0.3);
p.drawRoundedRect(this->rect(), 6, 6);
p.restore();
return QFrame::paintEvent(e);

Binary file not shown.

View File

@ -522,12 +522,12 @@
<message>
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="712"/>
<source>Activated LAN</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="721"/>
<source>Inactivated LAN</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="814"/>
@ -1026,12 +1026,12 @@
<message>
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="73"/>
<source>Activated WLAN</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="83"/>
<source>Other WLAN</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>More...</source>