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

83 lines
2.0 KiB
QML
Raw Normal View History

import QtQuick 2.3
import QtQuick.Controls 2.3
import QtQuick.Controls 2.12 as QQC2
import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1
import "../../../shared"
import "../../../imports"
2020-05-27 21:59:34 +00:00
import "./ChatColumn"
StackLayout {
property int chatGroupsListViewCount: 0
Layout.fillHeight: true
Layout.fillWidth: true
currentIndex: chatGroupsListViewCount > 0 ? 0 : 1
ColumnLayout {
id: chatColumn
RowLayout {
id: chatTopBar
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
Layout.fillWidth: true
z: 60
2020-05-27 21:59:34 +00:00
TopBar {}
}
RowLayout {
id: chatContainer
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
ChatMessages {}
}
RowLayout {
id: chatInputContainer
height: 70
Layout.fillWidth: true
Layout.bottomMargin: 0
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
transformOrigin: Item.Bottom
2020-05-27 23:06:41 +00:00
ChatInput {}
}
}
Item {
2020-05-27 18:40:58 +00:00
Layout.fillHeight: true
Layout.fillWidth: true
Item {
id: walkieTalkieContainer
anchors.left: parent.left
anchors.leftMargin: 200
anchors.right: parent.right
anchors.rightMargin: 200
anchors.bottom: parent.bottom
anchors.bottomMargin: 200
anchors.top: parent.top
anchors.topMargin: 100
Image {
source: "../../../onboarding/img/chat@2x.jpg"
}
2020-05-27 18:40:58 +00:00
Text {
text: "Select a chat to start messaging"
anchors.horizontalCenter: parent.horizontalCenter
font.weight: Font.DemiBold
font.pixelSize: 15
color: Theme.darkGrey
}
}
}
}
/*##^##
Designer {
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
}
##^##*/