mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-22 15:58:46 +00:00
feat(MainWindow/Contacts): show indicator on hovered contact
This commit is contained in:
parent
3ffb25a426
commit
e01b4ef07f
3 changed files with 23 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ Item {
|
||||||
id: rightBorder
|
id: rightBorder
|
||||||
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
color: borderColor != null ? borderColor : rigthColor
|
color: borderColor != null ? borderColor : rightColor
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: borderWidth != null ? borderWidth : rightWidth
|
width: borderWidth != null ? borderWidth : rightWidth
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _removeContact (contact) {
|
function _removeContact (contact) {
|
||||||
Utils.openConfirmDialog(contact, {
|
Utils.openConfirmDialog(window, {
|
||||||
descriptionText: qsTr('removeContactDescription'),
|
descriptionText: qsTr('removeContactDescription'),
|
||||||
exitHandler: function (status) {
|
exitHandler: function (status) {
|
||||||
console.log('remove contact', status)
|
console.log('remove contact', status)
|
||||||
|
|
@ -97,7 +97,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: Borders {
|
delegate: Borders {
|
||||||
borderColor: ContactsStyle.contact.border.color
|
bottomColor: ContactsStyle.contact.border.color
|
||||||
bottomWidth: ContactsStyle.contact.border.width
|
bottomWidth: ContactsStyle.contact.border.width
|
||||||
height: ContactsStyle.contact.height
|
height: ContactsStyle.contact.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
@ -108,6 +108,15 @@ ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: ContactsStyle.contact.backgroundColor.normal
|
color: ContactsStyle.contact.backgroundColor.normal
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: indicator
|
||||||
|
|
||||||
|
anchors.left: parent.left
|
||||||
|
color: 'transparent'
|
||||||
|
height: parent.height
|
||||||
|
width: ContactsStyle.contact.indicator.width
|
||||||
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
|
|
||||||
|
|
@ -215,6 +224,12 @@ ColumnLayout {
|
||||||
color: ContactsStyle.contact.backgroundColor.hovered
|
color: ContactsStyle.contact.backgroundColor.hovered
|
||||||
target: contact
|
target: contact
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
color: ContactsStyle.contact.indicator.color
|
||||||
|
target: indicator
|
||||||
|
}
|
||||||
|
|
||||||
PropertyChanges { target: container1; visible: false }
|
PropertyChanges { target: container1; visible: false }
|
||||||
PropertyChanges { target: container2; visible: true }
|
PropertyChanges { target: container2; visible: true }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,11 @@ QtObject {
|
||||||
property int width: 1
|
property int width: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property QtObject indicator: QtObject {
|
||||||
|
property color color: Colors.i
|
||||||
|
property int width: 5
|
||||||
|
}
|
||||||
|
|
||||||
property QtObject username: QtObject {
|
property QtObject username: QtObject {
|
||||||
property color color: '#4B5964'
|
property color color: '#4B5964'
|
||||||
property int width: 220
|
property int width: 220
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue