Add option to toggle the display of users avatar in timeline on and off

This commit is contained in:
Carl Schwan
2020-12-02 18:25:29 +01:00
parent 1d5f1633bd
commit 8a3659efba
4 changed files with 15 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ RowLayout {
Layout.alignment: Qt.AlignTop
visible: showAuthor
visible: showAuthor && Config.showAvatarInTimeline
name: author.displayName
source: author.avatarMediaId ? "image://mxc/" + author.avatarMediaId : ""
color: author.color
@@ -70,7 +70,7 @@ RowLayout {
Item {
Layout.minimumWidth: Kirigami.Units.gridUnit * 2
Layout.preferredHeight: 1
visible: !showAuthor
visible: !showAuthor && Config.showAvatarInTimeline
}