Remove hardcoded narrow_margins

CURA-7745
This commit is contained in:
Jaime van Kessel 2020-10-08 17:55:11 +02:00
parent 3e67d20890
commit ec5796400b
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 7 additions and 7 deletions

View file

@ -130,7 +130,7 @@ Item
anchors
{
top: printerNameLabel.bottom
topMargin: 6 * screenScaleFactor // TODO: Theme!
topMargin: UM.Theme.getSize("narrow_margin").height
left: printerNameLabel.left
}
text: printer ? printer.type : ""
@ -140,7 +140,7 @@ Item
id: managePrinterLink
anchors {
top: printerFamilyPill.bottom
topMargin: 6 * screenScaleFactor
topMargin: UM.Theme.getSize("narrow_margin").height
}
height: 18 * screenScaleFactor // TODO: Theme!
width: childrenRect.width
@ -160,7 +160,7 @@ Item
anchors
{
left: managePrinterText.right
leftMargin: 6 * screenScaleFactor
leftMargin: UM.Theme.getSize("narrow_margin").width
verticalCenter: managePrinterText.verticalCenter
}
color: UM.Theme.getColor("text_link")
@ -413,7 +413,7 @@ Item
anchors
{
top: printerJobNameLabel.bottom
topMargin: 6 * screenScaleFactor // TODO: Theme!
topMargin: UM.Theme.getSize("narrow_margin").height
left: printerJobNameLabel.left
}
color: printer && printer.activePrintJob && printer.activePrintJob.isActive ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")