make avatar smaller in timeline

This commit is contained in:
Michele Guerini Rocco 2021-01-19 23:12:27 +01:00
parent fdb5bd689a
commit e4c6f68c41
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
2 changed files with 3 additions and 2 deletions

View File

@ -54,6 +54,7 @@ Item {
ScrollBar.vertical: scrollbar ScrollBar.vertical: scrollbar
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 16
anchors.rightMargin: scrollbar.interactive ? scrollbar.width : 0 anchors.rightMargin: scrollbar.interactive ? scrollbar.width : 0
// reuseItems still has a few bugs, see https://bugreports.qt.io/browse/QTBUG-95105 https://bugreports.qt.io/browse/QTBUG-95107 // reuseItems still has a few bugs, see https://bugreports.qt.io/browse/QTBUG-95105 https://bugreports.qt.io/browse/QTBUG-95107
//onModelChanged: if (room) room.sendReset() //onModelChanged: if (room) room.sendReset()
@ -63,7 +64,7 @@ Item {
displayMarginEnd: height / 4 displayMarginEnd: height / 4
model: (filteredTimeline.filterByThread || filteredTimeline.filterByContent) ? filteredTimeline : room model: (filteredTimeline.filterByThread || filteredTimeline.filterByContent) ? filteredTimeline : room
//pixelAligned: true //pixelAligned: true
spacing: 2 spacing: 16
verticalLayoutDirection: ListView.BottomToTop verticalLayoutDirection: ListView.BottomToTop
property int lastScrollPos: 0 property int lastScrollPos: 0

View File

@ -41,7 +41,7 @@ public:
QPalette inactiveColors() const; QPalette inactiveColors() const;
Theme theme() const; Theme theme() const;
int avatarSize() const { return 40; } int avatarSize() const { return 32; }
int paddingSmall() const { return 4; } int paddingSmall() const { return 4; }
int paddingMedium() const { return 8; } int paddingMedium() const { return 8; }