[Gui][Mod]: uniform spin button step size to 5%

- as discussed here: https://github.com/FreeCAD/FreeCAD/pull/7103 we have different transparency spin button step sizes. This PR uniforms them all to 5%.
This commit is contained in:
Uwe
2022-11-06 03:46:19 +01:00
parent d6a7b282d5
commit 6a68da4871
5 changed files with 82 additions and 19 deletions

View File

@@ -53,7 +53,7 @@ using namespace Gui;
PROPERTY_SOURCE(Gui::ViewProviderGeometryObject, Gui::ViewProviderDragger)
const App::PropertyIntegerConstraint::Constraints intPercent = {0, 100, 1};
const App::PropertyIntegerConstraint::Constraints intPercent = {0, 100, 5};
ViewProviderGeometryObject::ViewProviderGeometryObject()
: pcBoundSwitch(nullptr)
@@ -65,9 +65,9 @@ ViewProviderGeometryObject::ViewProviderGeometryObject()
if (randomColor){
auto fMax = (float)RAND_MAX;
r = (float)rand()/fMax;
g = (float)rand()/fMax;
b = (float)rand()/fMax;
r = (float)rand() / fMax;
g = (float)rand() / fMax;
b = (float)rand() / fMax;
}
else {
unsigned long shcol = hGrp->GetUnsigned("DefaultShapeColor", 3435973887UL); // light gray (204,204,204)