Browse Source

Add the correct value to the setting viewer when the type is unknown.
Contributes to CURA-4495

Diego Prado Gesto 7 years ago
parent
commit
cd9531b746
1 changed files with 5 additions and 4 deletions
  1. 5 4
      resources/qml/Settings/SettingUnknown.qml

+ 5 - 4
resources/qml/Settings/SettingUnknown.qml

@@ -11,9 +11,10 @@ SettingItem
     contents: Label
     {
         anchors.fill: parent
-        text: value + " " + unit;
-        color: UM.Theme.getColor("setting_control_text")
-
-        verticalAlignment: Qt.AlignVCenter
+        text: propertyProvider.properties.value + " " + unit
+        renderType: Text.NativeRendering
+        font: UM.Theme.getFont("default")
+        color: UM.Theme.getColor("text")
+        verticalAlignment: Text.AlignVCenter
     }
 }