From 9a02f10eb8b5b911e6c642ec794a4df3a4a1a4be Mon Sep 17 00:00:00 2001 From: Jokul Date: Mon, 20 Jul 2026 21:44:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=BA=95=E9=83=A8=E5=85=B3=E9=97=AD=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E3=80=81=E7=A6=81=E6=AD=A2=E6=8B=96=E6=8B=BD=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E3=80=81=E6=A0=87=E9=A2=98=E6=A0=8F=E5=8F=AF=E6=8B=96?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除底部「关闭」按钮(保留标题栏 × 按钮关闭窗口) - 设置 minimumWidth/maximumWidth/minimumHeight/maximumHeight 固定窗口尺寸 340x450,禁止拖拽改变宽高 - 标题栏 MouseArea 已有 drag.target: settingsWindow 拖动能力 --- package/networkview.qml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/package/networkview.qml b/package/networkview.qml index 2565e3c..58a4351 100644 --- a/package/networkview.qml +++ b/package/networkview.qml @@ -727,6 +727,10 @@ AppletItem { id: settingsWindow width: 340 height: 450 + minimumWidth: 340 + maximumWidth: 340 + minimumHeight: 450 + maximumHeight: 450 visible: false flags: Qt.FramelessWindowHint | Qt.Window // NonModal:不阻塞桌面其他区域,用户可同时操作任务栏 @@ -939,32 +943,7 @@ AppletItem { } } - // 关闭按钮 - Rectangle { - id: bottomCloseButton - Layout.fillWidth: true - Layout.preferredHeight: 40 - color: bottomCloseMouse.containsMouse ? root.accentBlueLight : "#ffffff" - radius: 10 - border.width: 1 - border.color: bottomCloseMouse.containsMouse ? root.accentBlue : "#e0e0e0" - Text { - anchors.centerIn: parent - text: qsTr("关闭") - font.pixelSize: 13 - font.weight: Font.Medium - color: bottomCloseMouse.containsMouse ? root.accentBlue : "#333333" - } - - MouseArea { - id: bottomCloseMouse - anchors.fill: parent - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - onClicked: settingsWindow.hide() - } - } } } }