2024-10-28 11:51:56 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
2022-10-25 08:24:47 +00:00
|
|
|
|
2023-06-23 06:17:04 +00:00
|
|
|
import AppLayouts.Communities.panels 1.0
|
2022-10-25 08:24:47 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
Frame {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
height: parent.height * 0.8
|
|
|
|
width: parent.width * 0.8
|
|
|
|
|
2024-10-28 11:51:56 +00:00
|
|
|
ProfilePopupInviteMessagePanel {
|
|
|
|
id: panel
|
2022-10-25 08:24:47 +00:00
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
2024-10-28 11:51:56 +00:00
|
|
|
contactsModel: ListModel {
|
|
|
|
Component.onCompleted: {
|
|
|
|
const keys = []
|
|
|
|
|
|
|
|
for (let i = 0; i < 20; i++) {
|
|
|
|
const key = `pub_key_${i}`
|
|
|
|
|
|
|
|
append({
|
|
|
|
isContact: true,
|
|
|
|
onlineStatus: 1,
|
|
|
|
displayName: `contact ${i}`,
|
|
|
|
icon: "",
|
|
|
|
colorId: "1",
|
|
|
|
pubKey: key,
|
|
|
|
compressedKey: "zx3sh" + key,
|
|
|
|
colorHash: [
|
|
|
|
{ colorId: i, segmentLength: i % 5 },
|
|
|
|
{ colorId: i + 5, segmentLength: 3 },
|
|
|
|
{ colorId: 19, segmentLength: 2 }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
|
|
|
|
keys.push(key)
|
2022-10-25 08:24:47 +00:00
|
|
|
}
|
2024-10-28 11:51:56 +00:00
|
|
|
|
|
|
|
panel.pubKeys = keys
|
2022-10-25 08:24:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-31 12:21:14 +00:00
|
|
|
|
|
|
|
// category: Panels
|
2023-10-03 11:56:30 +00:00
|
|
|
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4291%3A385536
|
|
|
|
// https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba%E2%8E%9CDesktop?node-id=4295%3A385958
|