This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 066d3d6e0e fix darkmode on windows, fixes #6671 (#6684)
066d3d6e0e is described below
commit 066d3d6e0e361acdf1d228eff3bc802ab0073edd
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Sat Feb 28 13:08:45 2026 +0100
fix darkmode on windows, fixes #6671 (#6684)
---
ui/src/main/java/org/apache/hop/ui/core/gui/GuiResource.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/src/main/java/org/apache/hop/ui/core/gui/GuiResource.java
b/ui/src/main/java/org/apache/hop/ui/core/gui/GuiResource.java
index 3ba29df6bd..ac839ed195 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/gui/GuiResource.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/gui/GuiResource.java
@@ -1628,8 +1628,10 @@ public class GuiResource {
}
public Color getWidgetBackGroundColor() {
- if (PropsUi.getInstance().isDarkMode()) {
+ if (PropsUi.getInstance().isDarkMode() && !OsHelper.isWindows()) {
return display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
+ } else if (PropsUi.getInstance().isDarkMode() && OsHelper.isWindows()) {
+ return colorDemoGray;
}
if (OsHelper.isMac()) {
return colorDemoGray;