2020-07-15 21:04:14 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
StyledTextEdit {
|
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
|
2020-07-15 21:04:14 +00:00
|
|
|
color: Style.current.darkGrey
|
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
|
2020-07-15 21:04:14 +00:00
|
|
|
readOnly: true
|
|
|
|
selectByMouse: true
|
|
|
|
}
|