List of usage examples for com.intellij.openapi.actionSystem ActionButtonComponent NORMAL
int NORMAL
To view the source code for com.intellij.openapi.actionSystem ActionButtonComponent NORMAL.
Click Source Link
From source file:com.chrisrm.idea.ui.MTActionButtonLook.java
License:Open Source License
@Override public void paintBackground(final Graphics g, final JComponent component, final int state) { if (state != ActionButtonComponent.NORMAL) { final Rectangle rect = new Rectangle(component.getSize()); final Insets insets = component.getInsets(); JBInsets.removeFrom(rect, insets); final Color color = UIManager.getColor("ActionButton.hoverBackground"); paintLookBackground(g, rect, color); }//from w w w .j av a 2 s . com }
From source file:com.chrisrm.idea.ui.MTActionButtonLook.java
License:Open Source License
@Override public void paintBorder(final Graphics g, final JComponent component, final int state) { if (state != ActionButtonComponent.NORMAL) { final Rectangle rect = new Rectangle(component.getSize()); final Insets insets = component.getInsets(); JBInsets.removeFrom(rect, insets); final Color color = UIManager.getColor("ActionButton.hoverBorderColor"); paintLookBorder(g, rect, color); }//from ww w. ja va 2s. c o m }