Update tray icons

This commit is contained in:
chenlelin 2020-05-23 20:26:35 +08:00
parent 442d74a3a3
commit d594ca4d85
26 changed files with 32 additions and 32 deletions

View File

@ -14,18 +14,6 @@
<file>res/s/conning-b/11.png</file>
<file>res/s/conning-b/12.png</file>
<file>res/g/down_arrow.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>
<file>res/s/conning-s/4.png</file>
<file>res/s/conning-s/5.png</file>
<file>res/s/conning-s/6.png</file>
<file>res/s/conning-s/7.png</file>
<file>res/s/conning-s/8.png</file>
<file>res/s/conning-s/9.png</file>
<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/s/rescan/1.png</file>
<file>res/s/rescan/2.png</file>
<file>res/s/rescan/3.png</file>
@ -77,5 +65,17 @@
<file>qss/style.qss</file>
<file>res/g/close_black.png</file>
<file>res/g/close_white.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>
<file>res/s/conning-s/4.png</file>
<file>res/s/conning-s/5.png</file>
<file>res/s/conning-s/6.png</file>
<file>res/s/conning-s/7.png</file>
<file>res/s/conning-s/8.png</file>
<file>res/s/conning-s/9.png</file>
<file>res/s/conning-s/10.png</file>
<file>res/s/conning-s/11.png</file>
<file>res/s/conning-s/12.png</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 623 B

BIN
res/s/conning-s/1x/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

BIN
res/s/conning-s/1x/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

BIN
res/s/conning-s/1x/11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

BIN
res/s/conning-s/1x/12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

BIN
res/s/conning-s/1x/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

BIN
res/s/conning-s/1x/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
res/s/conning-s/1x/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

BIN
res/s/conning-s/1x/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

BIN
res/s/conning-s/1x/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

BIN
res/s/conning-s/1x/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

BIN
res/s/conning-s/1x/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
res/s/conning-s/1x/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 613 B

View File

@ -587,25 +587,25 @@ void MainWindow::createTrayIcon()
trayIcon->setContextMenu(trayIconMenu);
// 初始化托盘所有Icon
iconLanOnline = QIcon::fromTheme("nm-device-wired");
iconLanOffline = QIcon::fromTheme("nm-no-connection");
iconWifiFull = QIcon::fromTheme("nm-signal-100");
iconWifiHigh = QIcon::fromTheme("nm-signal-75");
iconWifiMedium = QIcon::fromTheme("nm-signal-50");
iconWifiLow = QIcon::fromTheme("nm-signal-25");
iconLanOnline = QIcon::fromTheme("network-wired-symbolic");
iconLanOffline = QIcon::fromTheme("network-wired-offline-symbolic");
iconWifiFull = QIcon::fromTheme("network-wireless-signal-excellent-symbolic");
iconWifiHigh = QIcon::fromTheme("network-wireless-signal-good-symbolic");
iconWifiMedium = QIcon::fromTheme("network-wireless-signal-ok");
iconWifiLow = QIcon::fromTheme("network-wireless-signal-low");
loadIcons.append(QIcon(":/res/s/conning-s/1.png"));
loadIcons.append(QIcon(":/res/s/conning-s/2.png"));
loadIcons.append(QIcon(":/res/s/conning-s/3.png"));
loadIcons.append(QIcon(":/res/s/conning-s/4.png"));
loadIcons.append(QIcon(":/res/s/conning-s/5.png"));
loadIcons.append(QIcon(":/res/s/conning-s/6.png"));
loadIcons.append(QIcon(":/res/s/conning-s/7.png"));
loadIcons.append(QIcon(":/res/s/conning-s/8.png"));
loadIcons.append(QIcon(":/res/s/conning-s/9.png"));
loadIcons.append(QIcon(":/res/s/conning-s/10.png"));
loadIcons.append(QIcon(":/res/s/conning-s/11.png"));
loadIcons.append(QIcon(":/res/s/conning-s/12.png"));
loadIcons.append(QIcon::fromTheme("network-1"));
loadIcons.append(QIcon::fromTheme("network-2"));
loadIcons.append(QIcon::fromTheme("network-3"));
loadIcons.append(QIcon::fromTheme("network-4"));
loadIcons.append(QIcon::fromTheme("network-5"));
loadIcons.append(QIcon::fromTheme("network-6"));
loadIcons.append(QIcon::fromTheme("network-7"));
loadIcons.append(QIcon::fromTheme("network-8"));
loadIcons.append(QIcon::fromTheme("network-9"));
loadIcons.append(QIcon::fromTheme("network-10"));
loadIcons.append(QIcon::fromTheme("network-11"));
loadIcons.append(QIcon::fromTheme("network-12"));
iconTimer = new QTimer(this);
connect(iconTimer, SIGNAL(timeout()), this, SLOT(iconStep()));
@ -691,7 +691,7 @@ void MainWindow::handleIconClicked()
int n = objKyDBus->getTaskBarPos("position");
int m = objKyDBus->getTaskBarHeight("height");
int d = 3; //窗口边沿到任务栏距离
int d = 2; //窗口边沿到任务栏距离
if (screenGeometry.width() == availableGeometry.width() && screenGeometry.height() == availableGeometry.height()){
if(n == 0){
@ -751,7 +751,7 @@ void MainWindow::showTrayIconMenu()
int n = objKyDBus->getTaskBarPos("position");
int m = objKyDBus->getTaskBarHeight("height");
int d = 3; //窗口边沿到任务栏距离
int d = 4; //窗口边沿到任务栏距离
int s = 80; //窗口边沿到屏幕边沿距离
if (screenGeometry.width() == availableGeometry.width() && screenGeometry.height() == availableGeometry.height()){