Change the style of setting button at left-down of mainwindow
This commit is contained in:
parent
6302964178
commit
7afc241ff2
|
@ -1,6 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>res/x/setup.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>
|
||||
|
@ -78,5 +77,6 @@
|
|||
<file>res/s/conning-s/10.png</file>
|
||||
<file>res/s/conning-s/11.png</file>
|
||||
<file>res/s/conning-s/12.png</file>
|
||||
<file>res/x/setup.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
BIN
res/x/setup.png
BIN
res/x/setup.png
Binary file not shown.
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 2.1 KiB |
|
@ -207,9 +207,9 @@ void MainWindow::editQssString()
|
|||
btnBgOnQss = "QLabel{min-width: 48px; min-height: 22px;max-width:48px; max-height: 22px;border-radius: 10px; background-color:rgba(61,107,229,1);}";
|
||||
btnBgHoverQss = "QLabel{border-radius: 4px; background-color:rgba(255,255,255,0.12)}";
|
||||
btnBgLeaveQss = "QLabel{border-radius: 4px; background-color:rgba(255,255,255,0)}";
|
||||
leftBtnQss = "QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);}"
|
||||
"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);}";
|
||||
leftBtnQss = "QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);}"
|
||||
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.12);}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.12);}";
|
||||
funcBtnQss = "QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
|
||||
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
|
||||
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}";
|
||||
|
@ -378,9 +378,9 @@ void MainWindow::createLeftAreaUI()
|
|||
ui->btnAdvConf->setFocusPolicy(Qt::NoFocus);
|
||||
QString txtAdvanced(tr("Advanced"));
|
||||
ui->btnAdvConf->setToolTip(txtAdvanced);
|
||||
ui->lbBtnConfImg->setStyleSheet("QLabel{background-image:url(:/res/x/setup.png);}");
|
||||
ui->lbBtnConfBG->hide();
|
||||
ui->lbBtnConfBG->setStyleSheet(btnOffQss);
|
||||
//ui->lbBtnConfImg->setStyleSheet("QLabel{background-image:url(:/res/x/setup.png);}");
|
||||
ui->btnConfImg->setStyleSheet("QPushButton{background-image:url(:/res/x/setup.png);}");
|
||||
//ui->btnConfImg->setIcon(QIcon::fromTheme("settings-app-symbolic.svg", QIcon(":/res/x/setup.png")) );
|
||||
}
|
||||
|
||||
// 初始化有线网列表
|
||||
|
@ -1755,12 +1755,12 @@ void MainWindow::on_btnAdvConf_clicked()
|
|||
|
||||
void MainWindow::on_btnAdvConf_pressed()
|
||||
{
|
||||
ui->lbBtnConfBG->setStyleSheet(btnOnQss);
|
||||
//ui->lbBtnConfBG->setStyleSheet(btnOnQss);
|
||||
}
|
||||
|
||||
void MainWindow::on_btnAdvConf_released()
|
||||
{
|
||||
ui->lbBtnConfBG->setStyleSheet(btnOffQss);
|
||||
//ui->lbBtnConfBG->setStyleSheet(btnOffQss);
|
||||
}
|
||||
|
||||
void MainWindow::on_btnFlyMode_clicked()
|
||||
|
|
|
@ -66,32 +66,6 @@
|
|||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="lbBtnConfBG">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>2</x>
|
||||
<y>490</y>
|
||||
<width>37</width>
|
||||
<height>37</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="lbBtnConfImg">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>498</y>
|
||||
<width>22</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="btnAdvConf">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
|
@ -303,6 +277,20 @@
|
|||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="btnConfImg">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>11</x>
|
||||
<y>499</y>
|
||||
<width>19</width>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<zorder>btnConfImg</zorder>
|
||||
<zorder>lbFlyBG</zorder>
|
||||
<zorder>lbHotBG</zorder>
|
||||
<zorder>lbFlyImg</zorder>
|
||||
|
@ -310,8 +298,6 @@
|
|||
<zorder>lbBtnNetBG</zorder>
|
||||
<zorder>btnNet</zorder>
|
||||
<zorder>lbBtnWifiBG</zorder>
|
||||
<zorder>lbBtnConfBG</zorder>
|
||||
<zorder>lbBtnConfImg</zorder>
|
||||
<zorder>btnAdvConf</zorder>
|
||||
<zorder>btnHotspot</zorder>
|
||||
<zorder>btnFlyMode</zorder>
|
||||
|
|
Loading…
Reference in New Issue