From 2aeeeaef57939d7fad5698dcb42f447024c1adfa Mon Sep 17 00:00:00 2001 From: Amin Shaikh Date: Mon, 26 Nov 2018 15:24:41 -0500 Subject: [PATCH] Update all TextAppearance.DeviceDefault styles. - Directly reference either config_{body,headline}FontFamily attributes instead of relying on the fontFamily set by material themes (note that this patch does not actually change any of the fonts for these styles) - This enables RROs to overlay only config_{body,headline}FontFamily to change all of TextAppearance.DeviceDefault* styles Bug: 119878221 Test: manual Change-Id: I13938985d9492ecf7e7f43d3aebb8498ca458d6a --- core/res/res/values/config.xml | 8 +- .../res/res/values/styles_device_defaults.xml | 143 +++++++++++++----- 2 files changed, 108 insertions(+), 43 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index c62071bdf5527..499278cf5a161 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3495,7 +3495,13 @@ true - @string/font_family_button_material + @string/font_family_button_material + + sans-serif + + sans-serif-light + + sans-serif-medium @dimen/restricted_icon_size_material diff --git a/core/res/res/values/styles_device_defaults.xml b/core/res/res/values/styles_device_defaults.xml index c03d570001d6e..2c04ec8e3d8bf 100644 --- a/core/res/res/values/styles_device_defaults.xml +++ b/core/res/res/values/styles_device_defaults.xml @@ -227,51 +227,100 @@ easier. - - + + + + + + + - - - + + + + + + + + + + + + + + + + + + @@ -279,15 +328,25 @@ easier. @string/config_headlineFontFamilyMedium - - - - + +