summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-19 21:53:24 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commitc8315d792bf321ed4189fc431ecd640513a808f3 (patch)
tree14f0b8b41f561e8568573e75b38cafe064fe16e2 /resources/qml/TimelineView.qml
parentFix read indicator (diff)
downloadnheko-c8315d792bf321ed4189fc431ecd640513a808f3.tar.xz
Make avatar in timeline smaller
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r--resources/qml/TimelineView.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 91b3f173..a04c0c7f 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -11,6 +11,8 @@ Rectangle {
 
 	SystemPalette { id: colors; colorGroup: SystemPalette.Active }
 	SystemPalette { id: inactiveColors; colorGroup: SystemPalette.Disabled }
+	property int avatarSize: 32
+
 	color: colors.window
 
 	Text {
@@ -76,7 +78,7 @@ Rectangle {
 
 		spacing: 4
 		delegate: RowLayout {
-			anchors.leftMargin: 52
+			anchors.leftMargin: avatarSize + 4
 			anchors.left: parent.left
 			anchors.right: parent.right
 			anchors.rightMargin: scrollbar.width
@@ -239,8 +241,8 @@ Rectangle {
 					height: userName.height
 					spacing: 4
 					Avatar {
-						width: 48
-						height: 48
+						width: avatarSize
+						height: avatarSize
 						url: chat.model.avatarUrl(section.split(" ")[0]).replace("mxc://", "image://MxcImage/")
 						displayName: chat.model.displayName(section.split(" ")[0])
 					}