[Part] [PD] add preferences setting for transparency

- allow to specify the default transparency for new shapes
This commit is contained in:
Uwe
2022-06-27 01:54:18 +02:00
parent a014cac3c3
commit 19530b337f
7 changed files with 79 additions and 26 deletions

View File

@@ -248,7 +248,7 @@ void ViewProviderSubShapeBinder::onChanged(const App::Property* prop) {
shapeColor.setPackedValue(Gui::ViewParams::instance()->getDefaultShapeColor());
lineColor.setPackedValue(Gui::ViewParams::instance()->getDefaultShapeLineColor());
pointColor = lineColor;
transparency = 0;
transparency = Gui::ViewParams::instance()->getDefaultShapeTransparency();
linewidth = Gui::ViewParams::instance()->getDefaultShapeLineWidth();
}
ShapeColor.setValue(shapeColor);