diff --git a/source/net/filebot/ui/ThemeSupport.java b/source/net/filebot/ui/ThemeSupport.java index 2bf5ff83..203ab0f5 100644 --- a/source/net/filebot/ui/ThemeSupport.java +++ b/source/net/filebot/ui/ThemeSupport.java @@ -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 diff --git a/source/net/filebot/ui/rename/BindingDialog.java b/source/net/filebot/ui/rename/BindingDialog.java index bf27ca8c..14885323 100644 --- a/source/net/filebot/ui/rename/BindingDialog.java +++ b/source/net/filebot/ui/rename/BindingDialog.java @@ -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