import QtQuick 2.14 import QtQuick.Controls 2.14 import QtQuick.Layouts 1.14 import QtGraphicalEffects 1.0 import StatusQ.Core 0.1 import StatusQ.Core.Theme 0.1 import StatusQ.Components 0.1 import StatusQ.Controls 0.1 import AppLayouts.Communities.panels 1.0 import AppLayouts.Chat.views 1.0 import StatusQ.Layout 0.1 import utils 1.0 import shared.popups 1.0 StatusSectionLayout { id: root // General properties: property string name property string communityDesc property color color property string channelName property string channelDesc // Blur view properties: property int membersCount property url image property var communityItemsModel property string chatDateTimeText property string listUsersText property var messagesModel signal adHocChatButtonClicked QtObject { id: d readonly property int blurryRadius: 32 } headerContent: JoinCommunityHeaderPanel { color: root.color name: root.name channelName: root.channelName communityDesc: root.communityDesc channelDesc: root.channelDesc } // Blur background: leftPanel: ColumnLayout { anchors.fill: parent ColumnHeaderPanel { Layout.fillWidth: true name: root.name membersCount: root.membersCount image: root.image color: root.color amISectionAdmin: false openCreateChat: false onAdHocChatButtonClicked: root.adHocChatButtonClicked() } ColumnLayout { Layout.fillWidth: true Layout.margins: Style.current.halfPadding layer.enabled: true layer.effect: fastBlur Repeater { model: root.communityItemsModel delegate: StatusChatListItem { enabled: false name: model.name asset.color: root.color selected: model.selected type: StatusChatListItem.Type.CommunityChat notificationsCount: model.notificationsCount hasUnreadMessages: model.hasUnreadMessages } } } Item { // filler Layout.fillHeight: true Layout.fillWidth: true } } centerPanel: CommunityBannedMemberCenterPanel { anchors.fill: parent name: root.name chatDateTimeText: root.chatDateTimeText listUsersText: root.listUsersText messagesModel: root.messagesModel } showRightPanel: false Component { id: fastBlur FastBlur { radius: d.blurryRadius transparentBorder: true } } }