1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* OpenSubtitles UI improvements

This commit is contained in:
Reinhard Pointner 2015-11-23 15:54:03 +00:00
parent 0079c100cc
commit b9baa2c11a
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1019 B

View File

@ -67,7 +67,7 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
setLayout(new MigLayout("nogrid, fill, insets 10px 10px 15px 10px", "align 45%", "[pref!]10px[fill]")); setLayout(new MigLayout("nogrid, fill, insets 10px 10px 15px 10px", "align 45%", "[pref!]10px[fill]"));
add(searchTextField); add(searchTextField);
add(new JButton(searchAction), "gap 16px, id search, sgy button"); add(new JButton(searchAction), "gap 16px, h 2+pref!, id search, sgy button");
add(tabbedPaneGroup, "newline, grow"); add(tabbedPaneGroup, "newline, grow");
searchTextField.getEditor().setAction(searchAction); searchTextField.getEditor().setAction(searchAction);

View File

@ -65,7 +65,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
// add after text field // add after text field
add(languageComboBox, "gap indent, sgy button", 1); add(languageComboBox, "gap indent, sgy button", 1);
add(createImageButton(setUserAction), "w pref!, h pref!, gap rel, sgy button", 2); add(createImageButton(setUserAction), "w pref!, h 2+pref!, gap rel, sgy button", 2);
// add at the top right corner // add at the top right corner
add(uploadDropTarget, "width 1.45cm!, height 1.2cm!, pos n 0% 100%-1.8cm n", 0); add(uploadDropTarget, "width 1.45cm!, height 1.2cm!, pos n 0% 100%-1.8cm n", 0);
@ -302,9 +302,9 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
// osdbPass.setText(osdbAuth[1]); // password is stored as MD5 hash so we can't restore it // osdbPass.setText(osdbAuth[1]); // password is stored as MD5 hash so we can't restore it
if (osdbUser.getText().isEmpty()) { if (osdbUser.getText().isEmpty()) {
osdbGroup.add(new LinkButton("Register", "Register to increase your download quota", WebServices.OpenSubtitles.getIcon(), URI.create("http://www.opensubtitles.org/en/newuser")), "spanx 2, tag left"); osdbGroup.add(new LinkButton("Register Account", "Register to increase your download quota", WebServices.OpenSubtitles.getIcon(), URI.create("http://www.opensubtitles.org/en/newuser")), "spanx 2, tag left");
} else { } else {
osdbGroup.add(new LinkButton("Upgrade", "Upgrade to increase your download quota", WebServices.OpenSubtitles.getIcon(), URI.create("http://www.opensubtitles.org/en/support")), "spanx 2, tag left"); osdbGroup.add(new LinkButton("Upgrade Account", "Upgrade to increase your download quota", WebServices.OpenSubtitles.getIcon(), URI.create("http://www.opensubtitles.org/en/support")), "spanx 2, tag left");
} }
JRootPane container = authPanel.getRootPane(); JRootPane container = authPanel.getRootPane();
@ -313,7 +313,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
container.add(osdbGroup, "growx, wrap"); container.add(osdbGroup, "growx, wrap");
Action ok = new AbstractAction("OK") { Action ok = new AbstractAction("OK", ResourceManager.getIcon("dialog.continue")) {
@Override @Override
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {
@ -354,7 +354,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
} }
} }
}; };
Action cancel = new AbstractAction("Cancel") { Action cancel = new AbstractAction("Cancel", ResourceManager.getIcon("dialog.cancel")) {
@Override @Override
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {