Browse Source

Fixed too large buttons.

pull/75/head
weisj 5 years ago
parent
commit
86f06864fa
  1. 1
      core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

1
core/src/main/java/com/github/weisj/darklaf/ui/button/DarkButtonUI.java

@ -144,7 +144,6 @@ public class DarkButtonUI extends BasicButtonUI implements PropertyChangeListene
b.setFont(b.getFont().deriveFont(Font.BOLD)); b.setFont(b.getFont().deriveFont(Font.BOLD));
Dimension size = BasicGraphicsUtils.getPreferredButtonSize(b, b.getIconTextGap()); Dimension size = BasicGraphicsUtils.getPreferredButtonSize(b, b.getIconTextGap());
b.setFont(oldFont); b.setFont(oldFont);
// size.width += 2 * borderSize;
return size; return size;
} }

Loading…
Cancel
Save