Correct spacing in Welcome screen

CURA-8094 Cura onboarding flow
This commit is contained in:
Jelle Spijker 2021-03-23 12:57:38 +01:00
parent 778db451ad
commit 1b8d261e95
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A

View File

@ -29,26 +29,39 @@ Item
scale: 0.666 scale: 0.666
} }
Label Column
{ {
id: titleLabel
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter spacing: UM.Theme.getSize("thick_margin").height
text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
color: UM.Theme.getColor("primary_button") Label
font: UM.Theme.getFont("huge_bold") {
renderType: Text.NativeRendering id: titleLabel
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@label", "Welcome to Ultimaker Cura")
color: UM.Theme.getColor("primary_button")
font: UM.Theme.getFont("huge_bold")
renderType: Text.NativeRendering
}
Label
{
id: textLabel
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@text", "Please follow these steps to set up Ultimaker Cura.\nThis will only take a few moments.")
font: UM.Theme.getFont("medium")
color: UM.Theme.getColor("text")
renderType: Text.NativeRendering
}
} }
Label // Filler item
Item
{ {
id: textLabel height: UM.Theme.getSize("thick_margin").height
anchors.horizontalCenter: parent.horizontalCenter width: parent.width
horizontalAlignment: Text.AlignHCenter
text: catalog.i18nc("@text", "Please follow these steps to set up Ultimaker Cura.\nThis will only take a few moments.")
font: UM.Theme.getFont("medium")
color: UM.Theme.getColor("text")
renderType: Text.NativeRendering
} }
Cura.PrimaryButton Cura.PrimaryButton
@ -58,5 +71,12 @@ Item
text: catalog.i18nc("@button", "Get started") text: catalog.i18nc("@button", "Get started")
onClicked: base.showNextPage() onClicked: base.showNextPage()
} }
// Filler item
Item
{
height: UM.Theme.getSize("thick_margin").height
width: parent.width
}
} }
} }