diff --git a/designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java b/designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java index 28700b6726..df90a1bbe2 100644 --- a/designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java +++ b/designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java @@ -1,8 +1,9 @@ package com.fr.design.gui.imenu; +import com.fr.design.constants.UIConstants; + import javax.swing.*; -import javax.swing.plaf.ColorUIResource; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.metal.MetalSeparatorUI; import java.awt.*; @@ -22,10 +23,7 @@ public class UIPopupMenuSeparatorUI extends MetalSeparatorUI { public void paint(Graphics g, JComponent c) { Dimension s = c.getSize(); - g.setColor(new ColorUIResource(255, 255, 255)); - g.fillRect(0, 0, s.width, s.height); - - g.setColor(new ColorUIResource(173, 170, 153)); + g.setColor(UIConstants.FONT_COLOR); g.drawLine(2, 1, s.width - 3, 1); } } \ No newline at end of file