From 8ce6984336cc27b06e751d0f0ca0dc0cebdb9221 Mon Sep 17 00:00:00 2001 From: JackLee_CN <809262979@qq.com> Date: Thu, 31 Oct 2024 14:30:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9EditText=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/qss/dark_style.qss | 4 ++++ res/txt/about.txt | 26 +++++++++++++------------- src/xsteam_about_ui.cpp | 15 ++++++++------- src/xsteam_ui.cpp | 10 +++++----- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/res/qss/dark_style.qss b/res/qss/dark_style.qss index e4eaa02..e031271 100644 --- a/res/qss/dark_style.qss +++ b/res/qss/dark_style.qss @@ -33,6 +33,10 @@ padding-left:1px; padding-top:1px; } +QGroupBox { + color: #F2F2F2; +} + QTableView#GAME_INFO_TABLE::item:selected { background-color: #0078d4; } diff --git a/res/txt/about.txt b/res/txt/about.txt index 6c4ac75..781d551 100644 --- a/res/txt/about.txt +++ b/res/txt/about.txt @@ -1,16 +1,16 @@ - 作者申明 -本软件仅供学习和研究,软件内置数据仅限于测试. -开发者不对本软件所造成的计算机软件侵权法律问题承担任何法律责任. -禁止本软件源码和软件用于任何商业用途. -禁止任何人恶意举报本软件 -禁止任何人恶意盗窃本软件测试数据 +# 作者申明 +本软件仅供学习和研究,软件内置数据仅限于测试
+开发者不对本软件所造成的计算机软件侵权法律问题承担任何法律责任
+禁止本软件源码和软件用于任何商业用途
+禁止任何人恶意举报本软件
+禁止任何人恶意盗窃本软件测试数据
- 鸣谢列表 - 皓月代码托管平台 +# 鸣谢列表 +皓月代码托管平台
- About XSteam -software name:XSteam -builder:JackLee_CN -github:vek-zvo -src github(don't open) +# About XSteam +software name:XSteam
+builder:JackLee_CN
+github:vek-zvo
+src github(don't open)
diff --git a/src/xsteam_about_ui.cpp b/src/xsteam_about_ui.cpp index 2245183..001d1e6 100644 --- a/src/xsteam_about_ui.cpp +++ b/src/xsteam_about_ui.cpp @@ -8,6 +8,7 @@ xsteam_about_ui::xsteam_about_ui() copyright_tips_txt=new QLabel(tr("Copyright © 2024 JackLee_CN. All rights reserved.")); info = new QTextEdit(); info->setReadOnly(true); + info->toMarkdown(QTextDocument::MarkdownDialectGitHub); m_Layout->addWidget(info); f_Layout->addItem(sparcer_item); f_Layout->addWidget(copyright_tips_txt); @@ -34,12 +35,12 @@ void xsteam_about_ui::load_about() QByteArray line = file.readLine(); strs.append(QString::fromStdString(line.data())); } - strs.append(QString::fromStdString("编译环境")+"\n"); - strs.append("qt_version:"+QString::fromStdString(QT_VERSION_STR)+"\n"); - strs.append("gcc_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"\n"); - strs.append("g++_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"\n"); - strs.append("libcurl_version:"+QString::fromStdString(LIBCURL_VERSION_STR)+"\n"); - strs.append("libgit2_version:"+QString::fromStdString(LIBGIT2_VERSION_STR)+"\n"); - info->setPlainText(strs); + strs.append("# "+QString::fromStdString("编译环境")+"
"); + strs.append("qt_version:"+QString::fromStdString(QT_VERSION_STR)+"
"); + strs.append("gcc_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"
"); + strs.append("g++_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"
"); + strs.append("libcurl_version:"+QString::fromStdString(LIBCURL_VERSION_STR)+"
"); + strs.append("libgit2_version:"+QString::fromStdString(LIBGIT2_VERSION_STR)+"
"); + info->setMarkdown(strs); } } \ No newline at end of file diff --git a/src/xsteam_ui.cpp b/src/xsteam_ui.cpp index 718d8ff..71e9dd3 100644 --- a/src/xsteam_ui.cpp +++ b/src/xsteam_ui.cpp @@ -64,7 +64,7 @@ void xsteam_ui::xsteam_init_mind_layout() btn_run_steamdb->setObjectName("STEAM_DB"); btn_push_manifest = new QPushButton(tr("清单分享")); btn_push_manifest->setObjectName("PUSH_MANIFEST"); - //btn_push_manifest->setVisible(false); + btn_push_manifest->setVisible(false); server_layout->addWidget(server_tag); server_layout->addWidget(server_txt); @@ -492,7 +492,7 @@ void xsteam_ui::slots_push_manifest() void xsteam_ui::slots_open_server_edit() { xs_src_edit_ui = xsteam_src_edit_ui::Instance(); - xs_src_edit_ui->setMaximumSize(660, 580); + xs_src_edit_ui->setMaximumSize(width(), height()); xs_src_edit_ui->setGeometry(geometry()); connect(xs_src_edit_ui, SIGNAL(signals_update()), this, SLOT(slots_server_combobox_load_data())); xs_src_edit_ui->title()->set_font_style(); @@ -501,7 +501,7 @@ void xsteam_ui::slots_open_server_edit() void xsteam_ui::slots_open_update() { xs_update_ui = xsteam_update_ui::Instance(); - xs_update_ui->setMaximumSize(440, 580); + xs_update_ui->setMaximumSize(width(), height()); xs_update_ui->setGeometry(geometry()); xs_update_ui->title()->set_font_style(); xs_update_ui->exec(); @@ -509,7 +509,7 @@ void xsteam_ui::slots_open_update() void xsteam_ui::slots_open_setting() { xs_sets_ui = xsteam_set_ui::Instance(); - xs_sets_ui->setMaximumSize(660, 580); + xs_sets_ui->setMaximumSize(width(), height()); xs_sets_ui->setGeometry(geometry()); xs_sets_ui->title()->set_font_style(); xs_sets_ui->exec(); @@ -517,7 +517,7 @@ void xsteam_ui::slots_open_setting() void xsteam_ui::slots_open_about() { xs_about_ui = xsteam_about_ui::Instance(); - xs_about_ui->setMaximumSize(440, 580); + xs_about_ui->setMaximumSize(width(), height()); xs_about_ui->setGeometry(geometry()); xs_about_ui->title()->set_font_style(); xs_about_ui->exec();