refactor(BackupCommunityBanner): use StatusQ components in banner
This commit is contained in:
parent
572c039a7d
commit
d2232cd5c2
|
@ -1,8 +1,10 @@
|
||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
import QtGraphicalEffects 1.13
|
import QtGraphicalEffects 1.13
|
||||||
import "../../../../../shared"
|
|
||||||
import "../../../../../shared/panels"
|
import StatusQ.Core 0.1
|
||||||
import "../../../../../shared/status"
|
import StatusQ.Core.Theme 0.1
|
||||||
|
import StatusQ.Controls 0.1
|
||||||
|
import StatusQ.Components 0.1
|
||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
import "../../popups/community"
|
import "../../popups/community"
|
||||||
|
@ -27,21 +29,16 @@ Rectangle {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
SVGImage {
|
StatusRoundIcon {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: -6
|
anchors.topMargin: -6
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
source: Style.svg("key")
|
|
||||||
width: 40
|
width: 40
|
||||||
height: 40
|
height: 40
|
||||||
ColorOverlay {
|
icon.name: "objects"
|
||||||
anchors.fill: parent
|
|
||||||
source: parent
|
|
||||||
color: Style.current.blue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StatusBaseText {
|
||||||
id: backUpText
|
id: backUpText
|
||||||
//% "Back up community key"
|
//% "Back up community key"
|
||||||
text: qsTrId("back-up-community-key")
|
text: qsTrId("back-up-community-key")
|
||||||
|
@ -54,6 +51,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
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
|
|
Loading…
Reference in New Issue