From 8d3d156cf7511a218da8a0fb4f3c82494c3a26a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Tue, 25 Apr 2023 22:32:08 +0200 Subject: [PATCH] feat: RecipientTypeSelectionDropdown component added --- .../RecipientTypeSelectionDropdown.qml | 46 +++++++++++++++++++ .../AppLayouts/Chat/controls/community/qmldir | 1 + 2 files changed, 47 insertions(+) create mode 100644 ui/app/AppLayouts/Chat/controls/community/RecipientTypeSelectionDropdown.qml diff --git a/ui/app/AppLayouts/Chat/controls/community/RecipientTypeSelectionDropdown.qml b/ui/app/AppLayouts/Chat/controls/community/RecipientTypeSelectionDropdown.qml new file mode 100644 index 0000000000..5fee32a7c6 --- /dev/null +++ b/ui/app/AppLayouts/Chat/controls/community/RecipientTypeSelectionDropdown.qml @@ -0,0 +1,46 @@ +import QtQuick 2.15 +import QtQuick.Layouts 1.15 + +import StatusQ.Controls 0.1 + + +StatusDropdown { + id: root + + signal ethAddressesSelected + signal communityMembersSelected + + width: 289 + padding: 8 + leftPadding: 16 + + contentItem: ColumnLayout { + spacing: 8 + + StatusIconTextButton { + Layout.preferredHeight: 36 + Layout.fillWidth: true + + spacing: 9 + statusIcon: "address" + icon.width: 15 + icon.height: 15 + text: qsTr("ETH adresses") + + onClicked: root.ethAddressesSelected() + } + + StatusIconTextButton { + Layout.preferredHeight: 36 + Layout.fillWidth: true + + spacing: 9 + statusIcon: "profile" + icon.width: 15 + icon.height: 15 + text: qsTr("Community members") + + onClicked: root.communityMembersSelected() + } + } +} diff --git a/ui/app/AppLayouts/Chat/controls/community/qmldir b/ui/app/AppLayouts/Chat/controls/community/qmldir index 13e7355620..1ee7cd697f 100644 --- a/ui/app/AppLayouts/Chat/controls/community/qmldir +++ b/ui/app/AppLayouts/Chat/controls/community/qmldir @@ -13,6 +13,7 @@ MembersDropdown 1.0 MembersDropdown.qml MembersSelectorPanel 1.0 MembersSelectorPanel.qml PermissionItem 1.0 PermissionItem.qml PermissionsDropdown 1.0 PermissionsDropdown.qml +RecipientTypeSelectionDropdown 1.0 RecipientTypeSelectionDropdown.qml TokenItem 1.0 TokenItem.qml TokenPanel 1.0 TokenPanel.qml singleton PermissionTypes 1.0 PermissionTypes.qml