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

@@ -20,6 +20,7 @@ import com.jpexs.debugger.flash.Variable;
import com.jpexs.debugger.flash.messages.in.InBreakAtExt;
import com.jpexs.debugger.flash.messages.in.InConstantPool;
import com.jpexs.debugger.flash.messages.in.InFrame;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.DebuggerHandler.BreakListener;
import com.jpexs.decompiler.flash.gui.abc.ABCPanel;
import de.hameister.treetable.MyTreeTable;
@@ -222,7 +223,9 @@ public class DebugPanel extends JPanel {
traceLogTextarea.setEditable(false);
traceLogTextarea.setOpaque(false);
traceLogTextarea.setFont(new JLabel().getFont());
traceLogTextarea.setBackground(Color.white);
if (Configuration.setControlsBackgroundToWhite.get()) {
traceLogTextarea.setBackground(Color.white);
}
Main.getDebugHandler().addTraceListener(new DebuggerHandler.TraceListener() {