Minor bug fixes and tweaks.

This commit is contained in:
Black Hat
2018-03-04 22:40:48 +08:00
parent 854a1c3855
commit 9b4fa0d8c6
4 changed files with 10 additions and 3 deletions

View File

@@ -3,7 +3,8 @@ import QtQuick.Controls 2.3
import QtGraphicalEffects 1.0
Item {
property bool statusIndicator
property bool statusIndicator: false
property bool opaqueBackground: false
property alias source: avatar.source
Rectangle {
@@ -11,6 +12,7 @@ Item {
height: parent.width
radius: parent.width / 2
color: "white"
visible: opaqueBackground
}
Image {
@@ -21,6 +23,8 @@ Item {
mipmap: true
layer.enabled: true
fillMode: Image.PreserveAspectCrop
sourceSize.width: parent.width
sourceSize.height: parent.width
layer.effect: OpacityMask {
maskSource: Item {