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 efff980192 HOP-4179 CTabFolder foreground color is not readable
     new 51b4a8510c Merge pull request #1665 from nadment/HOP-4179
efff980192 is described below

commit efff980192520d199e6fbb376cbde39b21e05e04
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon Aug 29 22:11:41 2022 +0200

    HOP-4179 CTabFolder foreground color is not readable
---
 ui/src/main/java/org/apache/hop/ui/core/PropsUi.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 ff72317b98..46a76419aa 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
@@ -525,13 +525,13 @@ public class PropsUi extends Props {
         break;
       case WIDGET_STYLE_TAB:
         background = gui.getColorWhite();
-        foreground = gui.getColorBlack();
+        foreground = gui.getColorDarkGray();
         CTabFolder tabFolder = (CTabFolder) control;
         tabFolder.setBorderVisible(true);
         // need to make a copy of the tab selection background color to get 
around bug
-        Color c = gui.getColorTab();
-        Color tabColor = new Color(c.getDevice(), c.getRed(), c.getGreen(), 
c.getBlue());
+        Color tabColor = new Color(gui.getColorTab().getRGB());
         tabFolder.setSelectionBackground(tabColor);
+        tabFolder.setSelectionForeground(gui.getColorBlack());
         break;
       default:
         background = gui.getColorBackground();

Reply via email to