summary refs log tree commit diff
path: root/resources/qml/ChatPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/ChatPage.qml')
-rw-r--r--resources/qml/ChatPage.qml48
1 files changed, 48 insertions, 0 deletions
diff --git a/resources/qml/ChatPage.qml b/resources/qml/ChatPage.qml
new file mode 100644

index 00000000..a02f0ca9 --- /dev/null +++ b/resources/qml/ChatPage.qml
@@ -0,0 +1,48 @@ +// SPDX-FileCopyrightText: 2021 Nheko Contributors +// +// SPDX-License-Identifier: GPL-3.0-or-later + +import QtQuick 2.9 +import QtQuick.Controls 2.13 +import QtQuick.Layouts 1.3 +import im.nheko 1.0 + +Rectangle { + id: chatPage + + color: Nheko.colors.window + + SplitView { + anchors.fill: parent + + Rectangle { + SplitView.minimumWidth: Nheko.avatarSize + Nheko.paddingSmall * 2 + SplitView.preferredWidth: Nheko.avatarSize + Nheko.paddingSmall * 2 + SplitView.maximumWidth: Nheko.avatarSize + Nheko.paddingSmall * 2 + color: "blue" + } + + Rectangle { + SplitView.minimumWidth: Nheko.avatarSize * 3 + Nheko.paddingSmall * 2 + SplitView.preferredWidth: Nheko.avatarSize * 3 + Nheko.paddingSmall * 2 + SplitView.maximumWidth: Nheko.avatarSize * 7 + Nheko.paddingSmall * 2 + color: "red" + } + + TimelineView { + id: timeline + + SplitView.fillWidth: true + SplitView.minimumWidth: 400 + } + + } + + PrivacyScreen { + anchors.fill: parent + visible: Settings.privacyScreen + screenTimeout: Settings.privacyScreenTimeout + timelineRoot: timeline + } + +}