Fix Windows 10 button padding
This commit is contained in:
parent
8fafe666c2
commit
eaa038c66e
|
@ -42,7 +42,7 @@ class RenameList<E> extends FileBotList<E> {
|
|||
getRemoveAction().setEnabled(true);
|
||||
|
||||
buttonPanel = new JPanel(new MigLayout("insets 1.2mm, nogrid, novisualpadding, fill", "align center"));
|
||||
buttonPanel.add(createImageButton(downAction), "gap 10px, sgy button");
|
||||
buttonPanel.add(createImageButton(downAction), "sgy button");
|
||||
buttonPanel.add(createImageButton(upAction), "gap 0, sgy button");
|
||||
buttonPanel.add(createLoadButton(), "gap 10px, sgy button");
|
||||
|
||||
|
|
|
@ -158,6 +158,9 @@ public final class SwingUI {
|
|||
button.setVerticalTextPosition(SwingConstants.BOTTOM);
|
||||
button.setOpaque(false);
|
||||
|
||||
// fix Windows 10 button padding
|
||||
button.setMaximumSize(new Dimension(36, 36));
|
||||
|
||||
if (Settings.isMacApp()) {
|
||||
button.setPreferredSize(new Dimension(28, 27));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue