2021-02-09 21:09:25 +00:00
|
|
|
import QtQuick 2.14
|
2020-07-15 21:04:14 +00:00
|
|
|
import "../../../../../shared"
|
2021-02-09 21:09:25 +00:00
|
|
|
import "../../../../../shared/status"
|
2020-07-15 21:04:14 +00:00
|
|
|
import "../../../../../imports"
|
|
|
|
|
2021-02-10 12:45:56 +00:00
|
|
|
StyledText {
|
2020-12-22 10:22:04 +00:00
|
|
|
property bool formatDateTime: false
|
2020-07-15 21:04:14 +00:00
|
|
|
id: chatTime
|
2020-07-20 17:34:20 +00:00
|
|
|
visible: isMessage
|
2021-02-19 15:20:26 +00:00
|
|
|
color: isImage ? Style.current.white : Style.current.secondaryText
|
2021-01-04 14:47:25 +00:00
|
|
|
text: formatDateTime ? Utils.formatDateTime(timestamp, appSettings.locale) : Utils.formatTime(timestamp, appSettings.locale)
|
2020-11-25 10:46:18 +00:00
|
|
|
font.pixelSize: Style.current.asideTextFontSize
|
2021-02-10 12:45:56 +00:00
|
|
|
|
2021-02-09 21:09:25 +00:00
|
|
|
StatusToolTip {
|
|
|
|
visible: hhandler.hovered
|
|
|
|
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(appSettings.locale))
|
2021-03-25 15:08:25 +00:00
|
|
|
maxWidth: 350
|
2021-02-09 21:09:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hhandler
|
|
|
|
}
|
2020-07-15 21:04:14 +00:00
|
|
|
}
|