From: vsv Date: Tue, 6 Nov 2018 12:37:49 +0000 (+0300) Subject: Issue #2613: Use Yellow color for highlighted object X-Git-Tag: V9_2_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a5c37286c6dcceb0ff5e4670e51b48840db67fb7;p=modules%2Fshaper.git Issue #2613: Use Yellow color for highlighted object --- diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index 8af188b48..7c9af296a 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -38,6 +38,9 @@ #include + +#define HIGHLIGHT_COLOR Quantity_NOC_YELLOW + XGUI_ViewerProxy::XGUI_ViewerProxy(XGUI_Workshop* theParent) : ModuleBase_IViewer(theParent), myWorkshop(theParent) @@ -418,7 +421,7 @@ void XGUI_ViewerProxy::displayHighlight() aRes = (*aIt); TopoDS_Shape aTShape = aRes->shape()->impl(); aAis = new AIS_Shape(aTShape); - aAis->SetColor(Quantity_NOC_CYAN4); + aAis->SetColor(HIGHLIGHT_COLOR); aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost myHighlights.Append(aAis); aContext->Display(aAis, false); @@ -429,7 +432,7 @@ void XGUI_ViewerProxy::displayHighlight() else { TopoDS_Shape aTShape = myResult->shape()->impl(); Handle(AIS_Shape) aAis = new AIS_Shape(aTShape); - aAis->SetColor(Quantity_NOC_CYAN4); + aAis->SetColor(HIGHLIGHT_COLOR); aAis->SetZLayer(1); //Graphic3d_ZLayerId_Topmost myHighlights.Append(aAis); aContext->Display(aAis, false);