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
This commit is contained in:
Tobias Fella
2023-10-13 22:14:37 +02:00
parent 2df9a26cdc
commit 60260cff3b
2 changed files with 1 additions and 17 deletions

View File

@@ -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

View File

@@ -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
}
}
}
}