gui: Add icon

Not the best on dark themes, better than nothing for now.
这个提交包含在:
Albert S. 2022-04-28 09:13:34 +02:00
父节点 def766ba67
当前提交 9d160ed7a0
共有 3 个文件被更改,包括 24 次插入0 次删除

查看文件

@ -74,3 +74,5 @@ else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shar
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shared/release/shared.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shared/debug/shared.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../shared/libshared.a
RESOURCES = ../icon.svg

查看文件

@ -157,6 +157,7 @@ int main(int argc, char *argv[])
}
// Keep this post sandbox, afterwards does not work (suspect due to threads, but unconfirmed)
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/icon.svg"));
qRegisterMetaType<QVector<SearchResult>>("QVector<SearchResult>");
qRegisterMetaType<QVector<PreviewResultPdf>>("QVector<PreviewResultPdf>");

21
icon.svg 普通文件

文件差异因一行或多行过长而隐藏

之后

宽度:  |  高度:  |  大小: 13 KiB