新增图标

This commit is contained in:
2024-01-24 22:44:48 +08:00
parent 14ac76396e
commit 497b23fe8d
6 changed files with 24 additions and 2 deletions

1
Icon/deepin-wine-runner.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -7,5 +7,6 @@
<file>Icon/MessageBox/dialog-ok.svg</file>
<file>Icon/MessageBox/dialog-question.svg</file>
<file>Icon/MessageBox/dialog-warning.svg</file>
<file>Icon/deepin-wine-runner.svg</file>
</qresource>
</RCC>

View File

@@ -2,7 +2,7 @@ QT += core gui
PKGCONFIG += dtkcore dtkgui dtkwidget
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
VERSION = 1.0.0
CONFIG += c++17 link_pkgconfig
# You can make your code fail to compile if it uses deprecated APIs.

1
deepin-wine-runner.svg Executable file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -5,6 +5,7 @@
#include <DApplication>
#include <DMessageBox>
#include <iostream>
#include <DApplicationSettings>
using namespace Dtk::Widget;
using namespace std;
@@ -20,9 +21,20 @@ int main(int argc, char *argv[])
}
int fakeArgc = argc + 2;
DApplication a(fakeArgc, fakeArgs.data());
a.setApplicationLicense("GPLV3");
a.setOrganizationName("gfdgd_xi");
a.setApplicationName("deepin-wine-runner-aptss-installer");
a.setWindowIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
a.setApplicationDescription("Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序。原版的 Wine 只能使用命令操作且安装过程较为繁琐对小白不友好。于是该运行器为了解决该痛点内置了对Wine图形化的支持、Wine 安装器、微型应用商店、各种Wine工具、自制的Wine程序打包器、运行库安装工具等。");
a.setApplicationVersion("3.6.1");
a.setProductIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
a.setProductName("aptss 安装器");
a.setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
//DApplication::setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
DApplication::setOrganizationName("gfdgd_xi");
DApplication::setApplicationName("deepin-wine-runner-aptss-installer");
if(system("which aptss")){
DMessageBox::information(NULL, "错误", "无法检测到 aptss\n请确保您已安装星火应用商店并更新至最新版本");
return 1;
@@ -37,6 +49,7 @@ int main(int argc, char *argv[])
break;
}
}
DApplicationSettings settings; // 定义 DApplicationSettings自动保存主题设置
MainWindow w;
w.show();
return a.exec();

View File

@@ -13,6 +13,10 @@
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="windowIcon">
<iconset resource="Resources.qrc">
<normaloff>:/Icon/deepin-wine-runner.svg</normaloff>:/Icon/deepin-wine-runner.svg</iconset>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
@@ -57,6 +61,8 @@
</property>
</action>
</widget>
<resources/>
<resources>
<include location="Resources.qrc"/>
</resources>
<connections/>
</ui>