mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Don't bother with crop
This commit is contained in:
parent
2147ce8556
commit
094ddb48a2
2 changed files with 2 additions and 4 deletions
|
@ -44,8 +44,8 @@ Rectangle {
|
||||||
id: identicon
|
id: identicon
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: img.status != Image.Ready && Settings.useIdenticon
|
visible: img.status != Image.Ready && Settings.useIdenticon
|
||||||
source: Settings.useIdenticon ? ("image://jdenticon/" + (userid !== "" ? userid : roomid) + "?radius=" + (Settings.avatarCircles ? 100 : 25) + ((avatar.crop) ? "" : "&scale")) : ""
|
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
source: Settings.useIdenticon ? ("image://jdenticon/" + (userid !== "" ? userid : roomid) + "?radius=" + (Settings.avatarCircles ? 100 : 25)) : ""
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -64,9 +64,7 @@ public slots:
|
||||||
auto queryBits = query.split('&');
|
auto queryBits = query.split('&');
|
||||||
|
|
||||||
for (auto b : queryBits) {
|
for (auto b : queryBits) {
|
||||||
if (b == "scale") {
|
if (b.startsWith("radius=")) {
|
||||||
crop = false;
|
|
||||||
} else if (b.startsWith("radius=")) {
|
|
||||||
radius = b.mid(7).toDouble();
|
radius = b.mid(7).toDouble();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue