Salome HOME
Issue #2613: Use Yellow color for highlighted object V9_2_0b1
authorvsv <vsv@opencascade.com>
Tue, 6 Nov 2018 12:37:49 +0000 (15:37 +0300)
committervsv <vsv@opencascade.com>
Tue, 6 Nov 2018 12:37:49 +0000 (15:37 +0300)
src/XGUI/XGUI_ViewerProxy.cpp

index 8af188b48c6e85d6583ab83e6d716588531383e2..7c9af296a12d98afc75201f8e7525dac9172511e 100644 (file)
@@ -38,6 +38,9 @@
 
 #include <QEvent>
 
+
+#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<TopoDS_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);
@@ -429,7 +432,7 @@ void XGUI_ViewerProxy::displayHighlight()
   else {
     TopoDS_Shape aTShape = myResult->shape()->impl<TopoDS_Shape>();
     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);