Skip to content
Browse files

[377533] Server view tooltip not colour accessible

  • Loading branch information...
1 parent 72cda91 commit 9f376edb257636fb79e0e44215778420d4e2a749 eyuen committed May 1, 2012
View
3 ...org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/GeneralToolTip.java
@@ -1,5 +1,5 @@
/**********************************************************************
- * Copyright (c) 2007,2010 IBM Corporation and others.
+ * Copyright (c) 2007,2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -25,6 +25,7 @@ public GeneralToolTip() {
public void createContent(Composite parent, IServer server) {
Text text = new Text(parent,SWT.NONE);
text.setBackground(parent.getBackground());
+ text.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
text.setEditable(false);
String s = "";
if (server.getRuntime() != null)
View
5 .../org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/ServerToolTip.java
@@ -1,5 +1,5 @@
/**********************************************************************
- * Copyright (c) 2007, 2011 IBM Corporation and others.
+ * Copyright (c) 2007, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -157,6 +157,7 @@ protected Composite createToolTipContentArea(Event event, Composite parent) {
// set the default text for the tooltip
StyledText sText = new StyledText(parent, SWT.NONE);
+ sText.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
sText.setEditable(false);
sText.setBackground(parent.getBackground());
@@ -192,7 +193,7 @@ protected Composite createToolTipContentArea(Event event, Composite parent) {
hintLabel.setAlignment(SWT.RIGHT);
hintLabel.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
hintLabel.setText(Messages.toolTipEnableFocus);
- hintLabel.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_DARK_GRAY));
+ hintLabel.setForeground(parent.getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
final Font font;
Display display = parent.getDisplay();

0 comments on commit 9f376ed

Please sign in to comment.
Something went wrong with that request. Please try again.