summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Justin Weir <justinweir@google.com> 2025-03-21 07:12:42 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-21 07:12:42 -0700
commite88ceefb8246b901bdfafd3f67dc05fd1fcbf376 (patch)
tree3d83a23637f69c287d3dad7ca316e0e430321572
parenta052b1a21178993e314f552eaa40b7c94df6c027 (diff)
parent53c9b1691b191520c183b33b73ecf15e69ecf3ef (diff)
Merge "Update shade header fonts" into main
-rw-r--r--packages/SystemUI/res/layout/combined_qs_header.xml2
-rw-r--r--packages/SystemUI/res/values/styles.xml10
2 files changed, 8 insertions, 4 deletions
diff --git a/packages/SystemUI/res/layout/combined_qs_header.xml b/packages/SystemUI/res/layout/combined_qs_header.xml
index 5c06585de99c..65d17042412b 100644
--- a/packages/SystemUI/res/layout/combined_qs_header.xml
+++ b/packages/SystemUI/res/layout/combined_qs_header.xml
@@ -85,7 +85,7 @@ frame when animating QS <-> QQS transition
android:paddingEnd="@dimen/status_bar_left_clock_end_padding"
android:singleLine="true"
android:textDirection="locale"
- android:textAppearance="@style/TextAppearance.QS.Status"
+ android:textAppearance="@style/TextAppearance.QS.Status.Clock"
android:fontFeatureSettings="tnum"
android:transformPivotX="0dp"
android:transformPivotY="24dp"
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
index 0e1f99f28850..bde750145ff7 100644
--- a/packages/SystemUI/res/values/styles.xml
+++ b/packages/SystemUI/res/values/styles.xml
@@ -181,15 +181,19 @@
<item name="android:textColor">@androidprv:color/materialColorOnSurfaceVariant</item>
</style>
- <!-- This is hard coded to be sans-serif-condensed to match the icons -->
-
<style name="TextAppearance.QS.Status">
- <item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
+ <item name="android:fontFamily" android:featureFlag="!com.android.systemui.shade_header_font_update">@*android:string/config_headlineFontFamily</item>
+ <item name="android:fontFamily" android:featureFlag="com.android.systemui.shade_header_font_update">variable-body-medium-emphasized</item>
<item name="android:textColor">@color/shade_header_text_color</item>
<item name="android:textSize">14sp</item>
<item name="android:letterSpacing">0.01</item>
</style>
+ <style name="TextAppearance.QS.Status.Clock">
+ <item name="android:fontFamily" android:featureFlag="!com.android.systemui.shade_header_font_update">@*android:string/config_headlineFontFamily</item>
+ <item name="android:fontFamily" android:featureFlag="com.android.systemui.shade_header_font_update">variable-display-small-emphasized</item>
+ </style>
+
<style name="TextAppearance.QS.Status.Build">
<item name="android:textColor">?attr/onShadeInactiveVariant</item>
</style>