diff --git a/src/Mod/Sketcher/Gui/SketcherSettings.cpp b/src/Mod/Sketcher/Gui/SketcherSettings.cpp index cef95407e22d..e63f8e2b3b0b 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettings.cpp +++ b/src/Mod/Sketcher/Gui/SketcherSettings.cpp @@ -253,6 +253,7 @@ void SketcherSettingsColors::saveSettings() ui->EditedVertexColor->onSave(); ui->ConstructionColor->onSave(); ui->ExternalColor->onSave(); + ui->InvalidSketchColor->onSave(); ui->FullyConstrainedColor->onSave(); ui->InternalAlignedGeoColor->onSave(); ui->FullyConstraintElementColor->onSave(); @@ -280,6 +281,7 @@ void SketcherSettingsColors::loadSettings() ui->EditedVertexColor->onRestore(); ui->ConstructionColor->onRestore(); ui->ExternalColor->onRestore(); + ui->InvalidSketchColor->onRestore(); ui->FullyConstrainedColor->onRestore(); ui->InternalAlignedGeoColor->onRestore(); ui->FullyConstraintElementColor->onRestore(); diff --git a/src/Mod/Sketcher/Gui/SketcherSettingsColors.ui b/src/Mod/Sketcher/Gui/SketcherSettingsColors.ui index 94503e8909bf..bc575a915794 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettingsColors.ui +++ b/src/Mod/Sketcher/Gui/SketcherSettingsColors.ui @@ -241,11 +241,38 @@ - Fully constrained geometry + Invalid Sketch + + + Color of geometry indicating an invalid sketch + + + + 255 + 109 + 0 + + + + InvalidSketchColor + + + View + + + + + + + Fully constrained geometry + + + + Color of fully constrained geometry in edit mode @@ -265,14 +292,14 @@ - + Fully constrained edit edge color - + Color of fully constrained edge color in edit mode @@ -292,14 +319,14 @@ - + Fully constrained edit construction edge color - + Color of fully constrained construction edge color in edit mode @@ -319,14 +346,14 @@ - + Fully constrained edit internal alignment edge color - + Color of fully constrained internal alignment edge color in edit mode @@ -346,14 +373,14 @@ - + Fully constrained edit vertex color - + Color of fully constrained vertex color in edit mode @@ -373,14 +400,14 @@ - + Constraint color - + Color of driving constraints in edit mode @@ -400,14 +427,14 @@ - + Reference constraint color - + Color of reference constraints in edit mode @@ -427,14 +454,14 @@ - + Expression dependent constraint color - + Color of expression dependent constraints in edit mode @@ -454,14 +481,14 @@ - + Deactivated constraint color - + Color of deactivated constraints in edit mode @@ -481,14 +508,14 @@ - + Dimensional constraint color - + Color of dimensional driving constraints @@ -508,14 +535,14 @@ - + Coordinate text color - + Text color of the coordinates @@ -535,14 +562,14 @@ - + Cursor crosshair color - + Color of crosshair cursor. diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index b42d1babf6b2..95b5b458def3 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -6313,6 +6313,10 @@ bool ViewProviderSketch::setEdit(int ModNum) // set the cross lines color //CrossColorV.setPackedValue((uint32_t)color, transparency); //CrossColorH.setPackedValue((uint32_t)color, transparency); + // set invalid sketch color + color = (unsigned long)(InvalidSketchColor.getPackedValue()); + color = hGrp->GetUnsigned("InvalidSketchColor", color); + InvalidSketchColor.setPackedValue((uint32_t)color, transparency); // set the fully constrained color color = (unsigned long)(FullyConstrainedColor.getPackedValue()); color = hGrp->GetUnsigned("FullyConstrainedColor", color);