mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888034: No rounded corners on dominant colored backgrounds on BookmarkThumbnailView. [r=margaret]
--HG-- extra : rebase_source : 2b6d640d426d4e1eda6460c26a8f673c7ab6c563
This commit is contained in:
parent
dc4ef2fcbb
commit
21caccc07c
@ -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 \
|
||||
|
@ -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;
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user