Browse Source

menu分割线 & tab选中状态

master
hzzz 7 years ago
parent
commit
d150a5c5dd
  1. 8
      designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java

8
designer_base/src/com/fr/design/gui/imenu/UIPopupMenuSeparatorUI.java

@ -1,8 +1,9 @@
package com.fr.design.gui.imenu; package com.fr.design.gui.imenu;
import com.fr.design.constants.UIConstants;
import javax.swing.*; import javax.swing.*;
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.ComponentUI; import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.metal.MetalSeparatorUI; import javax.swing.plaf.metal.MetalSeparatorUI;
import java.awt.*; import java.awt.*;
@ -22,10 +23,7 @@ public class UIPopupMenuSeparatorUI extends MetalSeparatorUI {
public void paint(Graphics g, JComponent c) { public void paint(Graphics g, JComponent c) {
Dimension s = c.getSize(); Dimension s = c.getSize();
g.setColor(new ColorUIResource(255, 255, 255)); g.setColor(UIConstants.FONT_COLOR);
g.fillRect(0, 0, s.width, s.height);
g.setColor(new ColorUIResource(173, 170, 153));
g.drawLine(2, 1, s.width - 3, 1); g.drawLine(2, 1, s.width - 3, 1);
} }
} }
Loading…
Cancel
Save