moment/harmonyqml/components/chat/Daybreak.qml

14 lines
395 B
QML
Raw Normal View History

2019-03-22 14:28:14 +11:00
import QtQuick 2.7
import "../base" as Base
2019-03-22 14:28:14 +11:00
Base.HLabel {
2019-03-22 14:28:14 +11:00
text: date_time.toLocaleDateString()
width: messageDelegate.width
2019-03-22 14:28:14 +11:00
horizontalAlignment: Text.AlignHCenter
topPadding: messageDelegate.isFirstMessage ?
0 : messageDelegate.standardSpacing
bottomPadding: messageDelegate.standardSpacing
2019-03-22 14:28:14 +11:00
font.pixelSize: normalSize * 1.1
color: "darkolivegreen"
}