fix #LINQT-1407 close numeric pad
delegate mousearea color + padding fix #LINQT-1408 reset call notif on pressed try to fix notif coordinates #LINQT-1415
This commit is contained in:
parent
10ab8395f7
commit
9c36745673
6 changed files with 127 additions and 127 deletions
|
|
@ -17,14 +17,6 @@ Control.TabBar {
|
|||
onDefaultAccountChanged: {
|
||||
if (defaultAccount) defaultAccount.core?.lRefreshNotifications()
|
||||
}
|
||||
Connections {
|
||||
enabled: defaultAccount
|
||||
target: defaultAccount.core
|
||||
onUnreadCallNotificationsChanged: {
|
||||
console.log("unread changed", currentIndex)
|
||||
if (currentIndex === 0) defaultAccount?.core.lResetMissedCalls()
|
||||
}
|
||||
}
|
||||
|
||||
component UnreadNotification: Rectangle {
|
||||
id: unreadNotifications
|
||||
|
|
|
|||
|
|
@ -181,11 +181,13 @@ ListView {
|
|||
id: contactDelegate
|
||||
anchors.left: initial.visible ? initial.right : parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 5 * DefaultStyle.dp
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
spacing: 16 * DefaultStyle.dp
|
||||
z: 1
|
||||
Avatar {
|
||||
Layout.leftMargin: 5 * DefaultStyle.dp
|
||||
Layout.preferredWidth: 45 * DefaultStyle.dp
|
||||
Layout.preferredHeight: 45 * DefaultStyle.dp
|
||||
contact: modelData
|
||||
|
|
@ -344,8 +346,6 @@ ListView {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
MouseArea {
|
||||
id: contactArea
|
||||
enabled: mainItem.selectionEnabled
|
||||
|
|
@ -358,7 +358,8 @@ ListView {
|
|||
Rectangle {
|
||||
anchors.fill: contactArea
|
||||
opacity: 0.7
|
||||
color: DefaultStyle.main2_100
|
||||
radius: 8 * DefaultStyle.dp
|
||||
color: mainItem.currentIndex === index ? DefaultStyle.main2_200 : DefaultStyle.main2_100
|
||||
visible: contactArea.containsMouse || friendPopup.hovered || mainItem.currentIndex === index
|
||||
}
|
||||
Keys.onPressed: (event)=> {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import UtilsCpp
|
|||
Notification {
|
||||
id: mainItem
|
||||
radius: 20 * DefaultStyle.dp
|
||||
overriddenWidth: content.implicitWidth//101 * DefaultStyle.dp
|
||||
overriddenHeight: content.implicitHeight//422 * DefaultStyle.dp
|
||||
overriddenWidth: content.width//101 * DefaultStyle.dp
|
||||
overriddenHeight: content.height//422 * DefaultStyle.dp
|
||||
|
||||
readonly property var call: notificationData && notificationData.call
|
||||
property var state: call.core.state
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ FocusScope {
|
|||
signal transferCallToAnotherRequested(CallGui dest)
|
||||
signal contactClicked(FriendGui contact)
|
||||
clip: true
|
||||
onVisibleChanged: if (numPadPopup.opened) numPadPopup.close()
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
|
|
@ -78,6 +78,16 @@ Item {
|
|||
sourceModel: AppCpp.calls
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
z: 100
|
||||
onPressed: {
|
||||
if (mainStackView.currentItem.objectName === "mainStackLayout" && mainStackView.currentItem.currentIndex === 0
|
||||
&& accountProxy.defaultAccount && accountProxy.defaultAccount.core.unreadCallNotifications > 0) accountProxy.defaultAccount.core.lResetMissedCalls()
|
||||
mouse.accepted = false
|
||||
}
|
||||
}
|
||||
|
||||
Item{
|
||||
Popup {
|
||||
|
|
@ -612,6 +622,7 @@ Item {
|
|||
id: mainStackLayoutComponent
|
||||
StackLayout {
|
||||
id: mainStackLayout
|
||||
objectName: "mainStackLayout"
|
||||
currentIndex: tabbar.currentIndex
|
||||
onActiveFocusChanged: if(activeFocus && currentIndex >= 0) children[currentIndex].forceActiveFocus()
|
||||
CallPage {
|
||||
|
|
|
|||
|
|
@ -284,6 +284,8 @@ AbstractMainPage {
|
|||
RowLayout {
|
||||
z: 1
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: 5 * DefaultStyle.dp
|
||||
anchors.rightMargin: 5 * DefaultStyle.dp
|
||||
spacing: 10 * DefaultStyle.dp
|
||||
Avatar {
|
||||
id: historyAvatar
|
||||
|
|
@ -353,7 +355,6 @@ AbstractMainPage {
|
|||
}
|
||||
}
|
||||
Button {
|
||||
Layout.rightMargin: 5 * DefaultStyle.dp
|
||||
padding: 0
|
||||
background: Item {
|
||||
visible: false
|
||||
|
|
@ -384,14 +385,10 @@ AbstractMainPage {
|
|||
focus: true
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
opacity: 0.1
|
||||
color: DefaultStyle.main2_500main
|
||||
visible: parent.containsMouse
|
||||
}
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
visible: historyListView.currentIndex === model.index
|
||||
color: DefaultStyle.main2_100
|
||||
opacity: 0.7
|
||||
radius: 8 * DefaultStyle.dp
|
||||
color: historyListView.currentIndex === index ? DefaultStyle.main2_200 : DefaultStyle.main2_100
|
||||
visible: parent.containsMouse || historyListView.currentIndex === index
|
||||
}
|
||||
onPressed: {
|
||||
historyListView.currentIndex = model.index
|
||||
|
|
@ -399,8 +396,6 @@ AbstractMainPage {
|
|||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
//}
|
||||
onCurrentIndexChanged: {
|
||||
positionViewAtIndex(currentIndex, ListView.Visible)
|
||||
mainItem.selectedRowHistoryGui = model.getAt(currentIndex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue