diff options
author | Tor Norbye <tnorbye@google.com> | 2010-11-15 09:55:52 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2010-11-15 13:38:31 -0800 |
commit | 5d08915fe9014124566a2cdd7c1aa4219e01acea (patch) | |
tree | 2c25da4db7d27b0f86cd62fe6eff490dc16d0317 /eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java | |
parent | 7aa052149875bf58fe9ff3990e6e01140e983afe (diff) | |
download | sdk-5d08915fe9014124566a2cdd7c1aa4219e01acea.zip sdk-5d08915fe9014124566a2cdd7c1aa4219e01acea.tar.gz sdk-5d08915fe9014124566a2cdd7c1aa4219e01acea.tar.bz2 |
Add drop shadow to dragged items
Add in a drop shadow to items dragged from the palette. The primary
reason we need this is that some views (in some themes) only render
light content on top of a transparent background, which makes them
nearly impossible to see on a gray background (e.g. over the palette,
when you initiate the drag). The drop shadow helps add contrast. It
also makes the drag look better since it helps the drag preview image
stand out from the background and visually appear to be lifted on top
of it.
Since we're doing more image processing now, I moved the existing
non-SWT image manipulation methods into a separate ImageUtils class.
This changeset also fixes the way we pick the color to crop out when
using older layout libraries (without transparency support). We now
pick a pixel closer to the bounds of the rendered view such that we
for example can handle themes like the dialog theme.
Change-Id: Ifcbb840ef715bf26a9609f6996a4f136de5ca754
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/LinearLayoutRuleTest.java')
0 files changed, 0 insertions, 0 deletions