1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 22:09:47 -04:00

Make sure that all buttons in the row have the same height (fix Windows 10 LaF issues)

This commit is contained in:
Reinhard Pointner 2016-11-10 06:27:53 +08:00
parent 5776481416
commit 2d3ae1ae3d
2 changed files with 9 additions and 9 deletions

View File

@ -42,9 +42,9 @@ 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"); buttonPanel.add(createImageButton(downAction), "gap 10px, sgy button");
buttonPanel.add(createImageButton(upAction), "gap 0"); buttonPanel.add(createImageButton(upAction), "gap 0, sgy button");
buttonPanel.add(createLoadButton(), "gap 10px"); buttonPanel.add(createLoadButton(), "gap 10px, sgy button");
add(buttonPanel, BorderLayout.SOUTH); add(buttonPanel, BorderLayout.SOUTH);

View File

@ -229,7 +229,7 @@ public class RenamePanel extends JComponent {
namesList.getListComponent().setComponentPopupMenu(fetchPopup); namesList.getListComponent().setComponentPopupMenu(fetchPopup);
fetchButton.setComponentPopupMenu(fetchPopup); fetchButton.setComponentPopupMenu(fetchPopup);
matchButton.setComponentPopupMenu(fetchPopup); matchButton.setComponentPopupMenu(fetchPopup);
namesList.getButtonPanel().add(fetchButton, "gap 0"); namesList.getButtonPanel().add(fetchButton, "gap 0, sgy button");
namesList.getListComponent().setComponentPopupMenu(fetchPopup); namesList.getListComponent().setComponentPopupMenu(fetchPopup);
fetchButton.setComponentPopupMenu(fetchPopup); fetchButton.setComponentPopupMenu(fetchPopup);
@ -240,16 +240,16 @@ public class RenamePanel extends JComponent {
JButton settingsButton = createImageButton(settingsPopupAction); JButton settingsButton = createImageButton(settingsPopupAction);
settingsButton.setComponentPopupMenu(settingsPopup); settingsButton.setComponentPopupMenu(settingsPopup);
renameButton.setComponentPopupMenu(settingsPopup); renameButton.setComponentPopupMenu(settingsPopup);
namesList.getButtonPanel().add(settingsButton, "gap indent"); namesList.getButtonPanel().add(settingsButton, "gap indent, sgy button");
// open rename log button // open rename log button
filesList.getButtonPanel().add(createImageButton(removeAction), "gap 0", 2); filesList.getButtonPanel().add(createImageButton(removeAction), "gap 0, sgy button", 2);
filesList.getButtonPanel().add(createImageButton(clearFilesAction), "gap 0"); filesList.getButtonPanel().add(createImageButton(clearFilesAction), "gap 0, sgy button");
filesList.getButtonPanel().add(createImageButton(openHistoryAction), "gap indent"); filesList.getButtonPanel().add(createImageButton(openHistoryAction), "gap indent, sgy button");
// create macros popup // create macros popup
JButton presetsButton = createImageButton(new ShowPresetsPopupAction()); JButton presetsButton = createImageButton(new ShowPresetsPopupAction());
filesList.getButtonPanel().add(presetsButton, "gap 0"); filesList.getButtonPanel().add(presetsButton, "gap 0, sgy button");
// show popup on actionPerformed only when names list is empty // show popup on actionPerformed only when names list is empty
matchButton.addActionListener(evt -> { matchButton.addActionListener(evt -> {