Measure: Fix delta label text size scaling (#21467)

* Measure: Fix delta label font size

- Add font size field to ViewProviderMeasureBase which connects to other fields
- Remove dead code in DimensionLinear which internally is using FrameLabel
- Connect FrameLabels's fontsize property to DimensionLinear's property

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
hlorus
2025-05-20 12:10:35 +02:00
committed by GitHub
parent c9b87c5862
commit e4238f58e1
3 changed files with 10 additions and 13 deletions

View File

@@ -194,6 +194,7 @@ ViewProviderMeasureBase::ViewProviderMeasureBase()
TextBackgroundColor.touch();
FontSize.touch();
LineColor.touch();
fieldFontSize.setValue(FontSize.getValue());
}
ViewProviderMeasureBase::~ViewProviderMeasureBase()
@@ -251,6 +252,7 @@ void ViewProviderMeasureBase::onChanged(const App::Property* prop)
}
else if (prop == &FontSize) {
pLabel->size = FontSize.getValue();
fieldFontSize.setValue(FontSize.getValue());
}
ViewProviderDocumentObject::onChanged(prop);
}