Updated margins & layout for the monitor page

CL-896
This commit is contained in:
Jaime van Kessel 2018-08-23 17:29:48 +02:00
parent b0d9dc6fdd
commit dab2efab7f
4 changed files with 57 additions and 29 deletions

View file

@ -79,15 +79,16 @@ Component
margins: UM.Theme.getSize("default_margin").width
top: activePrintersLabel.bottom
left: parent.left
leftMargin: UM.Theme.getSize("default_lining").width // To ensure border can be drawn.
rightMargin: UM.Theme.getSize("default_lining").width
bottomMargin: 0
right: parent.right
bottom: parent.bottom
}
style: UM.Theme.styles.scrollview
ListView
{
anchors.fill: parent
anchors.margins: UM.Theme.getSize("default_margin").height
spacing: UM.Theme.getSize("default_margin").height
model: OutputDevice.queuedPrintJobs
@ -95,11 +96,10 @@ Component
delegate: PrintJobInfoBlock
{
printJob: modelData
width: Math.min(800 * screenScaleFactor, maximumWidth)
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").height
height: 125 * screenScaleFactor
// Add a 1 pix margin, as the border is sometimes cut off otherwise.
anchors.horizontalCenter: parent.horizontalCenter
}
}
}