1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 11:25:04 -05:00

Fix various Dark Mode issues

This commit is contained in:
Reinhard Pointner 2019-02-28 01:47:46 +07:00
parent 8854b6707d
commit e55993c914
2 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,8 @@ package net.filebot.platform.windows;
import static javax.swing.BorderFactory.*; import static javax.swing.BorderFactory.*;
import static net.filebot.Logging.*; import static net.filebot.Logging.*;
import static net.filebot.ui.ThemeSupport.*;
import java.awt.Color;
import java.util.logging.Level; import java.util.logging.Level;
import javax.swing.UIManager; import javax.swing.UIManager;
@ -74,7 +74,7 @@ public class WinAppUtilities {
} }
// improved UI defaults // improved UI defaults
UIManager.put("TitledBorder.border", createCompoundBorder(createLineBorder(new Color(0xD7D7D7), 1, true), createCompoundBorder(createMatteBorder(6, 5, 6, 5, new Color(0xE5E5E5)), createEmptyBorder(0, 2, 0, 2)))); UIManager.put("TitledBorder.border", createCompoundBorder(createLineBorder(getColor(0xD7D7D7), 1, true), createCompoundBorder(createMatteBorder(6, 5, 6, 5, getColor(0xE5E5E5)), createEmptyBorder(0, 2, 0, 2))));
} }
private WinAppUtilities() { private WinAppUtilities() {

View File

@ -8,6 +8,7 @@ import static javax.swing.KeyStroke.*;
import static javax.swing.ScrollPaneConstants.*; import static javax.swing.ScrollPaneConstants.*;
import static net.filebot.Logging.*; import static net.filebot.Logging.*;
import static net.filebot.Settings.*; import static net.filebot.Settings.*;
import static net.filebot.ui.ThemeSupport.*;
import static net.filebot.util.ui.SwingUI.*; import static net.filebot.util.ui.SwingUI.*;
import java.awt.Color; import java.awt.Color;
@ -61,7 +62,7 @@ public class MainFrame extends JFrame {
JScrollPane selectionListScrollPane = new JScrollPane(selectionList, VERTICAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_NEVER); JScrollPane selectionListScrollPane = new JScrollPane(selectionList, VERTICAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_NEVER);
selectionListScrollPane.setOpaque(false); selectionListScrollPane.setOpaque(false);
selectionListScrollPane.setBorder(createCompoundBorder(new ShadowBorder(), isMacApp() ? createLineBorder(new Color(0x809DB8), 1, false) : selectionListScrollPane.getBorder())); selectionListScrollPane.setBorder(createCompoundBorder(new ShadowBorder(), isMacApp() ? createLineBorder(getColor(0x809DB8), 1, false) : selectionListScrollPane.getBorder()));
headerPanel.getTitleLabel().setBorder(createEmptyBorder(8, 90, 10, 0)); headerPanel.getTitleLabel().setBorder(createEmptyBorder(8, 90, 10, 0));