Add upload progress && fix icon proportion of DBus.

This commit is contained in:
Black Hat
2018-10-20 22:06:44 +08:00
parent 129a83d91f
commit 73ce9c2bf1
7 changed files with 80 additions and 16 deletions

View File

@@ -28,8 +28,8 @@ Drawer {
anchors.margins: 32
ImageItem {
Layout.preferredWidth: 64
Layout.preferredHeight: 64
Layout.preferredWidth: 96
Layout.preferredHeight: 96
Layout.alignment: Qt.AlignHCenter
hint: room ? room.displayName : "No name"

View File

@@ -160,7 +160,7 @@ Item {
id: goTopFab
visible: !(messageListView.atYEnd || messageListView.moving)
visible: !messageListView.atYEnd
contentItem: MaterialIcon {
anchors.fill: parent

View File

@@ -20,6 +20,14 @@ Rectangle {
elevation: 2
}
Rectangle {
width: currentRoom && currentRoom.hasFileUploading ? parent.width * currentRoom.fileUploadingProgress / 100 : 0
height: parent.height
opacity: 0.2
color: Material.accent
}
RowLayout {
anchors.fill: parent
@@ -40,7 +48,7 @@ Rectangle {
BusyIndicator {
anchors.fill: parent
running: false
running: currentRoom && currentRoom.hasFileUploading
}
}