分割线颜色&bug#99710
This commit is contained in:
parent
6fcef8a81a
commit
028859d5e2
|
@ -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);
|
||||
|
|
|
@ -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.
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue