Merge pull request #2095

507441f History: improve human readable time format (selsta)
This commit is contained in:
luigi1111 2019-04-25 13:08:00 -05:00
commit 528aba8724
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -878,8 +878,18 @@ Rectangle {
state: "copyable" state: "copyable"
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
onEntered: parent.color = MoneroComponents.Style.orange onEntered: {
onExited: parent.color = MoneroComponents.Style.defaultFontColor parent.color = MoneroComponents.Style.orange
if (persistentSettings.historyHumanDates) {
parent.text = date + " " + time;
}
}
onExited: {
parent.color = MoneroComponents.Style.defaultFontColor
if (persistentSettings.historyHumanDates) {
parent.text = dateHuman
}
}
} }
} }
} }