You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/09/04 09:13:16 UTC

[hop] branch master updated: Fixed org.eclipse.swt.graphics.Color compatibility

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 82fbb34320 Fixed org.eclipse.swt.graphics.Color compatibility
     new 6826f82180 Merge pull request #1670 from shlxue/master
82fbb34320 is described below

commit 82fbb343202aca5c7bb883f048351db6be17d667
Author: Shl Xue <xu...@gmail.com>
AuthorDate: Sun Sep 4 12:10:36 2022 +0800

    Fixed org.eclipse.swt.graphics.Color compatibility
---
 ui/src/main/java/org/apache/hop/ui/core/PropsUi.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java b/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
index 46a76419aa..7cad291967 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
@@ -529,7 +529,7 @@ public class PropsUi extends Props {
         CTabFolder tabFolder = (CTabFolder) control;
         tabFolder.setBorderVisible(true);
         // need to make a copy of the tab selection background color to get around bug
-        Color tabColor = new Color(gui.getColorTab().getRGB());
+        Color tabColor = new Color(gui.getColorTab().getDevice(), gui.getColorTab().getRGB());
         tabFolder.setSelectionBackground(tabColor);
         tabFolder.setSelectionForeground(gui.getColorBlack());
         break;