Salome HOME
Change icons for chamfer
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI_SalomeViewer.cpp
index aa417a4622f585eb0de4663b7ce0dba1fdc309d4..785c67f2a6220c2018bdf86a3e33f05754755484 100644 (file)
@@ -561,6 +561,14 @@ void SHAPERGUI_SalomeViewer::setColorScaleTextHeigth(int theH)
   }
 }
 
+void SHAPERGUI_SalomeViewer::setColorScaleTextColor(const QColor& theColor)
+{
+  if (mySelector) {
+    Quantity_Color aColor(theColor.redF(), theColor.greenF(), theColor.blueF(), Quantity_TOC_RGB);
+    mySelector->viewer()->getColorScale()->SetColor(aColor);
+  }
+}
+
 void SHAPERGUI_SalomeViewer::setColorScaleTitle(const QString& theText)
 {
   if (mySelector) {