mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Make avatar in timeline smaller
This commit is contained in:
parent
6c7e6b0e86
commit
c8315d792b
1 changed files with 5 additions and 3 deletions
|
@ -11,6 +11,8 @@ Rectangle {
|
||||||
|
|
||||||
SystemPalette { id: colors; colorGroup: SystemPalette.Active }
|
SystemPalette { id: colors; colorGroup: SystemPalette.Active }
|
||||||
SystemPalette { id: inactiveColors; colorGroup: SystemPalette.Disabled }
|
SystemPalette { id: inactiveColors; colorGroup: SystemPalette.Disabled }
|
||||||
|
property int avatarSize: 32
|
||||||
|
|
||||||
color: colors.window
|
color: colors.window
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -76,7 +78,7 @@ Rectangle {
|
||||||
|
|
||||||
spacing: 4
|
spacing: 4
|
||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
anchors.leftMargin: 52
|
anchors.leftMargin: avatarSize + 4
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: scrollbar.width
|
anchors.rightMargin: scrollbar.width
|
||||||
|
@ -239,8 +241,8 @@ Rectangle {
|
||||||
height: userName.height
|
height: userName.height
|
||||||
spacing: 4
|
spacing: 4
|
||||||
Avatar {
|
Avatar {
|
||||||
width: 48
|
width: avatarSize
|
||||||
height: 48
|
height: avatarSize
|
||||||
url: chat.model.avatarUrl(section.split(" ")[0]).replace("mxc://", "image://MxcImage/")
|
url: chat.model.avatarUrl(section.split(" ")[0]).replace("mxc://", "image://MxcImage/")
|
||||||
displayName: chat.model.displayName(section.split(" ")[0])
|
displayName: chat.model.displayName(section.split(" ")[0])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue