From 6b2721c821e003171d53d06c531a48f52005c02f Mon Sep 17 00:00:00 2001 From: Jokul Date: Sun, 19 Jul 2026 18:36:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20About=20=E7=AA=97=E5=8F=A3=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=92=8C=E5=89=AF=E6=A0=87=E9=A2=98=E6=B0=B4=E5=B9=B3?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=EF=BC=88Layout.alignment=20=E5=9C=A8=20Colum?= =?UTF-8?q?nLayout=20=E5=86=85=E4=B8=8D=E5=8F=AF=E9=9D=A0=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E7=94=A8=20fillWidth+horizontalAlignment=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/components/AboutWindow.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/components/AboutWindow.qml b/package/components/AboutWindow.qml index 43a908a..58b6b14 100644 --- a/package/components/AboutWindow.qml +++ b/package/components/AboutWindow.qml @@ -99,6 +99,8 @@ Window { } // 标题区:插件中文名 + 英文名,整体居中 + // 注意:用 Layout.fillWidth + horizontalAlignment 而非 Layout.alignment, + // 后者在 ColumnLayout 内对 Text 不可靠(实测会左对齐贴边) ColumnLayout { Layout.fillWidth: true spacing: 2 @@ -108,14 +110,16 @@ Window { font.pixelSize: 18 font.weight: Font.Bold color: "#333333" - Layout.alignment: Qt.AlignHCenter + Layout.fillWidth: true + horizontalAlignment: Text.AlignHCenter } Text { text: "JNetApplet" font.pixelSize: 12 color: "#999999" - Layout.alignment: Qt.AlignHCenter + Layout.fillWidth: true + horizontalAlignment: Text.AlignHCenter } }