From d60bd1ed9f83a326bb83ec5e93340042f5d472ba Mon Sep 17 00:00:00 2001 From: Black Hat Date: Tue, 24 Jul 2018 12:37:48 +0800 Subject: [PATCH] Small tweaks. --- qml/component/ImageBubble.qml | 2 ++ qml/form/RoomForm.qml | 2 +- qml/form/RoomListForm.qml | 5 +---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/qml/component/ImageBubble.qml b/qml/component/ImageBubble.qml index 252bb80..53ed970 100644 --- a/qml/component/ImageBubble.qml +++ b/qml/component/ImageBubble.qml @@ -21,6 +21,8 @@ AvatarContainer { Image { id: messageImage z: -4 + sourceSize.width: width + sourceSize.height: height source: "image://mxc/" + (content.thumbnail_url ? content.thumbnail_url : content.url) MouseArea { diff --git a/qml/form/RoomForm.qml b/qml/form/RoomForm.qml index 76bc613..9a344a1 100644 --- a/qml/form/RoomForm.qml +++ b/qml/form/RoomForm.qml @@ -86,7 +86,7 @@ Item { displayMarginBeginning: 40 displayMarginEnd: 40 verticalLayoutDirection: ListView.BottomToTop - maximumFlickVelocity: 2048 + maximumFlickVelocity: 1024 spacing: 8 model: MessageEventModel{ diff --git a/qml/form/RoomListForm.qml b/qml/form/RoomListForm.qml index 1953fba..51fdb9f 100644 --- a/qml/form/RoomListForm.qml +++ b/qml/form/RoomListForm.qml @@ -210,16 +210,13 @@ Item { id: roomListMenu MenuItem { - text: "Prioritize" + text: "Favourite" onTriggered: roomListMenu.room.isFavourite ? roomListMenu.room.removeTag("m.favourite") : roomListMenu.room.addTag("m.favourite", "1") } MenuItem { text: "Deprioritize" onTriggered: roomListMenu.room.isLowPriority ? roomListMenu.room.removeTag("m.lowpriority") : roomListMenu.room.addTag("m.lowpriority", "1") } - MenuItem { - text: "Direct Chat" - } } } }