From 14514c6bcc251f5e4ee61ba0a56087bb198f7d0d Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 2 Mar 2021 20:31:33 +0300 Subject: Turn ChatPage and ChatlistPage into scrollable pages This removes unnecessary padding between the window boundary and the scrollbar. --- qml/ChatPage.qml | 4 +--- qml/ChatlistPage.qml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'qml') diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index 712a75c..fd6c154 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -6,7 +6,7 @@ import org.kde.kirigami 2.12 as Kirigami import DeltaChat 1.0 -Kirigami.Page { +Kirigami.ScrollablePage { id: chatPage title: chat ? chat.name : qsTr("Chat") @@ -144,8 +144,6 @@ Kirigami.Page { verticalLayoutDirection: ListView.BottomToTop delegate: Message {message: context.getMessage(msgId)} - - ScrollBar.vertical: ScrollBar {} } footer: Loader { diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index c117a1f..a5bc1ed 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -6,7 +6,7 @@ import org.kde.kirigami 2.13 as Kirigami import DeltaChat 1.0 -Kirigami.Page { +Kirigami.ScrollablePage { title: qsTr("Chats") id: chatlistPage @@ -170,7 +170,5 @@ Kirigami.Page { verticalAlignment: Text.AlignVCenter } } - - ScrollBar.vertical: ScrollBar {} } } -- cgit v1.2.3-70-g09d2