mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Derive font for default button only
GitOrigin-RevId: bc8def7007ec41ebd64709ddd6a0ac047ffd5de2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
db13b7b767
commit
b93780646a
@@ -266,8 +266,8 @@ public class DarculaButtonUI extends BasicButtonUI {
|
||||
|
||||
protected void setupDefaultButton(JComponent button, Graphics g) {
|
||||
Font f = button.getFont();
|
||||
if (!SystemInfo.isMac && f instanceof FontUIResource) {
|
||||
g.setFont(isDefaultButton(button) ? f.deriveFont(Font.BOLD) : f.deriveFont(Font.PLAIN));
|
||||
if (!SystemInfo.isMac && f instanceof FontUIResource && isDefaultButton(button)) {
|
||||
g.setFont(f.deriveFont(Font.BOLD));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user