From 82e59bacc61c586d9fc4fd4e5223a2261dd7c6c9 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Tue, 10 Jun 2025 07:07:10 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkdeclarative Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: https://github.com/linuxdeepin/dtkdeclarative/pull/491 --- qt6/src/qml/TitleBar.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/qt6/src/qml/TitleBar.qml b/qt6/src/qml/TitleBar.qml index d1b19eb9..3b8eda1f 100644 --- a/qt6/src/qml/TitleBar.qml +++ b/qt6/src/qml/TitleBar.qml @@ -12,9 +12,7 @@ Item { id: control z: D.DTK.TopOrder width: Window.window.width - // it's binding `height` instead of `visible` property, - // because MouseArea should accept event keeping visible. - implicitHeight: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1 + height: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1 property string title: Window.window.title property alias icon: iconLabel @@ -75,15 +73,16 @@ Item { Loader { id: background active: false - anchors.fill: parent + width: control.width + height: control.height sourceComponent: D.InWindowBlur { } } ColumnLayout { - id: content spacing: 0 - anchors.fill: parent + width: control.width + height: control.height visible: control.height > 1 Loader {