Add main layout for printer list page

The actual printer list is not implemented yet and some of these elements may need to be swapped out if there are no printers available. But this is the basis of it.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-05 14:30:42 +02:00
parent ec79961153
commit c95de3e379
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF

View file

@ -189,7 +189,38 @@ Window
color: UM.Theme.getColor("text")
Layout.preferredHeight: height
}
//TODO: Add contents.
Rectangle
{
color: "pink"
width: parent.width
Layout.preferredWidth: width
Layout.fillHeight: true
//TODO: Add printer list.
}
Cura.TertiaryButton
{
text: catalog.i18nc("@button", "Troubleshooting")
iconSource: UM.Theme.getIcon("LinkExternal")
Layout.preferredHeight: height
}
Item
{
width: parent.width
height: childrenRect.height
Layout.preferredWidth: width
Layout.preferredHeight: height
Cura.SecondaryButton
{
anchors.left: parent.left
text: catalog.i18nc("@button", "Sync materials with USB")
onClicked: swipeView.currentIndex = swipeView.count - 1 //Go to the last page, which is USB.
}
Cura.PrimaryButton
{
anchors.right: parent.right
text: catalog.i18nc("@button", "Sync")
}
}
}
}
}