add signal communication with ukui control center
24
.qmake.stash
|
@ -1,24 +0,0 @@
|
|||
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
|
||||
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 9
|
||||
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2
|
||||
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 1
|
||||
QMAKE_CXX.COMPILER_MACROS = \
|
||||
QT_COMPILER_STDCXX \
|
||||
QMAKE_GCC_MAJOR_VERSION \
|
||||
QMAKE_GCC_MINOR_VERSION \
|
||||
QMAKE_GCC_PATCH_VERSION
|
||||
QMAKE_CXX.INCDIRS = \
|
||||
/usr/include/c++/9 \
|
||||
/usr/include/x86_64-linux-gnu/c++/9 \
|
||||
/usr/include/c++/9/backward \
|
||||
/usr/lib/gcc/x86_64-linux-gnu/9/include \
|
||||
/usr/local/include \
|
||||
/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed \
|
||||
/usr/include/x86_64-linux-gnu \
|
||||
/usr/include
|
||||
QMAKE_CXX.LIBDIRS = \
|
||||
/usr/lib/gcc/x86_64-linux-gnu/9 \
|
||||
/usr/lib/x86_64-linux-gnu \
|
||||
/usr/lib \
|
||||
/lib/x86_64-linux-gnu \
|
||||
/lib
|
|
@ -20,7 +20,6 @@ Vcs-Browser: https://github.com/ukui/kylin-nm
|
|||
Package: kylin-nm
|
||||
Architecture: any
|
||||
Depends: network-manager (>=1.12.4),
|
||||
libnotify-bin,
|
||||
${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Description: Gui Applet tool for display and edit network simply
|
||||
|
|
|
@ -1 +1 @@
|
|||
3.0 (quilt)
|
||||
3.0 (native)
|
||||
|
|
|
@ -31,6 +31,7 @@ KylinDBus::KylinDBus(MainWindow *mainWindow, QObject *parent) :QObject(parent)
|
|||
getPhysicalCarrierState(0); //初始化获取网线插入状态
|
||||
getLanHwAddressState(); //获取有线网Mac地址
|
||||
getWiredCardName();
|
||||
getWifiSwitchState();
|
||||
|
||||
QDBusConnection::systemBus().connect(QString("org.freedesktop.NetworkManager"),
|
||||
QString("/org/freedesktop/NetworkManager"),
|
||||
|
@ -431,3 +432,63 @@ int KylinDBus::getTaskbarHeight(QString str)
|
|||
QDBusReply<int> reply = interface.call("GetPanelSize", str);
|
||||
return reply;
|
||||
}
|
||||
|
||||
void KylinDBus::getWifiSwitchState()
|
||||
{
|
||||
if(QGSettings::isSchemaInstalled("org.ukui.control-center.wifi.switch")) {
|
||||
|
||||
m_gsettings = new QGSettings("org.ukui.control-center.wifi.switch");
|
||||
|
||||
// 监听key的value是否发生了变化
|
||||
connect(m_gsettings, &QGSettings::changed, this, [=] (const QString &key) {
|
||||
|
||||
if (key == "switch") {
|
||||
bool judge = getSwitchStatus(key);
|
||||
if (judge){
|
||||
mw->onBtnWifiClicked(1); //打开wifi开关
|
||||
}else{
|
||||
mw->onBtnWifiClicked(2); //关闭wifi开关
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
bool KylinDBus::getSwitchStatus(QString key){
|
||||
if (!m_gsettings) {
|
||||
return true;
|
||||
}
|
||||
const QStringList list = m_gsettings->keys();
|
||||
if (!list.contains(key)) {
|
||||
return true;
|
||||
}
|
||||
bool res = m_gsettings->get(key).toBool();
|
||||
return res;
|
||||
}
|
||||
|
||||
void KylinDBus::wifiSwitchSlot(bool signal){
|
||||
if(!m_gsettings) {
|
||||
return ;
|
||||
}
|
||||
|
||||
const QStringList list = m_gsettings->keys();
|
||||
|
||||
if (!list.contains("switch")) {
|
||||
return ;
|
||||
}
|
||||
m_gsettings->set("switch",signal);
|
||||
}
|
||||
|
||||
void KylinDBus::wifiCardSlot(bool signal)
|
||||
{
|
||||
if(!m_gsettings) {
|
||||
return ;
|
||||
}
|
||||
|
||||
const QStringList list = m_gsettings->keys();
|
||||
|
||||
if (!list.contains("wificard")) {
|
||||
return ;
|
||||
}
|
||||
m_gsettings->set("wificard",signal);
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <QDBusObjectPath>
|
||||
#include <QVariant>
|
||||
#include <QVariantMap>
|
||||
#include <QGSettings/QGSettings>
|
||||
#include <QTimer>
|
||||
|
||||
class MainWindow;
|
||||
|
@ -28,6 +29,11 @@ public:
|
|||
int getTaskbarPos(QString str);
|
||||
int getTaskbarHeight(QString str);
|
||||
|
||||
void getWifiSwitchState();
|
||||
bool getSwitchStatus(QString key);
|
||||
void wifiSwitchSlot(bool signal);
|
||||
void wifiCardSlot(bool signal);
|
||||
|
||||
QDBusObjectPath wiredPath;
|
||||
QDBusObjectPath wirelessPath;
|
||||
|
||||
|
@ -63,6 +69,8 @@ private:
|
|||
bool isRunningFunction = false;
|
||||
QTimer *time;
|
||||
|
||||
QGSettings *m_gsettings;
|
||||
|
||||
signals:
|
||||
void updateWiredList(int n);
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ CONFIG += release
|
|||
#PKGCONFIG += libnm glib-2.0 gio-2.0 dbus-glib-1
|
||||
#PKGCONFIG += Qt5Svg
|
||||
|
||||
LIBS += -L/usr/lib/ -lgsettings-qt
|
||||
|
||||
target.path = /usr/bin
|
||||
target.source += $$TARGET
|
||||
|
@ -67,7 +68,8 @@ SOURCES += \
|
|||
wireless-security/dlgconnhidwifileap.cpp \
|
||||
wireless-security/dlgconnhidwifiwpa.cpp \
|
||||
kylin-dbus-interface.cpp \
|
||||
hot-spot/dlghotspotcreate.cpp
|
||||
hot-spot/dlghotspotcreate.cpp \
|
||||
wireless-security/kylinheadfile.cpp
|
||||
|
||||
HEADERS += \
|
||||
mainwindow.h \
|
||||
|
@ -121,3 +123,5 @@ unix {
|
|||
|
||||
TRANSLATIONS = translations/kylin-nm_zh_CN.ts \
|
||||
translations/kylin-nm_bo.ts
|
||||
|
||||
DISTFILES +=
|
||||
|
|
|
@ -48,13 +48,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
setProperty("blurRegion", QRegion(path.toFillPolygon().toPolygon()));
|
||||
|
||||
this->setStyleSheet("QWidget{border:none;border-radius:6px;}");
|
||||
this->setStyleSheet("QToolTip{background:rgba(26,26,26,0.7);"
|
||||
"font: 14px;"
|
||||
"color:rgba(255,255,255,1);"
|
||||
"border-radius: 3px;"
|
||||
"border:1px solid rgba(255,255,255,0.2);"
|
||||
"padding: 0px 5px;"
|
||||
"outline:none;}");
|
||||
|
||||
UseQssFile::setStyle("style.qss");
|
||||
// setStyleSheet("QToolTip{background:rgba(26,26,26,0.7);"
|
||||
// "font: 14px;"
|
||||
// "color:rgba(255,255,255,1);"
|
||||
// "border-radius: 3px;"
|
||||
// "border:1px solid rgba(255,255,255,0.2);"
|
||||
// "padding: 0px 5px;"
|
||||
// "outline:none;}");
|
||||
|
||||
ui->centralWidget->setStyleSheet("#centralWidget{border:1px solid rgba(255,255,255,0.05);border-radius:6px;background:rgba(19,19,20,0.9);}");
|
||||
|
||||
|
@ -191,7 +193,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
scrollAreal->viewport()->setStyleSheet("background-color:transparent;");
|
||||
scrollAreal->verticalScrollBar()->setStyleSheet(scrollBarQss);
|
||||
|
||||
|
||||
scrollAreaw->setStyleSheet("QScrollArea{border:none;}");
|
||||
scrollAreaw->viewport()->setStyleSheet("background-color:transparent;");
|
||||
scrollAreaw->verticalScrollBar()->setStyleSheet(scrollBarQss);
|
||||
|
@ -269,6 +270,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
trayIcon->show();
|
||||
|
||||
connect(ui->btnNetList, &QPushButton::clicked, this, &MainWindow::onBtnNetListClicked);
|
||||
connect(ui->btnWifi, &QPushButton::clicked, this, &MainWindow::onBtnWifiClicked);
|
||||
|
||||
auto app = static_cast<QApplication*>(QCoreApplication::instance());
|
||||
app->setStyle(new CustomStyle());
|
||||
|
@ -863,7 +865,7 @@ void MainWindow::onWirelessDeviceAdded(QDBusObjectPath objPath)
|
|||
} else {
|
||||
is_wireless_adapter_ready = 0;
|
||||
}
|
||||
on_btnWifi_clicked();
|
||||
onBtnWifiClicked(0);
|
||||
}
|
||||
void MainWindow::onWirelessDeviceRemoved(QDBusObjectPath objPath)
|
||||
{
|
||||
|
@ -873,7 +875,7 @@ void MainWindow::onWirelessDeviceRemoved(QDBusObjectPath objPath)
|
|||
if (objKyDBus->wirelessPath.path() == objPath.path()){
|
||||
is_wireless_adapter_ready = 0;
|
||||
}
|
||||
on_btnWifi_clicked();
|
||||
onBtnWifiClicked(0);
|
||||
}
|
||||
void MainWindow::checkIsWirelessDeviceOn()
|
||||
{
|
||||
|
@ -1370,15 +1372,19 @@ void MainWindow::on_btnNet_clicked()
|
|||
this->startLoading();
|
||||
}
|
||||
|
||||
void MainWindow::on_btnWifi_clicked()
|
||||
void MainWindow::onBtnWifiClicked(int flag)
|
||||
{
|
||||
//当连接上无线网卡时才能打开wifi开关
|
||||
qDebug()<<"the value of flag = "<<flag;
|
||||
|
||||
if(is_wireless_adapter_ready == 1){
|
||||
// 当连接上无线网卡时才能打开wifi开关
|
||||
// 网络开关关闭时,点击Wifi开关时,程序先打开有线开关
|
||||
if(checkLanOn()){
|
||||
if (flag == 0) {
|
||||
if(checkWlOn()){
|
||||
lbTopWifiList->hide();
|
||||
btnAddNet->hide();
|
||||
objKyDBus->wifiSwitchSlot(false);
|
||||
|
||||
QThread *t = new QThread();
|
||||
BackThread *bt = new BackThread();
|
||||
bt->moveToThread(t);
|
||||
|
@ -1394,6 +1400,9 @@ void MainWindow::on_btnWifi_clicked()
|
|||
is_stop_check_net_state = 1;
|
||||
lbTopWifiList->show();
|
||||
btnAddNet->show();
|
||||
objKyDBus->wifiCardSlot(true);
|
||||
objKyDBus->wifiSwitchSlot(true);
|
||||
|
||||
QThread *t = new QThread();
|
||||
BackThread *bt = new BackThread();
|
||||
bt->moveToThread(t);
|
||||
|
@ -1406,16 +1415,13 @@ void MainWindow::on_btnWifi_clicked()
|
|||
this->startLoading();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(!checkWlOn()){
|
||||
QString txt(tr("keep wired network switch is on before turning on wireless switch"));
|
||||
QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800";
|
||||
system(cmd.toUtf8().data());
|
||||
|
||||
} else if(flag == 1) {
|
||||
if (is_fly_mode_on == 0){
|
||||
on_btnWifiList_clicked();
|
||||
is_stop_check_net_state = 1;
|
||||
lbTopWifiList->show();
|
||||
btnAddNet->show();
|
||||
|
||||
QThread *t = new QThread();
|
||||
BackThread *bt = new BackThread();
|
||||
bt->moveToThread(t);
|
||||
|
@ -1425,18 +1431,40 @@ void MainWindow::on_btnWifi_clicked()
|
|||
connect(bt, SIGNAL(launchLanDone()), this, SLOT(launchLanDone()));
|
||||
connect(bt, SIGNAL(btFinish()), t, SLOT(quit()));
|
||||
t->start();
|
||||
this->startLoading();
|
||||
}
|
||||
} else if(flag == 2) {
|
||||
lbTopWifiList->hide();
|
||||
btnAddNet->hide();
|
||||
|
||||
QThread *t = new QThread();
|
||||
BackThread *bt = new BackThread();
|
||||
bt->moveToThread(t);
|
||||
connect(t, SIGNAL(finished()), t, SLOT(deleteLater()));
|
||||
connect(t, SIGNAL(started()), bt, SLOT(execDisWifi()));
|
||||
connect(bt, SIGNAL(disWifiDone()), this, SLOT(disWifiDone()));
|
||||
connect(bt, SIGNAL(btFinish()), t, SLOT(quit()));
|
||||
t->start();
|
||||
this->startLoading();
|
||||
} else {
|
||||
qDebug()<<"receive an invalid value in function onBtnWifiClicked";
|
||||
syslog(LOG_DEBUG, "receive an invalid value in function onBtnWifiClicked");
|
||||
}
|
||||
//this->startLoading();
|
||||
|
||||
} else {
|
||||
lbTopWifiList->hide();
|
||||
btnAddNet->hide();
|
||||
if (flag == 0) {
|
||||
objKyDBus->wifiSwitchSlot(false);
|
||||
objKyDBus->wifiCardSlot(false);
|
||||
}
|
||||
|
||||
QString txt(tr("please insert the wireless network adapter"));
|
||||
QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800";
|
||||
system(cmd.toUtf8().data());
|
||||
keepDisWifiState();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::onBtnNetListClicked(int flag)
|
||||
|
@ -2374,7 +2402,8 @@ void MainWindow::keepDisWifiState()
|
|||
this->scrollAreaw->show();
|
||||
this->topWifiListWidget->show();
|
||||
|
||||
// this->stopLoading();
|
||||
// this->stopLoading();
|
||||
getActiveInfo();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2385,7 +2414,7 @@ void MainWindow::on_btnFlyMode_clicked()
|
|||
ui->lbFlyBG->setStyleSheet(btnOnQss);
|
||||
is_fly_mode_on = 1;
|
||||
|
||||
on_btnWifi_clicked();
|
||||
onBtnWifiClicked(0);
|
||||
on_btnWifiList_clicked();
|
||||
} else {
|
||||
ui->lbFlyImg->setStyleSheet("QLabel{background-image:url(:/res/x/fly-mode-off.svg);}");
|
||||
|
|
|
@ -105,7 +105,7 @@ public:
|
|||
int is_wireless_adapter_ready = 1; //主机是否插入无线网卡
|
||||
int is_keep_wifi_turn_on_state = 1; //是否要执行wifi开关变为打开样式
|
||||
int is_stop_check_net_state = 0; //是否要在进行其他操作时停止检查网络状态
|
||||
int is_fly_mode_on = 0; //是否打开飞行模式
|
||||
int is_fly_mode_on = 0; //是否已经打开飞行模式
|
||||
int is_hot_sopt_on = 0; //是否已经打开热点
|
||||
|
||||
QString currSelNetName = ""; //当前ScrollArea中选中的网络名称
|
||||
|
@ -127,6 +127,8 @@ public slots:
|
|||
void on_btnHotspot_clicked();
|
||||
void on_btnHotspotState();
|
||||
|
||||
void onBtnWifiClicked(int flag = 0); //flag =0为打开、1为关闭、2为其他
|
||||
|
||||
private:
|
||||
void checkSingle();
|
||||
void initNetwork();
|
||||
|
@ -203,7 +205,6 @@ private slots:
|
|||
bool nativeEvent(const QByteArray &eventType, void *message, long *result);
|
||||
|
||||
void on_btnNet_clicked();
|
||||
void on_btnWifi_clicked();
|
||||
void on_btnWifiList_clicked();
|
||||
void onBtnNetListClicked(int flag=0);
|
||||
|
||||
|
|
26
nmqrc.qrc
|
@ -1,25 +1,6 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>res/s/wifi-full.png</file>
|
||||
<file>res/s/wifi-high.png</file>
|
||||
<file>res/s/wifi-medium.png</file>
|
||||
<file>res/s/wifi-low.png</file>
|
||||
<file>res/s/wifi-none.png</file>
|
||||
<file>res/s/wifi-full-secure.png</file>
|
||||
<file>res/s/wifi-high-secure.png</file>
|
||||
<file>res/s/wifi-medium-secure.png</file>
|
||||
<file>res/s/wifi-low-secure.png</file>
|
||||
<file>res/s/wifi-none-secure.png</file>
|
||||
<file>res/x/network-error.png</file>
|
||||
<file>res/x/network-line.png</file>
|
||||
<file>res/x/network-offline.png</file>
|
||||
<file>res/x/setup.png</file>
|
||||
<file>res/x/wifi-error.png</file>
|
||||
<file>res/x/wifi-line.png</file>
|
||||
<file>res/x/wifi-offline.png</file>
|
||||
<file>res/s/pbad.png</file>
|
||||
<file>res/s/pgood.png</file>
|
||||
<file>res/s/pnormal.png</file>
|
||||
<file>res/s/conning-b/1.png</file>
|
||||
<file>res/s/conning-b/2.png</file>
|
||||
<file>res/s/conning-b/3.png</file>
|
||||
|
@ -32,11 +13,7 @@
|
|||
<file>res/s/conning-b/10.png</file>
|
||||
<file>res/s/conning-b/11.png</file>
|
||||
<file>res/s/conning-b/12.png</file>
|
||||
<file>res/s/setting.png</file>
|
||||
<file>res/g/triangle.png</file>
|
||||
<file>res/g/down_arrow.png</file>
|
||||
<file>res/s/network-line.png</file>
|
||||
<file>res/s/network-offline.png</file>
|
||||
<file>res/s/conning-s/1.png</file>
|
||||
<file>res/s/conning-s/2.png</file>
|
||||
<file>res/s/conning-s/3.png</file>
|
||||
|
@ -61,8 +38,6 @@
|
|||
<file>res/s/rescan/10.png</file>
|
||||
<file>res/s/rescan/11.png</file>
|
||||
<file>res/s/rescan/12.png</file>
|
||||
<file>res/h/add-hide-wifi.png</file>
|
||||
<file>res/h/add-hide-wifi.svg</file>
|
||||
<file>res/h/hide-pwd.png</file>
|
||||
<file>res/h/right-pwd.png</file>
|
||||
<file>res/h/show-pwd.png</file>
|
||||
|
@ -99,5 +74,6 @@
|
|||
<file>res/s/conning-a/6.png</file>
|
||||
<file>res/s/conning-a/7.png</file>
|
||||
<file>res/s/conning-a/8.png</file>
|
||||
<file>qss/style.qss</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
QToolTip{
|
||||
background:rgba(26,26,26,0.7);
|
||||
font: 14px;
|
||||
color:rgba(255,255,255,1);
|
||||
border-radius: 3px;
|
||||
border:1px solid rgba(255,255,255,0.2);
|
||||
padding: 0px 5px;
|
||||
outline:none;
|
||||
}
|
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 325 B |
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="图层_25" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="16px" height="16px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g id="_16">
|
||||
<rect x="13" y="9" class="st0" width="1" height="1"/>
|
||||
<path class="st0" d="M15,12v-2h-1v2h-1v-2h-1v2h-1v3h5v-3H15z"/>
|
||||
<path class="st0" d="M8,14.5c-1,0-1.8-0.8-1.8-1.8S7,10.9,8,10.9s1.8,0.8,1.8,1.8S9,14.5,8,14.5L8,14.5z"/>
|
||||
<path class="st0" d="M5.4,10.3c1.4-1.4,3.6-1.4,5-0.1l0.1,0.1l0.7-0.7C9.5,7.8,6.6,7.8,4.9,9.5L4.8,9.6L5.4,10.3z"/>
|
||||
<path class="st0" d="M3.1,7.9c2.7-2.7,7-2.8,9.8-0.1L13,7.9l0.7-0.7c-3.1-3.1-8-3.1-11.1-0.1L2.5,7.2L3.1,7.9z"/>
|
||||
<path class="st0" d="M0.7,5.5c4-4,10.5-4.1,14.5-0.1l0.1,0.1L16,4.8C11.6,0.4,4.5,0.4,0.1,4.7L0,4.8L0.7,5.5z"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1010 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.4 KiB |
BIN
res/s/error.png
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.3 KiB |
BIN
res/s/pbad.png
Before Width: | Height: | Size: 175 B |
BIN
res/s/pgood.png
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.3 KiB |
28
utils.h
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
|
||||
#include <QStyle>
|
||||
#include <QProxyStyle>
|
||||
#include <QStyleFactory>
|
||||
|
@ -10,12 +12,38 @@
|
|||
#include <QPainter>
|
||||
#include <QStyleOptionSlider>
|
||||
|
||||
#include <QFile>
|
||||
#include <QApplication>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
* \brief The UseQssFile class
|
||||
* \details
|
||||
* 通过QSS文件设置样式
|
||||
*/
|
||||
class UseQssFile
|
||||
{
|
||||
public:
|
||||
static void setStyle(const QString &style)
|
||||
{
|
||||
QString styleName = ":/qss/" + style;
|
||||
|
||||
QFile qss(styleName);
|
||||
qss.open(QFile::ReadOnly);
|
||||
qApp->setStyleSheet(qss.readAll());
|
||||
qss.close();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
* \brief The NetworkSpeed class
|
||||
* \details
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "ui_dlgconnhidwifi.h"
|
||||
#include "backthread.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <QStandardItemModel>
|
||||
|
@ -45,37 +46,25 @@ DlgConnHidWifi::DlgConnHidWifi(int type, MainWindow *mainWindow, QWidget *parent
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
ui->lbConn->setText(tr("Connection")); //连接设置:
|
||||
|
|
|
@ -49,6 +49,7 @@ private:
|
|||
int isUsed;//=0 current wifi not used before; >=1 used
|
||||
MainWindow *mw;
|
||||
QString strWifiname;
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss;
|
||||
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
|
|
|
@ -38,45 +38,30 @@ DlgConnHidWifiLeap::DlgConnHidWifiLeap(QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
ui->lbConn->setText(tr("Connection")); //连接设置:
|
||||
|
|
|
@ -42,6 +42,8 @@ private:
|
|||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -40,73 +40,43 @@ DlgConnHidWifiSecFast::DlgConnHidWifiSecFast(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAnonyId->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->checkBoxAutoPCA->setStyleSheet("QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPCAfile->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbInnerAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAnonyId->setStyleSheet(objQss.labelQss);
|
||||
ui->checkBoxAutoPCA->setStyleSheet(objQss.checkBoxQss);
|
||||
ui->lbPCAfile->setStyleSheet(objQss.labelQss);
|
||||
ui->lbInnerAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxAutoPCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leAnonyId->setStyleSheet(objQss.leQss);
|
||||
ui->cbxAutoPCA->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAutoPCA->setView(new QListView());
|
||||
ui->lePCAfile->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxInnerAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->lePCAfile->setStyleSheet(objQss.leQss);
|
||||
ui->cbxInnerAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxInnerAuth->setView(new QListView());
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
ui->lbConn->setText(tr("Connection")); //连接设置:
|
||||
|
|
|
@ -48,6 +48,8 @@ private:
|
|||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -40,53 +40,33 @@ DlgConnHidWifiSecLeap::DlgConnHidWifiSecLeap(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBox->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->checkBox->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
ui->lbConn->setText(tr("Connection")); //连接设置:
|
||||
|
|
|
@ -43,6 +43,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -40,88 +40,50 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAnonyId->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbDomain->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCA->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCaPwd->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPEAPver->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbInnerAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAnonyId->setStyleSheet(objQss.labelQss);
|
||||
ui->lbDomain->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCA->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCaPwd->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPEAPver->setStyleSheet(objQss.labelQss);
|
||||
ui->lbInnerAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leAnonyId->setStyleSheet(objQss.leQss);
|
||||
ui->leDomain->setStyleSheet(objQss.leQss);
|
||||
ui->cbxCA->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxCA->setView(new QListView());
|
||||
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->checkBoxCA->setStyleSheet("QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->cbxPEAPver->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leCaPwd->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
ui->checkBoxCA->setStyleSheet(objQss.checkBoxCAQss);
|
||||
ui->cbxPEAPver->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxPEAPver->setView(new QListView());
|
||||
ui->cbxInnerAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxInnerAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxInnerAuth->setView(new QListView());
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwdSec->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
|
|
|
@ -55,6 +55,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -40,53 +40,33 @@ DlgConnHidWifiSecPwd::DlgConnHidWifiSecPwd(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBox->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->checkBox->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
|
|
|
@ -44,6 +44,8 @@ private:
|
|||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -39,88 +39,50 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbIdentity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbDomain->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCA->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCaPwd->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserCertify->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserCertifyPwd->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserPriKey->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserKeyPwd->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbIdentity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbDomain->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCA->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCaPwd->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserCertify->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserCertifyPwd->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserPriKey->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserKeyPwd->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.lineQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leIdentity->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leIdentity->setStyleSheet(objQss.lineQss);
|
||||
ui->leDomain->setStyleSheet(objQss.lineQss);
|
||||
ui->cbxCA->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxCA->setView(new QListView());
|
||||
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->checkBoxCA->setStyleSheet("QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->cbxUserCertify->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leCaPwd->setStyleSheet(objQss.lineQss);
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
ui->checkBoxCA->setStyleSheet(objQss.checkBoxCAQss);
|
||||
ui->cbxUserCertify->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxUserCertify->setView(new QListView());
|
||||
ui->leUserCertifyPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxUserPriKey->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leUserCertifyPwd->setStyleSheet(objQss.lineQss);
|
||||
ui->cbxUserPriKey->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxUserPriKey->setView(new QListView());
|
||||
ui->leUserKeyPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserKeyPwd->setStyleSheet(objQss.lineQss);
|
||||
ui->checkBoxPwdSec->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
ui->checkBoxCA->setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
|
|
|
@ -59,6 +59,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -40,80 +40,47 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAnonyId->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbDomain->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCA->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbCaPwd->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbInnerAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbUserName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAnonyId->setStyleSheet(objQss.labelQss);
|
||||
ui->lbDomain->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCA->setStyleSheet(objQss.labelQss);
|
||||
ui->lbCaPwd->setStyleSheet(objQss.labelQss);
|
||||
ui->lbInnerAuth->setStyleSheet(objQss.labelQss);
|
||||
ui->lbUserName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leAnonyId->setStyleSheet(objQss.leQss);
|
||||
ui->leDomain->setStyleSheet(objQss.leQss);
|
||||
ui->cbxCA->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxCA->setView(new QListView());
|
||||
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->checkBoxCA->setStyleSheet("QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->cbxInnerAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leCaPwd->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
ui->checkBoxCA->setStyleSheet(objQss.checkBoxCAQss);
|
||||
ui->cbxInnerAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxInnerAuth->setView(new QListView());
|
||||
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->leUserName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwdSec->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
ui->checkBoxCA->setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
|
||||
|
|
|
@ -55,6 +55,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -39,59 +39,34 @@ DlgConnHidWifiWep::DlgConnHidWifiWep(int type, QWidget *parent) :
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.9);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbKey->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbWEPindex->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbAuth->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbKey->setStyleSheet(objQss.labelQss);
|
||||
ui->lbWEPindex->setStyleSheet(objQss.labelQss);
|
||||
ui->lbAuth->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->leKey->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->leKey->setStyleSheet(objQss.leQss);
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->cbxWEPindex->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxWEPindex->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxWEPindex->setView(new QListView());
|
||||
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxAuth->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxAuth->setView(new QListView());
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
|
||||
ui->lbLeftupTitle->setText(tr("Add hidden Wi-Fi")); //加入隐藏Wi-Fi
|
||||
ui->lbConn->setText(tr("Connection")); //连接设置:
|
||||
|
|
|
@ -40,6 +40,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "kylinheadfile.h"
|
||||
#include "backthread.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -44,43 +45,28 @@ DlgConnHidWifiWpa::DlgConnHidWifiWpa(int type, MainWindow *mainWindow, QWidget *
|
|||
|
||||
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
|
||||
MyQss objQss;
|
||||
|
||||
ui->lbBoder->setStyleSheet("QLabel{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
|
||||
ui->lbBoder->hide();
|
||||
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbNetName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbSecurity->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbPassword->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
|
||||
ui->lbConn->setStyleSheet(objQss.labelQss);
|
||||
ui->lbNetName->setStyleSheet(objQss.labelQss);
|
||||
ui->lbSecurity->setStyleSheet(objQss.labelQss);
|
||||
ui->lbPassword->setStyleSheet(objQss.labelQss);
|
||||
|
||||
ui->cbxConn->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->cbxConn->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxConn->setView(new QListView());
|
||||
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
|
||||
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
|
||||
ui->leNetName->setStyleSheet(objQss.leQss);
|
||||
ui->lePassword->setStyleSheet(objQss.leQss);
|
||||
ui->cbxSecurity->setStyleSheet(objQss.cbxQss);
|
||||
ui->cbxSecurity->setView(new QListView());
|
||||
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
|
||||
ui->checkBoxPwd->setStyleSheet(objQss.checkBoxQss);
|
||||
|
||||
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
||||
ui->btnConnect->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
||||
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
|
||||
ui->btnCancel->setStyleSheet(objQss.btnCancelQss);
|
||||
ui->btnConnect->setStyleSheet(objQss.btnConnQss);
|
||||
ui->lineUp->setStyleSheet(objQss.lineQss);
|
||||
ui->lineDown->setStyleSheet(objQss.lineQss);
|
||||
ui->btnCancel->setFocusPolicy(Qt::NoFocus);
|
||||
ui->checkBoxPwd->setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
|
|
|
@ -56,6 +56,9 @@ private:
|
|||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
|
||||
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss;
|
||||
|
||||
bool isPress;
|
||||
QPoint winPos;
|
||||
QPoint dragPos;
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#include "kylinheadfile.h"
|
||||
|
||||
MyQss::MyQss()
|
||||
{
|
||||
labelQss = "QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}";
|
||||
cbxQss = "QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
|
||||
"QComboBox::drop-down{border:0px;width:30px;}"
|
||||
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
|
||||
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
|
||||
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
|
||||
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}";
|
||||
leQss = "QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}";
|
||||
checkBoxQss = "QCheckBox {border:none;background:transparent;}"
|
||||
"QCheckBox::indicator {width: 18px; height: 9px;}"
|
||||
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
|
||||
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}";
|
||||
checkBoxCAQss = "QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}";
|
||||
btnCancelQss = "QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}";
|
||||
btnConnQss = "QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}";
|
||||
lineQss = "background:rgba(255,255,255,0.08);";
|
||||
}
|
|
@ -18,4 +18,13 @@
|
|||
#include <QListView>
|
||||
#include <QString>
|
||||
|
||||
class MyQss
|
||||
{
|
||||
public:
|
||||
MyQss();
|
||||
|
||||
QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss, checkBoxCAQss;
|
||||
|
||||
};
|
||||
|
||||
#endif // KYLINHEADFILE_H
|
||||
|
|