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 { ...@@ -15,9 +15,9 @@ QtObject {
property QtObject shadow: QtObject { property QtObject shadow: QtObject {
property color color: Colors.l property color color: Colors.l
property int horizontalOffset: 4 property int horizontalOffset: 2
property int radius: 8 property int radius: 10
property int samples: 15 property int samples: 15
property int verticalOffset: 4 property int verticalOffset: 2
} }
} }
...@@ -80,6 +80,11 @@ ToolTip { ...@@ -80,6 +80,11 @@ ToolTip {
background: Item { background: Item {
id: container id: container
layer {
enabled: true
effect: PopupShadow {}
}
Rectangle { Rectangle {
anchors { anchors {
fill: parent fill: parent
......
...@@ -62,7 +62,7 @@ ColumnLayout { ...@@ -62,7 +62,7 @@ ColumnLayout {
// Cast section to integer because Qt converts the // Cast section to integer because Qt converts the
// $dateSection in string!!! // $dateSection in string!!!
text: new Date(+section).toLocaleDateString( text: new Date(+section).toLocaleDateString(
Qt.locale() Qt.locale(App.locale())
) )
} }
} }
...@@ -144,7 +144,7 @@ ColumnLayout { ...@@ -144,7 +144,7 @@ ColumnLayout {
color: ChatStyle.entry.time.color color: ChatStyle.entry.time.color
font.pointSize: ChatStyle.entry.time.fontSize font.pointSize: ChatStyle.entry.time.fontSize
text: new Date($timestamp).toLocaleString( text: new Date($timestamp).toLocaleString(
Qt.locale(), Qt.locale(App.locale()),
'hh:mm' 'hh:mm'
) )
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
......
...@@ -95,14 +95,14 @@ ColumnLayout { ...@@ -95,14 +95,14 @@ ColumnLayout {
usernameColor: view.currentIndex === index usernameColor: view.currentIndex === index
? TimelineStyle.contact.username.color.selected ? TimelineStyle.contact.username.color.selected
: TimelineStyle.contact.username.color.normal : TimelineStyle.contact.username.color.normal
}
Loader { Loader {
anchors.fill: parent anchors.fill: parent
sourceComponent: TooltipArea { sourceComponent: TooltipArea {
text: $timelineEntry.timestamp.toLocaleString( text: $timelineEntry.timestamp.toLocaleString(
Qt.locale(App.locale()), Locale.ShortFormat Qt.locale(App.locale()), Locale.ShortFormat
) )
}
} }
} }
......
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