From 414a93326377887ec55079d4be93905d08148f28 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 19 Oct 2021 10:54:29 +0200 Subject: [PATCH] refactor(CommunityWelcomeBanner): use StatusQ StatusButton and others --- .../communities/CommunityWelcomeBannerPanel.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml index 4a6a775997..ee72eb7b58 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml @@ -2,7 +2,10 @@ import QtQuick 2.13 import QtQuick.Controls 2.13 import QtGraphicalEffects 1.13 -import "../../../../../shared" +import StatusQ.Core 0.1 +import StatusQ.Core.Theme 0.1 +import StatusQ.Controls 0.1 as StatusQControls + import "../../../../../shared/panels" import "../../../../../shared/status" @@ -57,7 +60,7 @@ Rectangle { } } - StyledText { + StatusBaseText { id: welcomeText //% "Welcome to your community!" text: qsTrId("welcome-to-your-community-") @@ -65,6 +68,7 @@ Rectangle { anchors.topMargin: 60 horizontalAlignment: Text.AlignHCenter font.pixelSize: 15 + color: Theme.palette.directColor1 wrapMode: Text.WordWrap anchors.right: parent.right anchors.rightMargin: Style.current.xlPadding @@ -72,7 +76,7 @@ Rectangle { anchors.leftMargin: Style.current.xlPadding } - StatusButton { + StatusQControls.StatusButton { id: addMembersBtn //% "Add members" text: qsTrId("add-members") @@ -84,11 +88,10 @@ Rectangle { }) } - StatusButton { + StatusQControls.StatusFlatButton { id: manageBtn //% "Manage community" text: qsTrId("manage-community") - type: "secondary" anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.padding