Community
Participate
Working Groups
Created attachment 286550 [details] Screenshot of the dialog on a colored background When using a standard MessageDialog in combination with a css stylesheet that sets a background color, the question mark image shows a white, not transparent background. The text field does not have transparent background either. This would make it imcompatible with CSS themes with a custom shell background. Call for MessageDialog: boolean result = MessageDialog.openConfirm(shell, "Close", "Close application?"); css statement: Shell { background-color: #e3efff #c1d5ef 60%; } Note: I don't know the version of the "SWT" component, so I guessed the eclipse version instead. Feel free to correct the "Version" field of this issue. I am using the 2020-12 repository to retrieve the org.eclipse.e4.rcp feature. The jface bundle is "org.eclipse.jface_3.22.0.v20201106-0834", the SWT bundle is "org.eclipse.swt_3.115.100.v20201202-1103".
Created attachment 286551 [details] CSS file
Niraj, looks to me that the image is create in SWT from the OS with the display.getSystemImage(SWT.ICON_QUESTION)) call. Can this image be created with a transparent background?