From: Tor Norbye Date: Mon, 18 Oct 2010 18:56:07 +0000 (-0700) Subject: Set hover fill color X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ff438759bba6190a0ec162b3ea8d2cab41cf141f;p=android-x86%2Fsdk.git Set hover fill color The code which paints the hover didn't actually set the hover fill color on the graphics context so it was just blending with white. This happens to be the color the fill was initialized to so the problem wasn't noticeable. Change-Id: I95f0eface23f2a772b687ba348997a3eac2d85a9 --- diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java index e945ba2bd..8991f557c 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/LayoutCanvas.java @@ -1032,6 +1032,7 @@ class LayoutCanvas extends Canvas implements ISelectionProvider { if (mHoverFillColor != null) { int oldAlpha = gc.getAlpha(); gc.setAlpha(SwtDrawingStyle.HOVER.getFillAlpha()); + gc.setBackground(mHoverFillColor); gc.fillRectangle(x, y, w, h); gc.setAlpha(oldAlpha); }