From 59748c7cc830e56033af91dc9fd2f9193dbb5087 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 5 Sep 2020 09:40:36 -0400 Subject: [PATCH] EventDelegate: better separationSpacing formatting --- src/gui/Pages/Chat/Timeline/EventDelegate.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 6f29ef80..1c7d4954 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -34,11 +34,14 @@ HColumnLayout { eventContent.hoveredSelectable ? Qt.IBeamCursor : Qt.ArrowCursor - readonly property int separationSpacing: - dayBreak ? theme.spacing * 4 : - talkBreak ? theme.spacing * 6 : - combine ? theme.spacing / (compact ? 4 : 2) : - theme.spacing * (compact ? 1 : 2) + readonly property int separationSpacing: theme.spacing * ( + dayBreak ? 4 : + talkBreak ? 6 : + combine && compact ? 0.25 : + combine ? 0.5 : + compact ? 1 : + 2 + ) readonly property alias eventContent: eventContent