diff --git a/news/4.37/images/menu_state_noimage.png b/news/4.37/images/menu_state_noimage.png new file mode 100644 index 00000000..36a352ef Binary files /dev/null and b/news/4.37/images/menu_state_noimage.png differ diff --git a/news/4.37/images/menu_state_overlay.png b/news/4.37/images/menu_state_overlay.png new file mode 100644 index 00000000..4f967d22 Binary files /dev/null and b/news/4.37/images/menu_state_overlay.png differ diff --git a/news/4.37/images/menu_state_system.png b/news/4.37/images/menu_state_system.png new file mode 100644 index 00000000..7254a9f4 Binary files /dev/null and b/news/4.37/images/menu_state_system.png differ diff --git a/news/4.37/platform.md b/news/4.37/platform.md index a4bc51df..4e949a72 100644 --- a/news/4.37/platform.md +++ b/news/4.37/platform.md @@ -132,6 +132,28 @@ Additionally, you can use the `Replace With → Clipboard` action to replace the ![Replace Clipboard Context Menu](images/ReplaceClipBoard.png) +### Toggle Indicator in Windows 11 Menus + +
+Contributors + +- [Stephan Wahlbrink ](https://github.com/wahlbrink) +
+ +On Windows 11, menu entries that can be toggled do not show their toggle state if they also contain an image. +This affects both checked items as well as radio items. + +A workaround was implemented in SWT such that those states are visualized again. +By default, a checkmark or radio bullet is drawn on top of the image if the item is selected. + +The behavior may also be configured via the system property `org.eclipse.swt.internal.win32.menu.customSelectionImage`, but note that this property may be subject to change or removal. +This is how it looks with different values of that property: +| System Property Value | 0 (default) | 1 | 2 | +| --- | --- | --- | -- | +| | ![Menu with Overlay Selection Indication](images/menu_state_overlay.png) | ![Menu with Selection Indication Overwriting Image](images/menu_state_noimage.png) | ![Menu with System Behavior Showing No Selection Indication](images/menu_state_system.png) | + + + --- ## Debugger