From b979eb33c9a0a71e5aa4fa0e6f36c23e44e0c01f Mon Sep 17 00:00:00 2001 From: Henry Le Grys Date: Sat, 13 Feb 2021 01:51:53 +0000 Subject: [PATCH] Set account dialog selection colors correctly --- .../java/com/skcraft/launcher/dialog/AccountSelectDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java b/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java index aa26d45..05bd2b9 100644 --- a/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java +++ b/launcher/src/main/java/com/skcraft/launcher/dialog/AccountSelectDialog.java @@ -229,9 +229,11 @@ public class AccountSelectDialog extends JDialog { if (isSelected) { setOpaque(true); - setBackground(new Color(0x397BBF)); + setBackground(list.getSelectionBackground()); + setForeground(list.getSelectionForeground()); } else { setOpaque(false); + setForeground(list.getForeground()); } return this;