This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new fb47d6467b HOP-4200 ErrorDialog wrong text color in dark mode
     new 1f0806f9b4 Merge pull request #1678 from nadment/HOP-4200
fb47d6467b is described below

commit fb47d6467ba6ade2759ae0e724d95740eaa08584
Author: Nicolas Adment <[email protected]>
AuthorDate: Sun Sep 11 21:41:02 2022 +0200

    HOP-4200 ErrorDialog wrong text color in dark mode
---
 ui/src/main/java/org/apache/hop/ui/core/dialog/ErrorDialog.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/dialog/ErrorDialog.java 
b/ui/src/main/java/org/apache/hop/ui/core/dialog/ErrorDialog.java
index e5856c3e15..beb9e5711a 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/dialog/ErrorDialog.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/dialog/ErrorDialog.java
@@ -31,7 +31,6 @@ import org.eclipse.swt.layout.FormAttachment;
 import org.eclipse.swt.layout.FormData;
 import org.eclipse.swt.layout.FormLayout;
 import org.eclipse.swt.widgets.*;
-
 import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.util.function.Function;
@@ -109,7 +108,7 @@ public class ErrorDialog extends Dialog {
             parent,
             SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN | 
SWT.APPLICATION_MODAL | SWT.SHEET);
     props.setLook(shell);
-    shell.setImage(GuiResource.getInstance().getImageShowErrorLines());
+    shell.setImage(GuiResource.getInstance().getImageError());
 
     FormLayout formLayout = new FormLayout();
     formLayout.marginWidth = Const.FORM_MARGIN;
@@ -159,6 +158,7 @@ public class ErrorDialog extends Dialog {
     wlDesc.setFont(largeFont);
 
     Text wDesc = new Text(shell, SWT.MULTI | SWT.LEFT | SWT.BORDER | 
SWT.H_SCROLL | SWT.V_SCROLL);
+    props.setLook(wDesc);
     wDesc.setText(exMsgFunction.apply(text.toString()));
 
     wDesc.setBackground(gray);

Reply via email to