diff --git a/Logo-Spark.png b/Logo-Spark.png new file mode 100644 index 0000000..ba53cc8 Binary files /dev/null and b/Logo-Spark.png differ diff --git a/icons.qrc b/icons.qrc index 34c3342..5f7b0c6 100644 --- a/icons.qrc +++ b/icons.qrc @@ -31,4 +31,7 @@ icons/category_active_dark.svg icons/category_active.svg + + Logo-Spark.png + diff --git a/main.cpp b/main.cpp index 897471b..02e1c85 100644 --- a/main.cpp +++ b/main.cpp @@ -3,22 +3,31 @@ #include #include #include +#include DWIDGET_USE_NAMESPACE int main(int argc, char *argv[]) { DApplication::loadDXcbPlugin(); //让bar处在标题栏中 DApplication a(argc, argv); + DAboutDialog dialog; a.setAttribute(Qt::AA_UseHighDpiPixmaps); a.loadTranslator(); - - a.setOrganizationName("spark-union"); - a.setApplicationVersion(DApplication::buildVersion("2.0")); + a.setAboutDialog(&dialog); + dialog.setLicense("本程序按GPL第三版开源"); + dialog.setVersion(DApplication::buildVersion("2.0")); a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store"); - a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo + dialog.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo + + dialog.setProductName(QLabel::tr("Spark应用商店")); + dialog.setDescription(QLabel::tr("社区驱动的一款为第三方应用商店,为改变而生\n We born for change")); + dialog.setProductName(QLabel::tr("Spark应用商店")); + + + + dialog.setCompanyLogo(QPixmap(":/Logo-Spark.png")); + dialog.setWebsiteName("The Spark Project"); + dialog.setWebsiteLink("https://gitee.com/deepin-community-store"); - a.setProductName(QLabel::tr("Spark应用商店")); - a.setApplicationDescription(QLabel::tr("社区驱动的一款为第三方应用商店,为改变而生\n本程序按GPL第三版开源")); - a.setApplicationName(QLabel::tr("Spark应用商店")); Widget w; QDesktopWidget *s=DApplication::desktop(); int d_w=s->width(); diff --git a/spark-store.pro.user b/spark-store.pro.user index e5892e5..d937066 100644 --- a/spark-store.pro.user +++ b/spark-store.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId