mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
2154626a5b
Added Date & Time selectors in `Language & Currency" screen. Added new properties in `local_app_settings` to set the date and time format. Created all the chain from view to service to update date and time format. Added date and time format functions in `Utils`. Updated `FetchMoreMessagesButton`, `ChatTimePanel`, `AppSearch`, `TransactionBubbleView` and `TransactionDelegate` date and time text depending on the selected format. Closes #5386
25 lines
635 B
QML
25 lines
635 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
|
|
text: Utils.formatShortTime(timestamp)
|
|
font.pixelSize: Style.current.asideTextFontSize
|
|
property string timestamp
|
|
|
|
StatusQ.StatusToolTip {
|
|
visible: hhandler.hovered
|
|
text: Utils.formatLongDateTime(parseInt(chatTime.timestamp, 10), RootStore.accountSensitiveSettings.isDDMMYYDateFormat, RootStore.accountSensitiveSettings.is24hTimeFormat)
|
|
maxWidth: 350
|
|
}
|
|
|
|
HoverHandler {
|
|
id: hhandler
|
|
}
|
|
}
|