Load fullscreenimage directly. Tweak reply UI.

This commit is contained in:
Black Hat
2019-05-04 21:05:59 +08:00
parent ce688e9756
commit ef469ee347
9 changed files with 40 additions and 55 deletions

View File

@@ -29,6 +29,14 @@ Dialog {
hint: user ? user.displayName : "No name"
source: user ? user.avatarMediaId : null
RippleEffect {
anchors.fill: parent
circular: true
onPrimaryClicked: fullScreenImage.createObject(parent, {"filename": user.diaplayName, "localPath": room.urlToMxcUrl(user.avatarUrl)}).show()
}
}
ColumnLayout {
@@ -159,6 +167,12 @@ Dialog {
}
}
Component {
id: fullScreenImage
FullScreenImage {}
}
onClosed: destroy()
}