diff --git a/src/Gui/ViewProviderGeometryObject.cpp b/src/Gui/ViewProviderGeometryObject.cpp
index f71911c01c..5b95d2f318 100644
--- a/src/Gui/ViewProviderGeometryObject.cpp
+++ b/src/Gui/ViewProviderGeometryObject.cpp
@@ -77,9 +77,10 @@ const App::PropertyIntegerConstraint::Constraints intPercent = {0,100,1};
ViewProviderGeometryObject::ViewProviderGeometryObject() : pcBoundSwitch(0),pcBoundColor(0)
{
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
- bool randomColor = hGrp->GetBool("randomColor", true);
+ bool randomColor = hGrp->GetBool("RandomColor", true);
float r,g,b;
- if(randomColor){ // random box checked
+
+ if(randomColor){
float fMax = (float)RAND_MAX;
r = (float)rand()/fMax;
g = (float)rand()/fMax;
diff --git a/src/Mod/Part/Gui/DlgSettingsObjectColor.ui b/src/Mod/Part/Gui/DlgSettingsObjectColor.ui
index cfe4124ad6..43b8269e15 100644
--- a/src/Mod/Part/Gui/DlgSettingsObjectColor.ui
+++ b/src/Mod/Part/Gui/DlgSettingsObjectColor.ui
@@ -6,8 +6,8 @@
0
0
- 332
- 331
+ 476
+ 395
@@ -22,6 +22,32 @@
-
+
-
+
+
+
+ 182
+ 0
+
+
+
+ Default vertex color
+
+
+
+ -
+
+
+
+ 182
+ 0
+
+
+
+ Bounding box color
+
+
+
-
@@ -35,45 +61,12 @@
- -
-
-
- The default color for new shapes
-
-
-
- 204
- 204
- 204
-
-
-
- DefaultShapeColor
-
-
- View
-
-
-
- -
-
-
-
- 182
- 0
-
-
-
- Default line color
-
-
-
-
The default line color for new shapes
-
+
25
25
@@ -88,16 +81,23 @@
- -
-
-
-
- 182
- 0
-
+
-
+
+
+ The default color for new shapes
-
- Default line width
+
+
+ 204
+ 204
+ 204
+
+
+
+ DefaultShapeColor
+
+
+ View
@@ -123,52 +123,6 @@
- -
-
-
-
- 182
- 0
-
-
-
- Default vertex color
-
-
-
- -
-
-
- The default line color for new shapes
-
-
-
- 25
- 25
- 25
-
-
-
- DefaultShapeVertexColor
-
-
- View
-
-
-
- -
-
-
-
- 182
- 0
-
-
-
- Default vertex size
-
-
-
-
@@ -191,25 +145,12 @@
- -
-
-
-
- 182
- 0
-
-
-
- Bounding box color
-
-
-
-
The color of bounding boxes in the 3D view
-
+
255
255
@@ -224,6 +165,81 @@
+ -
+
+
+
+ 182
+ 0
+
+
+
+ Default vertex size
+
+
+
+ -
+
+
+
+ 182
+ 0
+
+
+
+ Default line width
+
+
+
+ -
+
+
+
+ 182
+ 0
+
+
+
+ Default line color
+
+
+
+ -
+
+
+ The default line color for new shapes
+
+
+
+ 25
+ 25
+ 25
+
+
+
+ DefaultShapeVertexColor
+
+
+ View
+
+
+
+ -
+
+
+ random shapecolor
+
+
+ true
+
+
+ RandomColor
+
+
+ View
+
+
+
-
@@ -292,22 +308,6 @@
-
-
-
-
-
- random shapecolor
-
-
- randomColor
-
-
- View
-
-
-
-
-
- -
Qt::Vertical
@@ -346,18 +346,27 @@
DefaultShapeColor
- checkRandomColor
DefaultShapeLineWidth
DefaultShapeLineColor
BoundingBoxColor
-
+
checkRandomColor
toggled(bool)
DefaultShapeColor
setDisabled(bool)
+
+
+ 20
+ 20
+
+
+ 20
+ 20
+
+
-
+