summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2010-12-16 11:17:54 -0800
committerJohn Reck <jreck@google.com>2010-12-16 11:17:54 -0800
commit8e8e71ca9a24996eedfacba2bf5a4b587149727f (patch)
treecc419b45480d588db09ab27b1f7b0c9379d33848 /res
parent825d7a07726d7f77f4e08d7f54c166a4b3cf9ebd (diff)
downloadpackages_apps_browser-8e8e71ca9a24996eedfacba2bf5a4b587149727f.zip
packages_apps_browser-8e8e71ca9a24996eedfacba2bf5a4b587149727f.tar.gz
packages_apps_browser-8e8e71ca9a24996eedfacba2bf5a4b587149727f.tar.bz2
Bookmark widget favicon drawing cleanup
Bug: 3289421 Changes the favicon drawing for the bookmark widget to keep the favicon at its original size and draw a mostly transparent rounded white rectangle behind it. Change-Id: I8267bbcc3d805d0266281f231e38393eec4d0bc2
Diffstat (limited to 'res')
-rw-r--r--res/layout/bookmarklistwidget_item.xml6
-rw-r--r--res/values/colors.xml1
-rw-r--r--res/values/dimensions.xml2
3 files changed, 6 insertions, 3 deletions
diff --git a/res/layout/bookmarklistwidget_item.xml b/res/layout/bookmarklistwidget_item.xml
index 9d1f8ec..2f64054 100644
--- a/res/layout/bookmarklistwidget_item.xml
+++ b/res/layout/bookmarklistwidget_item.xml
@@ -24,11 +24,11 @@
<ImageView
android:id="@+id/thumb"
android:src="@drawable/browser_thumbnail"
- android:layout_height="32dp"
- android:layout_width="32dp"
+ android:layout_height="@dimen/bookmark_widget_thumb_size"
+ android:layout_width="@dimen/bookmark_widget_thumb_size"
android:layout_gravity="center_vertical"
android:layout_marginLeft="16dp"
- android:scaleType="fitCenter"/>
+ android:scaleType="centerInside"/>
<TextView
android:id="@+id/label"
android:layout_width="0dip"
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 31a8458..cb1b754 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -31,4 +31,5 @@
<color name="bookmarkWidgetFolderBackground">#A0383847</color>
<color name="qc_slice_normal">#C0A0A0A0</color>
<color name="qc_slice_active">#C02090FF</color>
+ <color name="bookmarkWidgetFaviconBackground">#23ffffff</color>
</resources>
diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml
index a4ab90a..ec7f94c 100644
--- a/res/values/dimensions.xml
+++ b/res/values/dimensions.xml
@@ -31,4 +31,6 @@
<dimen name="qc_radius">130dip</dimen>
<dimen name="qc_radius_inc">100dip</dimen>
<dimen name="qc_slop">15dip</dimen>
+ <dimen name="bookmark_widget_thumb_size">32dip</dimen>
+ <dimen name="bookmark_widget_favicon_size">26dip</dimen>
</resources>