Honor label color settings for 'Tape Measure' component

This commit is contained in:
Bane Stojkovic
2025-12-29 13:40:06 +01:00
parent dc2cc4c7c8
commit 840d416282
2 changed files with 6 additions and 1 deletions
@@ -451,7 +451,11 @@
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Improve contrast of tooltips on some Linux machines that show white text against yellow ballon</description>
<description>Improve contrast of tooltips on some Linux machines that show white text against yellow balloon</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Honor label color settings for 'Tape Measure' component</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
@@ -174,6 +174,7 @@ public class TapeMeasure extends AbstractLeadedComponent<String> {
g2d.rotate(theta);
g2d.setFont(font);
g2d.setColor(componentState == ComponentState.SELECTED ? SELECTION_COLOR : labelColor);
g2d.drawString(text, x, y);
}