Forcing white background is now optional

This commit is contained in:
Jindra Petřík
2021-04-07 18:40:34 +02:00
parent d8512aa6d9
commit 8890a327da
18 changed files with 130 additions and 56 deletions

View File

@@ -469,7 +469,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
detailPanel.setLayout(new CardLayout());
JPanel whitePanel = new JPanel();
whitePanel.setBackground(Color.white);
if (Configuration.setControlsBackgroundToWhite.get()) {
whitePanel.setBackground(Color.white);
}
detailPanel.add(whitePanel, DETAILCARDEMPTYPANEL);
tagInfoPanel = new TagInfoPanel(this);