Skip to content

Commit a404efa

Browse files
committed
Better background color
1 parent e0b3870 commit a404efa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/the/bytecode/club/jda/gui/MainViewerGUI.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public boolean dispatchKeyEvent(KeyEvent e)
134134
public Point unmaximizedPos;
135135
public Dimension unmaximizedSize;
136136

137+
private static final Color COLOR_DESKTOP_BACKGROUND = new Color(58, 110, 165);
137138
public JDesktopPane desktop;
138139
public static ArrayList<VisibleComponent> rfComps = new ArrayList<>();
139140
public FileNavigationPane navigator;
@@ -395,6 +396,8 @@ private void initializeWindows()
395396
desktop.add(navigator);
396397
desktop.add(workPane);
397398
desktop.setDesktopManager(new WorkspaceDesktopManager());
399+
if (desktop.getBackground().equals(Color.BLACK))
400+
desktop.setBackground(COLOR_DESKTOP_BACKGROUND);
398401

399402
rfComps.add(navigator);
400403
rfComps.add(workPane);

0 commit comments

Comments
 (0)