Forcing white background is now optional

This commit is contained in:
Jindra Petřík
2021-11-19 13:03:23 +01:00
parent d8512aa6d9
commit 8890a327da
18 changed files with 130 additions and 56 deletions
@@ -23,6 +23,7 @@ import com.jpexs.decompiler.flash.abc.usages.InsideClassMultinameUsageInterface;
import com.jpexs.decompiler.flash.abc.usages.MethodMultinameUsage;
import com.jpexs.decompiler.flash.abc.usages.MultinameUsage;
import com.jpexs.decompiler.flash.abc.usages.TraitMultinameUsage;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.AppDialog;
import com.jpexs.decompiler.flash.gui.FasterScrollPane;
import com.jpexs.decompiler.flash.gui.View;
@@ -77,7 +78,9 @@ public class UsageFrame extends AppDialog implements MouseListener {
usageListModel.addElement(u);
}
usageList = new JList<>(usageListModel);
usageList.setBackground(Color.white);
if (Configuration.setControlsBackgroundToWhite.get()) {
usageList.setBackground(Color.white);
}
gotoButton.addActionListener(this::gotoButtonActionPerformed);
cancelButton.addActionListener(this::cancelButtonActionPerformed);