mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 04:41:06 -07:00
Separate black and grey text for quality menu
CURA-6846
This commit is contained in:
parent
32747d2abe
commit
8940097265
3 changed files with 35 additions and 11 deletions
|
|
@ -100,18 +100,30 @@ Item
|
|||
|
||||
function generateActiveQualityText()
|
||||
{
|
||||
var result = Cura.MachineManager.activeQualityDisplayName
|
||||
var resultMap = Cura.MachineManager.activeQualityDisplayNameMap
|
||||
var resultMain = resultMap["main"]
|
||||
var resultSuffix = resultMap["suffix"]
|
||||
var result = ""
|
||||
|
||||
if (Cura.MachineManager.isActiveQualityExperimental)
|
||||
{
|
||||
result += " (Experimental)"
|
||||
resultSuffix += " (Experimental)"
|
||||
}
|
||||
|
||||
if (Cura.MachineManager.isActiveQualitySupported)
|
||||
{
|
||||
if (Cura.MachineManager.activeQualityLayerHeight > 0)
|
||||
{
|
||||
result += " <font color=\"" + UM.Theme.getColor("text_detail") + "\">"
|
||||
result = resultMain
|
||||
if (resultSuffix)
|
||||
{
|
||||
result += " - "
|
||||
}
|
||||
result += "<font color=\"" + UM.Theme.getColor("text_detail") + "\">"
|
||||
if (resultSuffix)
|
||||
{
|
||||
result += resultSuffix
|
||||
}
|
||||
result += " - "
|
||||
result += Cura.MachineManager.activeQualityLayerHeight + "mm"
|
||||
result += "</font>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue