Gui: add explicit transparency specification
This commit is contained in:
@@ -51,6 +51,7 @@ ViewProviderOriginFeature::ViewProviderOriginFeature () {
|
||||
QT_TRANSLATE_NOOP("App::Property", "Visual size of the feature"));
|
||||
|
||||
ShapeColor.setValue ( ViewProviderOrigin::defaultColor ); // Set default color for origin (light-blue)
|
||||
Transparency.setValue(0);
|
||||
BoundingBox.setStatus(App::Property::Hidden, true); // Hide Boundingbox from the user due to it doesn't make sense
|
||||
|
||||
// Create node for scaling the origin
|
||||
|
||||
@@ -197,6 +197,7 @@ ViewProviderFemMesh::ViewProviderFemMesh()
|
||||
LineWidth.setConstraints(&floatRange);
|
||||
|
||||
ShapeColor.setValue(App::Color(1.0f, 0.7f, 0.0f));
|
||||
Transparency.setValue(0);
|
||||
ADD_PROPERTY(BackfaceCulling, (true));
|
||||
ADD_PROPERTY(ShowInner, (false));
|
||||
ADD_PROPERTY(MaxFacesShowInner, (50000));
|
||||
|
||||
@@ -82,6 +82,7 @@ void ImpExpDxfReadGui::ApplyGuiStyles(Part::Feature* object)
|
||||
view->LineColor.setValue(color);
|
||||
view->PointColor.setValue(color);
|
||||
view->ShapeColor.setValue(color);
|
||||
view->Transparency.setValue(0);
|
||||
}
|
||||
|
||||
void ImpExpDxfReadGui::ApplyGuiStyles(App::FeaturePython* object)
|
||||
|
||||
@@ -638,6 +638,7 @@ void PartGui::DlgProjectionOnSurface::show_projected_shapes(const std::vector<SS
|
||||
vp->LineColor.setValue(0x8ae23400);
|
||||
vp->ShapeColor.setValue(0x8ae23400);
|
||||
vp->PointColor.setValue(0x8ae23400);
|
||||
vp->Transparency.setValue(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user