mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
c0450f0580
Moved Message component & dependencies to shared for usage import shared.views.chat 1.0 and accordingly import shared.controls/panels.chat 1.0 Closes #3927
26 lines
611 B
QML
26 lines
611 B
QML
import QtQuick 2.14
|
|
import shared 1.0
|
|
import shared.panels 1.0
|
|
|
|
import StatusQ.Controls 0.1 as StatusQ
|
|
import utils 1.0
|
|
|
|
StyledText {
|
|
id: chatTime
|
|
color: Style.current.secondaryText
|
|
//TODO uncomment when dynamic scoping is cleaned up
|
|
//property string timestamp
|
|
text: Utils.formatTime(timestamp)
|
|
font.pixelSize: Style.current.asideTextFontSize
|
|
|
|
StatusQ.StatusToolTip {
|
|
visible: hhandler.hovered
|
|
text: new Date(parseInt(timestamp, 10)).toLocaleString(Qt.locale(localAppSettings.locale))
|
|
maxWidth: 350
|
|
}
|
|
|
|
HoverHandler {
|
|
id: hhandler
|
|
}
|
|
}
|