[jbosstools-issues] [JBoss JIRA] (JBIDE-18704) Application wizard, Embed wizard: Cartridge details are black in Win8

Andre Dietisheim (JIRA) issues at jboss.org
Fri Oct 24 09:46:35 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014936#comment-13014936 ] 

Andre Dietisheim commented on JBIDE-18704:
------------------------------------------

Switching for transparency to MacOS only (the only OS we know that is using no-default background for groups) and thus using default background color for all the other OSes fixes the issue:

{code}
/**
	 * Causes the given StyledText to be transparent. Uses a transparent
	 * background image (since SWT flags wont work for StyledText) or sets the
	 * widget to the default widget background color. Different strategies are
	 * used for the different platforms.
	 * 
	 * @param styledText
	 *            the styled text widget that shall get transparent background
	 * 
	 * @see Control#setBackgroundImage(org.eclipse.swt.graphics.Image)
	 * @see StyledText
	 */
	public static void setTransparent(StyledText styledText) {
		if (Platform.WS_COCOA.equals(Platform.getWS())) {
			// MacOS has no default widget background in groups (JBIDE-16913)
			styledText.setBackgroundImage(OpenShiftImages.TRANSPARENT_PIXEL_IMG);
		} else {
			// RHEL 6.5 cannot display transparent pixels in images (neither
			// png, gif, bmp, etc.)
			// Win8 cannot display transparent pixels in images (JBIDE-18704)
			styledText.setBackground(styledText.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
		}
	}
{code}
!!

> Application wizard, Embed wizard: Cartridge details are black in Win8
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-18704
>                 URL: https://issues.jboss.org/browse/JBIDE-18704
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.2.0.Final
>            Reporter: Andre Dietisheim
>              Labels: application_wizard
>             Fix For: 4.3.0.Alpha1
>
>         Attachments: application-wizard-black-details.png, embed-cartridges-black-details.png
>
>
> The details group which shows the details for the selected cartridge or quickstart are black in win8:
> !application-wizard-black-details.png!
> !embed-cartridges-black-details.png!



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list