White background only on oceanic skin

This commit is contained in:
Jindra Petřík
2021-04-07 19:38:25 +02:00
parent 8890a327da
commit 211aa60011
18 changed files with 75 additions and 52 deletions

View File

@@ -117,7 +117,7 @@ public class DumpTree extends JTree {
public class DumpTreeCellRenderer extends DefaultTreeCellRenderer {
public DumpTreeCellRenderer() {
if (Configuration.setControlsBackgroundToWhite.get()) {
if (View.isOceanic()) {
setUI(new BasicLabelUI());
setOpaque(false);
setBackgroundNonSelectionColor(Color.white);
@@ -236,7 +236,7 @@ public class DumpTree extends JTree {
this.mainPanel = mainPanel;
setCellRenderer(new DumpTreeCellRenderer());
setRootVisible(false);
if (Configuration.setControlsBackgroundToWhite.get()) {
if (View.isOceanic()) {
setBackground(Color.white);
setUI(new BasicTreeUI() {
{