status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatTime.qml

15 lines
400 B
QML
Raw Normal View History

import QtQuick 2.3
import "../../../../../shared"
import "../../../../../imports"
StyledTextEdit {
property bool formatDateTime: false
id: chatTime
2020-07-20 17:34:20 +00:00
visible: isMessage
color: Style.current.darkGrey
text: formatDateTime ? Utils.formatDateTime(timestamp) : Utils.formatTime(timestamp)
font.pixelSize: Style.current.asideTextFontSize
readOnly: true
selectByMouse: true
}