diff --git a/ui/app/AppLayouts/Chat/ChatColumn.qml b/ui/app/AppLayouts/Chat/ChatColumn.qml index 20de136921..a9478ed490 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn.qml @@ -47,32 +47,7 @@ StackLayout { } } - Item { - 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" - } - - Text { - text: "Select a chat to start messaging" - anchors.horizontalCenter: parent.horizontalCenter - font.weight: Font.DemiBold - font.pixelSize: 15 - color: Theme.darkGrey - } - } - } + EmptyChat {} } /*##^## diff --git a/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml b/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml new file mode 100644 index 0000000000..948b288631 --- /dev/null +++ b/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml @@ -0,0 +1,34 @@ +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" + +Item { + 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" + } + + Text { + text: "Select a chat to start messaging" + anchors.horizontalCenter: parent.horizontalCenter + font.weight: Font.DemiBold + font.pixelSize: 15 + color: Theme.darkGrey + } + } +} \ No newline at end of file diff --git a/ui/app/AppLayouts/Chat/ChatColumn/qmldir b/ui/app/AppLayouts/Chat/ChatColumn/qmldir index 998dab5789..b2d97eefc7 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/qmldir +++ b/ui/app/AppLayouts/Chat/ChatColumn/qmldir @@ -1,3 +1,4 @@ TopBar 1.0 TopBar.qml ChatMessages 1.0 ChatMessages.qml -ChatInput 1.0 ChatInput.qml \ No newline at end of file +ChatInput 1.0 ChatInput.qml +EmptyChat 1.0 EmptyChat.qml \ No newline at end of file