Skip to content

Commit 5995bf9

Browse files
author
pavel-miniutka
committed
[Desktop] error dialog stack trace foreground fix
1 parent 9c094ce commit 5995bf9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • desktop-client/src/main/java/lsfusion/client/base/log

desktop-client/src/main/java/lsfusion/client/base/log/Log.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.List;
2525

2626
import static lsfusion.client.ClientResourceBundle.getString;
27+
import static lsfusion.client.base.view.SwingDefaults.getRequiredForeground;
2728

2829
public final class Log {
2930
public static Logger logger = ClientLoggers.clientLogger;
@@ -161,7 +162,7 @@ public static void error(String message, List<String> titles, List<List<String>>
161162
Font logFont = new Font("Tahoma", Font.PLAIN, MainFrame.getIntUISize(12));
162163
JTextArea javaStackTA = new JTextArea(javaStack, 7, 60);
163164
javaStackTA.setFont(logFont);
164-
javaStackTA.setForeground(Color.RED);
165+
javaStackTA.setForeground(getRequiredForeground());
165166
JScrollPane javaStackInScroll = new JScrollPane(javaStackTA);
166167

167168
JPanel textWithLine = new JPanel();
@@ -173,7 +174,7 @@ public static void error(String message, List<String> titles, List<List<String>>
173174

174175
JTextArea lsfStackTA = new JTextArea(lsfStack, 7, 60);
175176
lsfStackTA.setFont(logFont);
176-
lsfStackTA.setForeground(Color.RED);
177+
lsfStackTA.setForeground(getRequiredForeground());
177178
stackPanes.add("LSF", new JScrollPane(lsfStackTA));
178179

179180
textWithLine.add(stackPanes);

0 commit comments

Comments
 (0)