style improve
This commit is contained in:
@@ -30,7 +30,6 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
|
||||
"QWidget#broadcast_widget{border:2px solid #515151; border-radius: 20px; background-color:black}"
|
||||
"QWidget#broadcast_widget QLabel{background-color:black}"
|
||||
"QLabel#lbl_protocol{font-size:32px; margin:0; color:silver}"
|
||||
// "QLabel#viewer{border:1px solid yellow}"
|
||||
"QLabel#lbl_title,QLabel#lbl_ptitle{font-size:20px;margin:0; border-bottom:1px solid silver}"
|
||||
"QLabel#lbl_end{font-size:20px;margin:0; border-top:1px solid #0078d8}"
|
||||
"QLabel#lbl_e{font-size:20px;}"
|
||||
|
||||
@@ -53,7 +53,7 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||
ui(new Ui::MainWindow)
|
||||
{
|
||||
|
||||
this->loadStyleSheet("Dark");
|
||||
this->loadStyleSheet("Dark2");
|
||||
ui->setupUi(this);
|
||||
tab = new QTabWidget(this);
|
||||
tab->setTabPosition(QTabWidget::South);
|
||||
|
||||
@@ -23,7 +23,7 @@ networkCfgDialog::networkCfgDialog(QWidget* parent) :
|
||||
msgDialog->hide();
|
||||
|
||||
ui->sw_dhcp->setChecked(true);
|
||||
ui->sw_dhcp->setButtonStyle(ImageSwitch::ButtonStyle_1);
|
||||
//ui->sw_dhcp->setButtonStyle(ImageSwitch::ButtonStyle_1);
|
||||
|
||||
|
||||
model_addr = new NetCfgTableModel(this);
|
||||
@@ -161,7 +161,10 @@ networkCfgDialog::networkCfgDialog(QWidget* parent) :
|
||||
{
|
||||
applyData();
|
||||
});
|
||||
|
||||
connect(ui->btn_group->button(QDialogButtonBox::Cancel), &QPushButton::clicked, [=]()
|
||||
{
|
||||
reject();
|
||||
});
|
||||
ui->tabWidget->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,17 @@ padding: 2px;
|
||||
|
||||
QTabBar::tab:selected, QTabBar::tab:hover {
|
||||
border-bottom:5px solid #4a88c7;
|
||||
background: #505050;}</string>
|
||||
background: #505050;}
|
||||
|
||||
QLineEdit#led_inface{font-size:15px;border: 0px;}</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QWidget" name="formWidget" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="title">
|
||||
<property name="text">
|
||||
@@ -62,7 +67,7 @@ background: #505050;}</string>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
@@ -435,13 +440,6 @@ background: #505050;}</string>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_3" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="output">
|
||||
<property name="enabled">
|
||||
@@ -456,6 +454,13 @@ background: #505050;}</string>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="btn_group">
|
||||
<property name="orientation">
|
||||
|
||||
@@ -37,5 +37,6 @@
|
||||
<file>icons/imageswitch/btncheckon2.png</file>
|
||||
<file>icons/imageswitch/btncheckon3.png</file>
|
||||
<file>stylesheet/Dark.qss</file>
|
||||
<file>stylesheet/Dark2.qss</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
1
src/stylesheet/Dark2.qss
Normal file
1
src/stylesheet/Dark2.qss
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
@@ -31,7 +31,7 @@ systemSettingForm::systemSettingForm(QWidget* parent) :
|
||||
ui->btnAccept->setIcon(QIcon(":/icons/selected.png"));
|
||||
ui->btnAccept->setIconSize(QSize(50, 50));
|
||||
ui->swt_verify->setChecked(true);
|
||||
ui->swt_verify->setButtonStyle(ImageSwitch::ButtonStyle_1);
|
||||
//ui->swt_verify->setButtonStyle(ImageSwitch::ButtonStyle_1);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -561,48 +561,48 @@
|
||||
<context>
|
||||
<name>ScanFormWidget</name>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="43"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="42"/>
|
||||
<source>Protocol</source>
|
||||
<translation>扫描协议</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="53"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="52"/>
|
||||
<source>LEFT</source>
|
||||
<translation>左侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="54"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="53"/>
|
||||
<source>RIGHT</source>
|
||||
<translation>右侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="73"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="72"/>
|
||||
<source>Refresh</source>
|
||||
<translation>空扫</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="74"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="73"/>
|
||||
<source>Preview</source>
|
||||
<translation>预扫</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="75"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="74"/>
|
||||
<source>Stop</source>
|
||||
<translation>停止</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="76"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="75"/>
|
||||
<source>Scan</source>
|
||||
<translation>扫描</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="96"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="95"/>
|
||||
<source>Preview Parameters</source>
|
||||
<translation>预览参数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="102"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="114"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="101"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="113"/>
|
||||
<source>some settings
|
||||
|
||||
parameters
|
||||
@@ -610,7 +610,7 @@ parameters
|
||||
<translation>XXX</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="108"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="107"/>
|
||||
<source>Scan Parameters</source>
|
||||
<translation>扫描参数</translation>
|
||||
</message>
|
||||
@@ -680,81 +680,81 @@ parameters
|
||||
<context>
|
||||
<name>networkCfgDialog</name>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="383"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="386"/>
|
||||
<source>Network Settings</source>
|
||||
<translation>网络配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="394"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="397"/>
|
||||
<source>Address</source>
|
||||
<translation>IP配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="385"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="388"/>
|
||||
<location filename="../network/networkcfgdialog.cpp" line="33"/>
|
||||
<source>IP Address</source>
|
||||
<translation>IP地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="384"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="387"/>
|
||||
<source>Network Setting</source>
|
||||
<translation type="unfinished">网络配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="386"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="389"/>
|
||||
<source>Dynamic Address</source>
|
||||
<translation>动态地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="387"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="390"/>
|
||||
<source>Dev</source>
|
||||
<translation>设备</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="389"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="392"/>
|
||||
<source>Subnet Mask</source>
|
||||
<translation>子网掩码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="390"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="393"/>
|
||||
<source>Additional Address</source>
|
||||
<translation>额外地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="391"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="398"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="394"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="401"/>
|
||||
<source>Add</source>
|
||||
<translation>新增</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="392"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="399"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="395"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="402"/>
|
||||
<source>Edit</source>
|
||||
<translation>编辑</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="393"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="400"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="396"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="403"/>
|
||||
<source>Delete</source>
|
||||
<translation>删除</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="401"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="404"/>
|
||||
<source>Routing</source>
|
||||
<translation>路由配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="396"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="399"/>
|
||||
<source>Default IPv4 Gateway</source>
|
||||
<translation>默认网关</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="397"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="400"/>
|
||||
<source>Routing Table</source>
|
||||
<translation>路由表</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="402"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="405"/>
|
||||
<source>Result</source>
|
||||
<translation>结果</translation>
|
||||
</message>
|
||||
|
||||
@@ -561,48 +561,48 @@
|
||||
<context>
|
||||
<name>ScanFormWidget</name>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="43"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="42"/>
|
||||
<source>Protocol</source>
|
||||
<translation>扫描协议</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="53"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="52"/>
|
||||
<source>LEFT</source>
|
||||
<translation>左侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="54"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="53"/>
|
||||
<source>RIGHT</source>
|
||||
<translation>右侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="73"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="72"/>
|
||||
<source>Refresh</source>
|
||||
<translation>空扫</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="74"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="73"/>
|
||||
<source>Preview</source>
|
||||
<translation>预扫</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="75"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="74"/>
|
||||
<source>Stop</source>
|
||||
<translation>停止</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="76"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="75"/>
|
||||
<source>Scan</source>
|
||||
<translation>扫描</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="96"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="95"/>
|
||||
<source>Preview Parameters</source>
|
||||
<translation>预览参数</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="102"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="114"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="101"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="113"/>
|
||||
<source>some settings
|
||||
|
||||
parameters
|
||||
@@ -610,7 +610,7 @@ parameters
|
||||
<translation>XXX</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../ScanFormWidget.cpp" line="108"/>
|
||||
<location filename="../ScanFormWidget.cpp" line="107"/>
|
||||
<source>Scan Parameters</source>
|
||||
<translation>扫描参数</translation>
|
||||
</message>
|
||||
@@ -680,81 +680,81 @@ parameters
|
||||
<context>
|
||||
<name>networkCfgDialog</name>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="383"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="386"/>
|
||||
<source>Network Settings</source>
|
||||
<translation>网络配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="394"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="397"/>
|
||||
<source>Address</source>
|
||||
<translation>IP配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="385"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="388"/>
|
||||
<location filename="../network/networkcfgdialog.cpp" line="33"/>
|
||||
<source>IP Address</source>
|
||||
<translation>IP地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="384"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="387"/>
|
||||
<source>Network Setting</source>
|
||||
<translation type="unfinished">网络配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="386"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="389"/>
|
||||
<source>Dynamic Address</source>
|
||||
<translation>动态地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="387"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="390"/>
|
||||
<source>Dev</source>
|
||||
<translation>设备</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="389"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="392"/>
|
||||
<source>Subnet Mask</source>
|
||||
<translation>子网掩码</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="390"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="393"/>
|
||||
<source>Additional Address</source>
|
||||
<translation>额外地址</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="391"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="398"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="394"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="401"/>
|
||||
<source>Add</source>
|
||||
<translation>新增</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="392"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="399"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="395"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="402"/>
|
||||
<source>Edit</source>
|
||||
<translation>编辑</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="393"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="400"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="396"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="403"/>
|
||||
<source>Delete</source>
|
||||
<translation>删除</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="401"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="404"/>
|
||||
<source>Routing</source>
|
||||
<translation>路由配置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="396"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="399"/>
|
||||
<source>Default IPv4 Gateway</source>
|
||||
<translation>默认网关</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="397"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="400"/>
|
||||
<source>Routing Table</source>
|
||||
<translation>路由表</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="402"/>
|
||||
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="405"/>
|
||||
<source>Result</source>
|
||||
<translation>结果</translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user