Small tweaks.

This commit is contained in:
Black Hat 2018-07-24 12:37:48 +08:00
parent 845b0114bd
commit d60bd1ed9f
3 changed files with 4 additions and 5 deletions

View File

@ -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 {

View File

@ -86,7 +86,7 @@ Item {
displayMarginBeginning: 40
displayMarginEnd: 40
verticalLayoutDirection: ListView.BottomToTop
maximumFlickVelocity: 2048
maximumFlickVelocity: 1024
spacing: 8
model: MessageEventModel{

View File

@ -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"
}
}
}
}