PartDesign: Unify datum and shapebuilder visuals

This commit is contained in:
Stefan Tröger 2016-03-16 17:29:09 +01:00
parent 666a5968cb
commit e9b9d285ac
2 changed files with 13 additions and 5 deletions

View File

@ -88,6 +88,8 @@ ViewProviderDatum::ViewProviderDatum()
pPickStyle = new SoPickStyle();
pPickStyle->ref();
DisplayMode.setStatus(App::Property::Hidden, true);
// set default color for datums (golden yellow with 60% transparency)
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath (
"User parameter:BaseApp/Preferences/Mod/PartDesign");

View File

@ -57,13 +57,19 @@ ViewProviderShapeBinder::ViewProviderShapeBinder()
LineWidth.setStatus(App::Property::Hidden, true);
PointColor.setStatus(App::Property::Hidden, true);
PointSize.setStatus(App::Property::Hidden, true);
ShapeColor.setStatus(App::Property::Hidden, true);
Transparency.setStatus(App::Property::Hidden, true);
DisplayMode.setStatus(App::Property::Hidden, true);
//get the datum coloring sheme
ShapeColor.setValue(App::Color(0.9f, 0.9f, 0.13f, 0.5f));
LineColor.setValue(App::Color(0.9f, 0.9f, 0.13f, 0.5f));
PointColor.setValue(App::Color(0.9f, 0.9f, 0.13f, 0.5f));
// set default color for datums (golden yellow with 60% transparency)
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath (
"User parameter:BaseApp/Preferences/Mod/PartDesign");
unsigned long shcol = hGrp->GetUnsigned ( "DefaultDatumColor", 0xFFD70099 );
App::Color col ( (uint32_t) shcol );
ShapeColor.setValue(col);
LineColor.setValue(col);
PointColor.setValue(col);
Transparency.setValue(60);
LineWidth.setValue(1);
}