From 60260cff3b70b6f5c8583c45f6702cf59e103264 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 13 Oct 2023 22:14:37 +0200 Subject: [PATCH] Fix bugs in state delegates - Don't show a dot over profile pictures. The dot was intended to be part of the Avatar when there is no image and the Avatar is too small to show an icon. Currently, it is visible over the profile picture. If we still want the dot, it should be upstreamed - Fix avatar images in StateComponent --- src/qml/StateComponent.qml | 10 +--------- src/qml/StateDelegate.qml | 8 -------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/qml/StateComponent.qml b/src/qml/StateComponent.qml index dfe78fe4c..35d885674 100644 --- a/src/qml/StateComponent.qml +++ b/src/qml/StateComponent.qml @@ -55,18 +55,10 @@ RowLayout { Layout.preferredWidth: Kirigami.Units.iconSizes.small Layout.preferredHeight: Kirigami.Units.iconSizes.small - source: root.author?.avatarUrl ?? "" + source: root.author?.avatarSource ?? "" name: root.author?.displayName ?? "" color: root.author?.color ?? undefined - Rectangle { - radius: height - height: 4 - width: 4 - color: root.author.color - anchors.centerIn: parent - } - MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor diff --git a/src/qml/StateDelegate.qml b/src/qml/StateDelegate.qml index d404e8938..b14d58528 100644 --- a/src/qml/StateDelegate.qml +++ b/src/qml/StateDelegate.qml @@ -110,14 +110,6 @@ TimelineDelegate { name: parent.modelData.displayName source: parent.modelData.avatarSource color: parent.modelData.color - - Rectangle { - radius: height - height: 4 - width: 4 - color: avatarDelegate.modelData.color - anchors.centerIn: parent - } } } }