mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-10 21:38:04 -05:00
* some tuning for gtk laf
This commit is contained in:
parent
d1e135487a
commit
efc7f81824
@ -11,7 +11,6 @@
|
||||
<type name="application/list">
|
||||
<extension>list</extension>
|
||||
<extension>txt</extension>
|
||||
<extension></extension>
|
||||
</type>
|
||||
|
||||
|
||||
|
@ -80,7 +80,7 @@ public abstract class AbstractSearchPanel<S, E> extends JComponent {
|
||||
|
||||
try {
|
||||
// restore selected subtitle client
|
||||
searchTextField.getSelectButton().setSelectedIndex(Integer.parseInt(getSettings().get("engine.selected")));
|
||||
searchTextField.getSelectButton().setSelectedIndex(Integer.parseInt(getSettings().get("engine.selected", "0")));
|
||||
} catch (Exception e) {
|
||||
// log and ignore
|
||||
Logger.getLogger(getClass().getName()).log(Level.WARNING, e.getMessage(), e);
|
||||
|
@ -294,6 +294,7 @@ class HistoryDialog extends JDialog {
|
||||
|
||||
private JTable createTable(TableModel model) {
|
||||
JTable table = new JTable(model);
|
||||
table.setBackground(Color.white);
|
||||
table.setAutoCreateRowSorter(true);
|
||||
table.setFillsViewportHeight(true);
|
||||
|
||||
|
@ -36,6 +36,8 @@ class RenameListCellRenderer extends DefaultFancyListCellRenderer {
|
||||
|
||||
|
||||
public RenameListCellRenderer(RenameModel renameModel) {
|
||||
super(new Insets(4, 7, 4, 7));
|
||||
|
||||
this.renameModel = renameModel;
|
||||
|
||||
setHighlightingEnabled(false);
|
||||
|
@ -143,6 +143,7 @@ class SubtitleViewer extends JFrame {
|
||||
|
||||
private JTable createTable(TableModel model) {
|
||||
JTable table = new JTable(model);
|
||||
table.setBackground(Color.white);
|
||||
table.setAutoCreateRowSorter(true);
|
||||
table.setFillsViewportHeight(true);
|
||||
table.setRowHeight(18);
|
||||
|
@ -19,13 +19,16 @@ public class DefaultFancyListCellRenderer extends AbstractFancyListCellRenderer
|
||||
public DefaultFancyListCellRenderer() {
|
||||
add(label);
|
||||
}
|
||||
|
||||
|
||||
public DefaultFancyListCellRenderer(int padding) {
|
||||
super(new Insets(padding, padding, padding, padding));
|
||||
add(label);
|
||||
}
|
||||
|
||||
|
||||
public DefaultFancyListCellRenderer(Insets padding) {
|
||||
super(padding);
|
||||
add(label);
|
||||
}
|
||||
|
||||
protected DefaultFancyListCellRenderer(int padding, int margin, Color selectedBorderColor) {
|
||||
super(new Insets(padding, padding, padding, padding), new Insets(margin, margin, margin, margin), selectedBorderColor);
|
||||
|
Loading…
Reference in New Issue
Block a user