OSDN Git Service

Fix icon painting transparency for the palette
authorTor Norbye <tnorbye@google.com>
Tue, 9 Nov 2010 17:28:12 +0000 (09:28 -0800)
committerTor Norbye <tnorbye@google.com>
Tue, 9 Nov 2010 17:28:12 +0000 (09:28 -0800)
commit93b86c1f3185c8df21e2a45a31e4cd9ce567cef0
treef2c2fbb7ee43e4c3aa7ead55ac88cc7be729e5f8
parent0b51399d2ae99b94608c6cbb3533a3101142c24c
Fix icon painting transparency for the palette

The icons shown in the palette do not have transparency applied to
them, which means that you end up with white squares on a white
background. This looks okay in the outline view where the icons are
shown on a white background, but it does not look good in the palette
where they are on a gray background.

This changeset fixes the icon generation a bit such that it records a
transparent pixel for these icons. It's not an ideal solution since we
only have on/off transparency, not an alpha channel, which means that
we can't have a smoothly anti-aliased edge of the circles regardless
of the background. Luckily, a light color seems to work fine for both
cases.

While I was at it I also adjusted the font positioning slightly on the
Mac platform for some letters that needed it.

Change-Id: Idf5a4f6709096935122bfe05cfecffc63e74a863
eclipse/dictionary.txt
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/IconFactory.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteComposite.java