summaryrefslogtreecommitdiff
path: root/src/com/android/customization/picker/theme
diff options
context:
space:
mode:
authorchihhangchuang <chihhangchuang@google.com>2020-06-10 12:01:54 +0800
committerchihhangchuang <chihhangchuang@google.com>2020-06-10 12:01:54 +0800
commit00103e5f53bc2d8a3f7f6aba71c03a3efa53af13 (patch)
tree445a8136a7be0ee2f76d2969892f7a7a825c2187 /src/com/android/customization/picker/theme
parent3e5a805a12f201724b46e3e18c4a3b50547ed96c (diff)
downloadThemePicker-00103e5f53bc2d8a3f7f6aba71c03a3efa53af13.tar.gz
[Phase 3 Review] Update theme preview
- Uses body font for app label - Set smart space text size from 16sp to 18sp - Screenshot: https://screenshot.googleplex.com/hvn5CqH4NvS.png https://screenshot.googleplex.com/dppO75cR2FF.png (largest case) Test: Manually Fixes: 158625121 Change-Id: I00dadf1a796676b74fb8e4f53258509567b20b07
Diffstat (limited to 'src/com/android/customization/picker/theme')
-rw-r--r--src/com/android/customization/picker/theme/ThemeOptionPreviewer.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/com/android/customization/picker/theme/ThemeOptionPreviewer.java b/src/com/android/customization/picker/theme/ThemeOptionPreviewer.java
index 1f99c1e8..ec986014 100644
--- a/src/com/android/customization/picker/theme/ThemeOptionPreviewer.java
+++ b/src/com/android/customization/picker/theme/ThemeOptionPreviewer.java
@@ -160,6 +160,7 @@ class ThemeOptionPreviewer implements LifecycleObserver {
/** Loads the Theme option preview into the container view. */
public void setPreviewInfo(PreviewInfo previewInfo) {
setHeadlineFont(previewInfo.headlineFontFamily);
+ setBodyFont(previewInfo.bodyFontFamily);
setTopBarIcons(previewInfo.icons);
setAppIconShape(previewInfo.shapeAppIcons);
setColorAndIconsSection(previewInfo.icons, previewInfo.shapeDrawable,
@@ -252,15 +253,17 @@ class ThemeOptionPreviewer implements LifecycleObserver {
mStatusBarClock.setTypeface(headlineFont);
mSmartSpaceDate.setTypeface(headlineFont);
+ // Update font of color/icons section title.
+ TextView colorIconsSectionTitle = mContentView.findViewById(R.id.color_icons_section_title);
+ colorIconsSectionTitle.setTypeface(headlineFont);
+ }
+
+ private void setBodyFont(Typeface bodyFont) {
// Update font of app names.
for (int id : mShapeIconAppNameIds) {
TextView appName = mContentView.findViewById(id);
- appName.setTypeface(headlineFont);
+ appName.setTypeface(bodyFont);
}
-
- // Update font of color/icons section title.
- TextView colorIconsSectionTitle = mContentView.findViewById(R.id.color_icons_section_title);
- colorIconsSectionTitle.setTypeface(headlineFont);
}
private void setTopBarIcons(List<Drawable> icons) {