refactor(EmptyView): use StatusQ components
This commit is contained in:
parent
b3883f9b47
commit
f86a55f0b1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue