Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Fixed dark mode issue where everything was black
Browse files Browse the repository at this point in the history
  • Loading branch information
ajchili committed Jun 22, 2017
1 parent 021c523 commit 0008c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync/src/com/kirinpatel/gui/ControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public ControlPanel(int type) {
add(chatPanel);

if (Main.isDarkModeEnabled) {
Color foreground = Color.white;
setBackground(Color.black);
connectedClients.setBackground(Color.black);
Color foreground = getBackground();
connectedClients.setForeground(foreground);
mediaControlPanel.setBackground(Color.black);
urlField.setBackground(Color.black);
Expand All @@ -118,7 +118,7 @@ public ControlPanel(int type) {

public void resizePanel(int width, int height) {
width = ((width - (height * 16 / 9)) < 200) ? 200 : width - (height * 16 / 9);
if (urlField != null) urlField.setPreferredSize(new Dimension(width, height / 3));
if (urlField != null) urlField.setPreferredSize(new Dimension(width, height / 6));
connectedClientsScroll.setPreferredSize(new Dimension(width, height / 3));
}

Expand Down

0 comments on commit 0008c25

Please sign in to comment.