Bug 888034: No rounded corners on dominant colored backgrounds on BookmarkThumbnailView. [r=margaret]

--HG--
extra : rebase_source : 2b6d640d426d4e1eda6460c26a8f673c7ab6c563
This commit is contained in:
Sriram Ramasubramanian 2013-06-28 11:08:34 -07:00
parent d4372ad99d
commit fbcbca8bc3
3 changed files with 14 additions and 1 deletions

View File

@ -1018,6 +1018,7 @@ MOZ_ANDROID_DRAWABLES += \
mobile/android/base/resources/drawable/abouthome_promo_box.xml \
mobile/android/base/resources/drawable/action_bar_button.xml \
mobile/android/base/resources/drawable/action_bar_button_inverse.xml \
mobile/android/base/resources/drawable/bookmark_thumbnail_bg.xml \
mobile/android/base/resources/drawable/url_bar_bg.xml \
mobile/android/base/resources/drawable/url_bar_bg_shadow_repeat.xml \
mobile/android/base/resources/drawable/url_bar_entry.xml \

View File

@ -98,7 +98,7 @@ public class BookmarkThumbnailView extends ImageView {
@Override
public void setBackgroundColor(int color) {
int colorFilter = color == 0 ? DEFAULT_COLOR : color & COLOR_FILTER;
Drawable drawable = getResources().getDrawable(R.drawable.favicon_bg);
Drawable drawable = getResources().getDrawable(R.drawable.bookmark_thumbnail_bg);
drawable.setColorFilter(colorFilter, Mode.SRC_ATOP);
setBackgroundDrawable(drawable);
mShowBorder = false;

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size android:height="2dp"
android:width="2dp"/>
<solid android:color="#FFFFFFFF"/>
<stroke android:width="1dp" android:color="#FFDDDDDD"/>
</shape>