don't underline mnemonics under MacOS (IDEA-166288)

This commit is contained in:
Bas Leijdekkers
2017-06-10 18:52:15 +02:00
parent bb854c65e6
commit cf0338516f
@@ -138,8 +138,9 @@ public class DarculaCheckBoxUI extends MetalCheckBoxUI {
view.paint(g, textRect);
} else {
g.setColor(b.isEnabled() ? b.getForeground() : getDisabledTextColor());
final int mnemonicIndex = UIManager.getBoolean("Button.showMnemonics") ? b.getDisplayedMnemonicIndex() : -1;
SwingUtilities2.drawStringUnderlineCharAt(c, g, text,
b.getDisplayedMnemonicIndex(),
mnemonicIndex,
textRect.x,
textRect.y + fm.getAscent());
}