From d3c02c5d834b28e71abe9c721b683a1867abeb9a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 15 Nov 2016 16:47:30 +0100 Subject: add dummy subject bar, make conversationview flickable --- components/package/contents/ui/SingleMailView.qml | 44 +++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'components/package') diff --git a/components/package/contents/ui/SingleMailView.qml b/components/package/contents/ui/SingleMailView.qml index 16f2d272..ea4e3ca0 100644 --- a/components/package/contents/ui/SingleMailView.qml +++ b/components/package/contents/ui/SingleMailView.qml @@ -30,9 +30,49 @@ Item { property variant mail; - ScrollView { + Rectangle { + id: subjectBar - anchors.fill: parent + anchors { + top: parent.top + left: parent.left + right: parent.right + } + + height: Kirigami.Units.gridUnit * 2 + + color: Kirigami.Theme.backgroundColor + + Text { + anchors.centerIn: parent + + text: "Some subject" + color: Kirigami.Theme.textColor + } + + Rectangle { + + anchors.bottom: parent.bottom + + height: 1 + width: parent.width + + color: Kirigami.Theme.highlightColor + } + } + + + Flickable { + id: flickable + + anchors { + top: subjectBar.bottom + left: parent.left + right: parent.right + bottom: parent.bottom + } + + clip: true ListView { anchors.fill: parent -- cgit v1.2.3