mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't underline mnemonics under MacOS (IDEA-166288)
This commit is contained in:
+2
-1
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user