Commit 87ee80bb authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Linphone/Timeline): display a shadow below tooltip

parent f4f047da
......@@ -15,9 +15,9 @@ QtObject {
property QtObject shadow: QtObject {
property color color: Colors.l
property int horizontalOffset: 4
property int radius: 8
property int horizontalOffset: 2
property int radius: 10
property int samples: 15
property int verticalOffset: 4
property int verticalOffset: 2
}
}
......@@ -80,6 +80,11 @@ ToolTip {
background: Item {
id: container
layer {
enabled: true
effect: PopupShadow {}
}
Rectangle {
anchors {
fill: parent
......
......@@ -62,7 +62,7 @@ ColumnLayout {
// Cast section to integer because Qt converts the
// $dateSection in string!!!
text: new Date(+section).toLocaleDateString(
Qt.locale()
Qt.locale(App.locale())
)
}
}
......@@ -144,7 +144,7 @@ ColumnLayout {
color: ChatStyle.entry.time.color
font.pointSize: ChatStyle.entry.time.fontSize
text: new Date($timestamp).toLocaleString(
Qt.locale(),
Qt.locale(App.locale()),
'hh:mm'
)
verticalAlignment: Text.AlignVCenter
......
......@@ -95,7 +95,6 @@ ColumnLayout {
usernameColor: view.currentIndex === index
? TimelineStyle.contact.username.color.selected
: TimelineStyle.contact.username.color.normal
}
Loader {
anchors.fill: parent
......@@ -105,6 +104,7 @@ ColumnLayout {
)
}
}
}
MouseArea {
anchors.fill: parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment