[TD]common preference getters for hatches

This commit is contained in:
wandererfan
2020-03-17 19:32:12 -04:00
committed by WandererFan
parent 69af481235
commit 7a9a87fa6c
6 changed files with 45 additions and 32 deletions

View File

@@ -627,6 +627,15 @@ std::string DrawGeomHatch::prefGeomHatchName()
return result;
}
App::Color DrawGeomHatch::prefGeomHatchColor()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Colors");
App::Color fcColor;
fcColor.setPackedValue(hGrp->GetUnsigned("GeomHatch", 0x00FF0000));
return fcColor;
}
// Python Drawing feature ---------------------------------------------------------