Revert "* Bug #11479 fixed - Under Ubuntu Unity, the color of the text menu was wrong."
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / SwingViewMenu.java
index eaaa5a8..a65e64d 100644 (file)
@@ -26,7 +26,6 @@ import static org.scilab.modules.graphic_objects.graphicObject.GraphicObjectProp
 import java.awt.Color;
 
 import javax.swing.ImageIcon;
-import javax.swing.UIManager;
 
 import org.scilab.modules.commons.gui.ScilabKeyStroke;
 import org.scilab.modules.graphic_objects.graphicController.GraphicController;
@@ -80,7 +79,10 @@ public final class SwingViewMenu {
             uimenu.setVisible((Boolean) value);
             break;
         case __GO_UI_FOREGROUNDCOLOR__ :
-            uimenu.setForeground(UIManager.getColor("MenuBar.foreground"));
+            Double[] allColors = ((Double[]) value);
+            uimenu.setForeground(new Color((int) (allColors[0] * COLORS_COEFF),
+                                           (int) (allColors[1] * COLORS_COEFF),
+                                           (int) (allColors[2] * COLORS_COEFF)));
             break;
         case __GO_UI_ICON__ :
             if (!((String) value).equals("")) {