TechDraw: small corrections for line sizes

changeing the line weight for dimensions to a thin line
and get the font size for detail view labels from the configuration
rather than using a hardcoded value.
Also removing a duplicate method, as it is already implemend in the
parent class.
This commit is contained in:
Sebastian Bachmann
2018-02-27 13:10:41 +01:00
committed by Yorik van Havre
parent dd49ee27fd
commit efa8ceb303
4 changed files with 33 additions and 15 deletions

View File

@@ -67,7 +67,7 @@ ViewProviderDimension::ViewProviderDimension()
hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Decorations");
std::string lgName = hGrp->GetASCII("LineGroup","FC 0.70mm");
auto lg = TechDraw::LineGroup::lineGroupFactory(lgName);
double weight = lg->getWeight("Graphic");
double weight = lg->getWeight("Thin");
ADD_PROPERTY_TYPE(LineWidth,(weight) ,group,(App::PropertyType)(App::Prop_None),"Dimension line weight");
hGrp = App::GetApplication().GetUserParameter()