mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
feat(Linphone/Timeline): display a shadow below tooltip
This commit is contained in:
parent
f4f047daf7
commit
87ee80bb88
4 changed files with 17 additions and 12 deletions
|
|
@ -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,14 +95,14 @@ ColumnLayout {
|
|||
usernameColor: view.currentIndex === index
|
||||
? TimelineStyle.contact.username.color.selected
|
||||
: TimelineStyle.contact.username.color.normal
|
||||
}
|
||||
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
sourceComponent: TooltipArea {
|
||||
text: $timelineEntry.timestamp.toLocaleString(
|
||||
Qt.locale(App.locale()), Locale.ShortFormat
|
||||
)
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
sourceComponent: TooltipArea {
|
||||
text: $timelineEntry.timestamp.toLocaleString(
|
||||
Qt.locale(App.locale()), Locale.ShortFormat
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue