EventDelegate: better separationSpacing formatting

This commit is contained in:
miruka 2020-09-05 09:40:36 -04:00
parent 0ccf3d03c9
commit 59748c7cc8

View File

@ -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