mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
update qrc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user