Use theme

This commit is contained in:
Lipu Fei 2019-03-22 13:06:35 +01:00
parent 26acad3dbc
commit 2074bf9133
3 changed files with 7 additions and 4 deletions

View File

@ -74,7 +74,9 @@ Item
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.margins: 1 // Keep a small margin with the Rectangle container so its content will not overlap with the Rectangle
// border.
anchors.margins: UM.Theme.getSize("default_lining").width
sourceComponent: base.contentComponent != null ? base.contentComponent : emptyComponent sourceComponent: base.contentComponent != null ? base.contentComponent : emptyComponent
} }

View File

@ -41,7 +41,8 @@ Item
{ {
currentStep++ currentStep++
} }
else { else
{
passLastPage() passLastPage()
} }
} }

View File

@ -32,8 +32,8 @@ Item
{ {
anchors.top: titleLabel.bottom anchors.top: titleLabel.bottom
anchors.bottom: getStartedButton.top anchors.bottom: getStartedButton.top
anchors.topMargin: 40 anchors.topMargin: UM.Theme.getSize("welcome_pages_default_margin").height
anchors.bottomMargin: 40 anchors.bottomMargin: UM.Theme.getSize("welcome_pages_default_margin").height
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
width: parent.width * 3 / 4 width: parent.width * 3 / 4