Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions qt6/src/qml/TitleBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down