moment/harmonyqml/components/chat/Daybreak.qml
miruka f0dab1801a Order the roomEvents models from newest to oldest
Qt somehow handles scrolling on new messages on its own when the
ListView direction is bottom to top.
In normal top to bottom, manual scrolling is completly buggy.
2019-04-17 16:43:18 -04:00

13 lines
347 B
QML

import QtQuick 2.7
import "../base" as Base
Base.HLabel {
text: date_time.toLocaleDateString()
width: rootCol.width
horizontalAlignment: Text.AlignHCenter
topPadding: rootCol.isFirstMessage ? 0 : rootCol.standardSpacing
bottomPadding: rootCol.standardSpacing
font.pixelSize: normalSize * 1.1
color: "darkolivegreen"
}