mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
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);
|
getRemoveAction().setEnabled(true);
|
||||||
|
|
||||||
buttonPanel = new JPanel(new MigLayout("insets 1.2mm, nogrid, novisualpadding, fill", "align center"));
|
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(createImageButton(upAction), "gap 0, sgy button");
|
||||||
buttonPanel.add(createLoadButton(), "gap 10px, sgy button");
|
buttonPanel.add(createLoadButton(), "gap 10px, sgy button");
|
||||||
|
|
||||||
|
@ -158,6 +158,9 @@ public final class SwingUI {
|
|||||||
button.setVerticalTextPosition(SwingConstants.BOTTOM);
|
button.setVerticalTextPosition(SwingConstants.BOTTOM);
|
||||||
button.setOpaque(false);
|
button.setOpaque(false);
|
||||||
|
|
||||||
|
// fix Windows 10 button padding
|
||||||
|
button.setMaximumSize(new Dimension(36, 36));
|
||||||
|
|
||||||
if (Settings.isMacApp()) {
|
if (Settings.isMacApp()) {
|
||||||
button.setPreferredSize(new Dimension(28, 27));
|
button.setPreferredSize(new Dimension(28, 27));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user