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

@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.abc.DocsListener;
import java.awt.BorderLayout;
import java.awt.Color;
@@ -41,7 +42,9 @@ public class DocsPanel extends JPanel implements DocsListener {
add(sp, BorderLayout.CENTER);
textDisplay.setContentType("text/html");
textDisplay.setFocusable(false);
textDisplay.setBackground(Color.white);
if (Configuration.setControlsBackgroundToWhite.get()) {
textDisplay.setBackground(Color.white);
}
}
@Override