From 3750687e665f9219f7393ac1f9512ea485e8020a Mon Sep 17 00:00:00 2001 From: lamagu <3057978296@qq.com> Date: Sat, 10 Oct 2026 13:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E8=BF=91=E8=BF=9E=E6=8E=A5=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=A1=86=E4=B8=8D=E5=86=8D=E5=8E=8B=E4=BD=8F=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=BC=B9=E7=AA=97=E7=9A=84=E7=A1=AE=E8=AE=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 悬浮框当初为了盖住 ScrollView 给了 z:50,正好和模态层(z 39~51)同层, 鼠标停在列表上时黑框会盖住"对等连接已建立"的确认按钮。降到 z:20(模态层 之下、标题菜单之上),并在连接弹窗打开时直接不显示。 --- apps/desktop/src/gui/ui/main_window.slint | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/gui/ui/main_window.slint b/apps/desktop/src/gui/ui/main_window.slint index 64b9769c..621c578a 100644 --- a/apps/desktop/src/gui/ui/main_window.slint +++ b/apps/desktop/src/gui/ui/main_window.slint @@ -1227,7 +1227,9 @@ export component MainWindow inherits Window { // Match the ImGui recent-connection tooltip while keeping it outside the // clipped ScrollView. It is deliberately limited to the thumbnail area. - if root.recent-tooltip-visible: Rectangle { + // Stay under the modal layer (z >= 39): a hover tooltip that outlives the + // pointer can otherwise cover a dialog button and hide it from the user. + if root.recent-tooltip-visible && !root.connection-dialog-open: Rectangle { x: root.recent-tooltip-x; y: root.recent-tooltip-y; width: root.recent-tooltip-width; @@ -1236,7 +1238,7 @@ export component MainWindow inherits Window { border-width: 1px; border-color: #ffffff38; border-radius: 5px; - z: 50; + z: 20; VerticalLayout { padding: 8px;