|
|
|
@ -57,7 +57,9 @@ AbstractButton { |
|
|
|
|
fillMode: avatar.crop ? Image.PreserveAspectCrop : Image.PreserveAspectFit |
|
|
|
|
mipmap: true |
|
|
|
|
smooth: true |
|
|
|
|
source: if (avatar.url.startsWith('image://')) { |
|
|
|
|
source: if (avatar.url.startsWith('image://colorimage')) { |
|
|
|
|
return avatar.url + "&radius=" + (Settings.avatarCircles ? 100 : 25) + ((avatar.crop) ? "" : "&scale"); |
|
|
|
|
} else if (avatar.url.startsWith('image://')) { |
|
|
|
|
return avatar.url + "?radius=" + (Settings.avatarCircles ? 100 : 25) + ((avatar.crop) ? "" : "&scale"); |
|
|
|
|
} else if (avatar.url.startsWith(':/')) { |
|
|
|
|
return "image://colorimage/" + avatar.url + "?" + textColor; |
|
|
|
|