diff --git a/GUI/src/main/java/gui/utils/MessageBroker.java b/GUI/src/main/java/gui/utils/MessageBroker.java index 92e62761..69a1f762 100644 --- a/GUI/src/main/java/gui/utils/MessageBroker.java +++ b/GUI/src/main/java/gui/utils/MessageBroker.java @@ -26,7 +26,7 @@ protected void sendMessage(String message, MessageType messageType, MessageCateg ui = null; } Color color = switch (messageType) { - case ERROR -> AppSettings.GET.mainTheme().equals("Dark") ? BRIGHT_RED : DARK_RED; + case ERROR -> "Dark".equals(AppSettings.GET.mainTheme()) ? BRIGHT_RED : DARK_RED; case INFO -> GREEN; default -> YELLOW; };