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 : eventContent.hoveredSelectable ? Qt.IBeamCursor :
Qt.ArrowCursor Qt.ArrowCursor
readonly property int separationSpacing: readonly property int separationSpacing: theme.spacing * (
dayBreak ? theme.spacing * 4 : dayBreak ? 4 :
talkBreak ? theme.spacing * 6 : talkBreak ? 6 :
combine ? theme.spacing / (compact ? 4 : 2) : combine && compact ? 0.25 :
theme.spacing * (compact ? 1 : 2) combine ? 0.5 :
compact ? 1 :
2
)
readonly property alias eventContent: eventContent readonly property alias eventContent: eventContent