aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-02 20:31:33 +0300
committerlink2xt <link2xt@testrun.org>2021-03-02 20:31:33 +0300
commit14514c6bcc251f5e4ee61ba0a56087bb198f7d0d (patch)
tree0383ee7b42de03f00db60e564e42eda5fb89fc01 /qml
parentae484d98e4067c514f9771eacb4714505eca84de (diff)
downloadkdeltachat-14514c6bcc251f5e4ee61ba0a56087bb198f7d0d.tar.gz
kdeltachat-14514c6bcc251f5e4ee61ba0a56087bb198f7d0d.zip
Turn ChatPage and ChatlistPage into scrollable pages
This removes unnecessary padding between the window boundary and the scrollbar.
Diffstat (limited to 'qml')
-rw-r--r--qml/ChatPage.qml4
-rw-r--r--qml/ChatlistPage.qml4
2 files changed, 2 insertions, 6 deletions
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 {}
}
}