1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-13 12:55:00 -05:00

Fix various Dark Mode issues

This commit is contained in:
Reinhard Pointner 2019-02-27 22:28:03 +07:00
parent 0f5157da05
commit 2cade64f44
2 changed files with 13 additions and 5 deletions

View File

@ -96,8 +96,15 @@ public class ThemeSupport {
@Override
public void setLookAndFeel() throws Exception {
UIManager.setLookAndFeel(new DarculaLaf());
UIManager.put("List.selectionBackground", new Color(0x39698a));
UIManager.put("ComboBox.selectionBackground", new Color(0x39698a));
Color selectionBackground = new Color(0x39698a);
Color componentBackground = new Color(0x313131);
UIManager.put("List.selectionBackground", selectionBackground);
UIManager.put("ComboBox.selectionBackground", selectionBackground);
UIManager.put("Table.selectionBackground", selectionBackground);
UIManager.put("Table.background", componentBackground);
UIManager.put("TabbedPane.selected", componentBackground);
}
@Override

View File

@ -5,6 +5,7 @@ import static net.filebot.Logging.*;
import static net.filebot.MediaTypes.*;
import static net.filebot.UserFiles.*;
import static net.filebot.media.XattrMetaInfo.*;
import static net.filebot.ui.ThemeSupport.*;
import static net.filebot.util.JsonUtilities.*;
import static net.filebot.util.RegularExpressions.*;
import static net.filebot.util.ui.SwingUI.*;
@ -122,7 +123,7 @@ class BindingDialog extends JDialog {
table.setAutoCreateRowSorter(true);
table.setAutoCreateColumnsFromModel(true);
table.setFillsViewportHeight(true);
table.setBackground(Color.white);
table.setBackground(getPanelBackground());
table.setDefaultRenderer(Future.class, new DefaultTableCellRenderer() {
@ -264,8 +265,8 @@ class BindingDialog extends JDialog {
table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
table.setBackground(Color.white);
table.setGridColor(new Color(0xEEEEEE));
table.setBackground(getPanelBackground());
table.setGridColor(getColor(0xEEEEEE));
table.setRowHeight(25);
// set media info exclude filter