From a5c37286c6dcceb0ff5e4670e51b48840db67fb7 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 6 Nov 2018 15:37:49 +0300 Subject: [PATCH] Issue #2613: Use Yellow color for highlighted object --- src/XGUI/XGUI_ViewerProxy.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.2