From 81353d1ad2bc72372f0da7cc33c0ca12be72f943 Mon Sep 17 00:00:00 2001 From: Sougandh S Date: Thu, 7 May 2026 17:34:13 +0530 Subject: [PATCH] [macOS] Enable TextField borders on macOS 26 Restore visible borders for SWT text controls on macOS 26 and later to improve control visibility and readability. Part of https://github.com/eclipse-platform/eclipse.platform.swt/issues/3286 and https://github.com/eclipse-platform/eclipse.platform.ui/issues/3885 --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java index ee965adcccd..da82b4097bf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Text.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2026 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -518,6 +518,10 @@ void createHandle () { if ((style & SWT.BORDER) == 0) { widget.setFocusRingType (OS.NSFocusRingTypeNone); widget.setBordered (false); + } else { + if (OS.VERSION >= OS.VERSION(26, 0, 0)) { + widget.setBordered (true); + } } /* * Bug in Cocoa: On OSX 10.10, setting the alignment on the search field