Minor bug fixes and tweaks.
This commit is contained in:
@@ -9,7 +9,7 @@ Page {
|
|||||||
id: roomListForm
|
id: roomListForm
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: 320
|
width: 320
|
||||||
listModel: roomListModel
|
listModel: contactListModel
|
||||||
}
|
}
|
||||||
|
|
||||||
DetailForm {
|
DetailForm {
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import QtQuick.Controls 2.3
|
|||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
property bool statusIndicator
|
property bool statusIndicator: false
|
||||||
|
property bool opaqueBackground: false
|
||||||
property alias source: avatar.source
|
property alias source: avatar.source
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -11,6 +12,7 @@ Item {
|
|||||||
height: parent.width
|
height: parent.width
|
||||||
radius: parent.width / 2
|
radius: parent.width / 2
|
||||||
color: "white"
|
color: "white"
|
||||||
|
visible: opaqueBackground
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
@@ -21,6 +23,8 @@ Item {
|
|||||||
mipmap: true
|
mipmap: true
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
sourceSize.width: parent.width
|
||||||
|
sourceSize.height: parent.width
|
||||||
|
|
||||||
layer.effect: OpacityMask {
|
layer.effect: OpacityMask {
|
||||||
maskSource: Item {
|
maskSource: Item {
|
||||||
|
|||||||
@@ -114,7 +114,8 @@ Item {
|
|||||||
ImageStatus {
|
ImageStatus {
|
||||||
width: parent.height
|
width: parent.height
|
||||||
height: parent.height
|
height: parent.height
|
||||||
source: "image://mxc/" + avatar
|
source: avatar == null ? "qrc:/asset/img/avatar.png" : "image://mxc/" + avatar
|
||||||
|
opaqueBackground: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ ApplicationWindow {
|
|||||||
source: "qrc:/asset/img/avatar.png"
|
source: "qrc:/asset/img/avatar.png"
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
statusIndicator: true
|
statusIndicator: true
|
||||||
|
opaqueBackground: false
|
||||||
}
|
}
|
||||||
|
|
||||||
page: Room {
|
page: Room {
|
||||||
@@ -93,6 +94,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
page: Contact {
|
page: Contact {
|
||||||
id: contactPage
|
id: contactPage
|
||||||
|
contactListModel: roomListModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user