From f86a55f0b14438f5df65e7719a00091608e8cb44 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 19 Oct 2021 10:56:57 +0200 Subject: [PATCH] refactor(EmptyView): use StatusQ components --- ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml b/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml index b99415849e..92f683073c 100644 --- a/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml @@ -3,6 +3,11 @@ import QtQuick.Controls 2.13 import QtQuick.Layouts 1.13 import QtGraphicalEffects 1.13 import "../helpers/channelList.js" as ChannelJSON + +import StatusQ.Core 0.1 +import StatusQ.Core.Theme 0.1 +import StatusQ.Controls 0.1 as StatusQControls + import "../../../../shared" import "../../../../shared/popups" import "../../../../shared/panels" @@ -61,7 +66,7 @@ Rectangle { } } - StyledText { + StatusBaseText { id: chatAndTransactText //% "Chat and transact privately with your friends" text: qsTrId("chat-and-transact-privately-with-your-friends") @@ -74,9 +79,10 @@ Rectangle { anchors.rightMargin: Style.current.xlPadding anchors.left: parent.left anchors.leftMargin: Style.current.xlPadding + color: Theme.palette.directColor1 } - StatusButton { + StatusQControls.StatusButton { //% "Invite friends" text: qsTrId("invite-friends") anchors.horizontalCenter: parent.horizontalCenter @@ -115,7 +121,7 @@ Rectangle { return suggestionsText.height + totalHeight + Style.current.smallPadding } - StyledText { + StatusBaseText { id: suggestionsText width: parent.width //% "Follow your interests in one of the many Public Chats." @@ -132,6 +138,7 @@ Rectangle { anchors.rightMargin: Style.current.xlPadding anchors.left: parent.left anchors.leftMargin: Style.current.xlPadding + color: Theme.palette.directColor1 } Item {