Browse Source

Refactor: simplify SimulationSliderLabel font metrics

Nino van Hooff 5 years ago
parent
commit
c31c1dd6fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/SimulationView/SimulationSliderLabel.qml

+ 1 - 1
plugins/SimulationView/SimulationSliderLabel.qml

@@ -41,7 +41,7 @@ UM.PointingRectangle {
 
     TextMetrics {
         id:     maxValueMetrics
-        font:   UM.Theme.getFont("default")
+        font:   valueLabel.font
         text:   maximumValue + 1 // layers are 0 based, add 1 for display value
 
     }