update qrc

This commit is contained in:
arm64v8a
2022-09-25 13:41:54 +08:00
parent bbcd9df977
commit 45a07039af
9 changed files with 17 additions and 13 deletions

View File

@@ -1,20 +1,22 @@
#include "TrayIcon.hpp"
#include "main/NekoRay.hpp"
#include <QPainter>
QIcon TrayIcon::GetIcon(TrayIcon::TrayIconStatus status) {
QPixmap pixmap;
// software embedded icon
auto pixmap_read = QPixmap(":/nekoray/nekoray.png");
auto pixmap_read = QPixmap(":/neko/" + software_name.toLower() + ".png");
if (!pixmap_read.isNull()) pixmap = pixmap_read;
// software pack icon
pixmap_read = QPixmap("../nekoray.png");
pixmap_read = QPixmap("../" + software_name.toLower() + ".png");
if (!pixmap_read.isNull()) pixmap = pixmap_read;
// user icon
pixmap_read = QPixmap("./nekoray.png");
pixmap_read = QPixmap("./" + software_name.toLower() + ".png");
if (!pixmap_read.isNull()) pixmap = pixmap_read;
if (status == TrayIconStatus::NONE) return pixmap;