status-desktop/ui/app/AppLayouts/Chat/ChatColumn.qml

72 lines
1.6 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import "../../../shared"
import "../../../imports"
import "./components"
import "./ChatColumn"
StackLayout {
property int chatGroupsListViewCount: 0
Layout.fillHeight: true
Layout.fillWidth: true
Layout.minimumWidth: 300
currentIndex: chatsModel.activeChannelIndex > -1 && chatGroupsListViewCount > 0 ? 0 : 1
ColumnLayout {
id: chatColumn
RowLayout {
id: chatTopBar
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
Layout.fillWidth: true
z: 60
TopBar {}
}
RowLayout {
id: chatContainer
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
ChatMessages {
messageList: chatsModel.messageList
}
}
ProfilePopup {
id: profilePopup
}
Rectangle {
id: chatInputContainer
height: 70
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
Layout.fillWidth: true
Layout.preferredWidth: parent.width
Layout.preferredHeight: height
transformOrigin: Item.Bottom
clip: true
ChatInput {
anchors.fill: parent
anchors.leftMargin: -border.width
border.width: 1
border.color: Style.current.grey
}
}
}
EmptyChat {}
}
/*##^##
Designer {
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
}
##^##*/