From d979d0a241638dccea610d2d07a01d3ece84d8bd Mon Sep 17 00:00:00 2001 From: Chenx Dust Date: Sun, 9 Aug 2026 18:04:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E8=BF=9B=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=A1=B6=E9=83=A8=E5=A4=96=E8=A7=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- presentation/main/mainwindow.cpp | 5 +++++ presentation/main/mainwindow.ui | 4 ++-- presentation/presentationhelpers.cpp | 2 +- resource/mainwindow-dark.qss | 1 - resource/mainwindow-light.qss | 1 - resource/mainwindow.qss | 3 --- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/presentation/main/mainwindow.cpp b/presentation/main/mainwindow.cpp index e1767f3..b6aedd8 100644 --- a/presentation/main/mainwindow.cpp +++ b/presentation/main/mainwindow.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -69,6 +70,10 @@ MainWindow::MainWindow( upgradeSettings(); ui->setupUi(this); +#ifdef Q_OS_MACOS + const QMargins centralMargins = ui->centralWidget->contentsMargins(); + ui->centralWidget->setContentsMargins(centralMargins.left(), 16, centralMargins.right(), centralMargins.bottom()); +#endif ui->logPlainTextEdit->setFont( QFontDatabase::systemFont(QFontDatabase::FixedFont) ); diff --git a/presentation/main/mainwindow.ui b/presentation/main/mainwindow.ui index 2a9b5b1..0a952dc 100644 --- a/presentation/main/mainwindow.ui +++ b/presentation/main/mainwindow.ui @@ -28,7 +28,7 @@ 16 - 16 + 2 16 @@ -451,7 +451,7 @@ 0 0 822 - 33 + 21 diff --git a/presentation/presentationhelpers.cpp b/presentation/presentationhelpers.cpp index 9616bf8..da444b4 100644 --- a/presentation/presentationhelpers.cpp +++ b/presentation/presentationhelpers.cpp @@ -27,7 +27,7 @@ void PresentationHelpers::showAboutDialog(QWidget *parent) "
作者:Chenx Dust" + "
项目主页:https://github.com/" + repository + "" + - "

致谢:" + + "

致谢:" + "

ZJU-Connect-for-Windows" + "
基于 Qt 编写的 ZJU 网络客户端" + "
作者:Myth" + diff --git a/resource/mainwindow-dark.qss b/resource/mainwindow-dark.qss index 1143635..da820c9 100644 --- a/resource/mainwindow-dark.qss +++ b/resource/mainwindow-dark.qss @@ -11,7 +11,6 @@ QMenu { QMenuBar { background: #141b20; - border-bottom-color: #2d3a42; } QMenuBar::item:selected { diff --git a/resource/mainwindow-light.qss b/resource/mainwindow-light.qss index e20e84f..93dae3c 100644 --- a/resource/mainwindow-light.qss +++ b/resource/mainwindow-light.qss @@ -11,7 +11,6 @@ QMenu { QMenuBar { background: #f2f7fa; - border-bottom-color: #dbe5eb; } QMenuBar::item:selected { diff --git a/resource/mainwindow.qss b/resource/mainwindow.qss index 9accb9d..2ad3cec 100644 --- a/resource/mainwindow.qss +++ b/resource/mainwindow.qss @@ -6,8 +6,6 @@ QMenu { } QMenuBar { - border-bottom-width: 1px; - border-bottom-style: solid; padding: 3px 10px; } @@ -120,7 +118,6 @@ QPushButton#pushButton1 { border-width: 1px; border-style: solid; border-radius: 5px; - font-size: 12px; padding: 8px; }