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 QtQuick.Layouts 1.13
|
||||||
import QtGraphicalEffects 1.13
|
import QtGraphicalEffects 1.13
|
||||||
import "../helpers/channelList.js" as ChannelJSON
|
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"
|
||||||
import "../../../../shared/popups"
|
import "../../../../shared/popups"
|
||||||
import "../../../../shared/panels"
|
import "../../../../shared/panels"
|
||||||
|
@ -61,7 +66,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StatusBaseText {
|
||||||
id: chatAndTransactText
|
id: chatAndTransactText
|
||||||
//% "Chat and transact privately with your friends"
|
//% "Chat and transact privately with your friends"
|
||||||
text: qsTrId("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.rightMargin: Style.current.xlPadding
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Style.current.xlPadding
|
anchors.leftMargin: Style.current.xlPadding
|
||||||
|
color: Theme.palette.directColor1
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusButton {
|
StatusQControls.StatusButton {
|
||||||
//% "Invite friends"
|
//% "Invite friends"
|
||||||
text: qsTrId("invite-friends")
|
text: qsTrId("invite-friends")
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
@ -115,7 +121,7 @@ Rectangle {
|
||||||
return suggestionsText.height + totalHeight + Style.current.smallPadding
|
return suggestionsText.height + totalHeight + Style.current.smallPadding
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StatusBaseText {
|
||||||
id: suggestionsText
|
id: suggestionsText
|
||||||
width: parent.width
|
width: parent.width
|
||||||
//% "Follow your interests in one of the many Public Chats."
|
//% "Follow your interests in one of the many Public Chats."
|
||||||
|
@ -132,6 +138,7 @@ Rectangle {
|
||||||
anchors.rightMargin: Style.current.xlPadding
|
anchors.rightMargin: Style.current.xlPadding
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Style.current.xlPadding
|
anchors.leftMargin: Style.current.xlPadding
|
||||||
|
color: Theme.palette.directColor1
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
Loading…
Reference in New Issue