Show layer height in profile selection menu

It's shown in the 'inactive' font colour, which isn't entirely semantically correct but has the behaviour we want regardless of how the theme changes in the future.

Contributes to issue CURA-2723.
This commit is contained in:
Ghostkeeper 2016-10-20 17:16:06 +02:00
parent 021023a932
commit 57b0275384
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -285,7 +285,16 @@ Column
ToolButton
{
id: globalProfileSelection
text: Cura.MachineManager.activeQualityName
text: {
var result = Cura.MachineManager.activeQualityName;
if (Cura.MachineManager.activeQualityLayerHeight > 0) {
result += " <font color=\"" + UM.Theme.getColor("text_inactive") + "\">";
result += " - ";
result += Cura.MachineManager.activeQualityLayerHeight + "mm";
result += "</font>";
}
return result;
}
enabled: !extrudersList.visible || base.currentExtruderIndex > -1
width: parent.width * 0.55 + UM.Theme.getSize("default_margin").width