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 d2453f2685 Fix #2038 : Apply dark mode to radio button under Windows
new 29a4e18605 Merge pull request #2039 from nadment/HOP2038
d2453f2685 is described below
commit d2453f26851b503f67b070bd59e65e1c51ff3c78
Author: Nicolas Adment <[email protected]>
AuthorDate: Sat Dec 10 16:27:05 2022 +0100
Fix #2038 : Apply dark mode to radio button under Windows
---
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 417f7c73a7..046fa7b950 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
@@ -490,7 +490,7 @@ public class PropsUi extends Props {
} else if (OS.contains("mac") && (widget instanceof Group)) {
style = WIDGET_STYLE_OSX_GROUP;
} else if (widget instanceof Button) {
- if (Const.isWindows() && ((widget.getStyle() & SWT.CHECK) != 0)) {
+ if (Const.isWindows() && ((widget.getStyle() & (SWT.CHECK | SWT.RADIO))
!= 0)) {
style = WIDGET_STYLE_DEFAULT;
} else {
style = WIDGET_STYLE_PUSH_BUTTON;