start initial work on detaching chat to floating window
This commit is contained in:
@@ -14,6 +14,15 @@ Item {
|
||||
required property Props props
|
||||
required property var visibilities
|
||||
|
||||
Connections {
|
||||
function onIsWindowChanged(): void {
|
||||
if (ChatState.isWindow)
|
||||
root.props.currentTab = 0;
|
||||
}
|
||||
|
||||
target: ChatState
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
|
||||
@@ -22,8 +31,10 @@ Item {
|
||||
|
||||
Tabs {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: ChatState.isWindow ? 0 : implicitHeight
|
||||
dashState: root.props
|
||||
nonAnimWidth: layout.width
|
||||
visible: height > 0
|
||||
}
|
||||
|
||||
CustomClippingRect {
|
||||
@@ -75,7 +86,6 @@ Item {
|
||||
|
||||
ChatPanel {
|
||||
anchors.fill: parent
|
||||
props: root.props
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user