Remove unneeded fixed line hight properties

No idea why this was even done, but there just isnt' a reason to use these.
This commit is contained in:
Jaime van Kessel 2022-02-25 14:27:47 +01:00
parent 3f4f7f0fcf
commit 75ec6f508c
3 changed files with 4 additions and 22 deletions

View file

@ -18,7 +18,7 @@ Item
property var printJob: null
width: childrenRect.width
height: UM.Theme.getSize("monitor_text_line").height
height: percentLabel.height
UM.ProgressBar
{
@ -39,14 +39,11 @@ Item
{
left: progressBar.right
leftMargin: UM.Theme.getSize("default_margin").width
verticalCenter: parent.verticalCenter
}
text: printJob ? Math.round(printJob.progress * 100) + "%" : "0%"
color: printJob && printJob.isActive ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
width: contentWidth
wrapMode: Text.NoWrap
// FIXED-LINE-HEIGHT:
height: UM.Theme.getSize("monitor_text_line").height
}
UM.Label
{
@ -55,7 +52,6 @@ Item
{
left: percentLabel.right
leftMargin: UM.Theme.getSize("default_margin").width
verticalCenter: parent.verticalCenter
}
wrapMode: Text.NoWrap
text:
@ -111,8 +107,5 @@ Item
}
}
width: contentWidth
// FIXED-LINE-HEIGHT:
height: UM.Theme.getSize("monitor_text_line").height
}
}