mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
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:
parent
3f4f7f0fcf
commit
75ec6f508c
3 changed files with 4 additions and 22 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue