From b755dacc3cb6d901ae78b3e6c02fbf69daa00b91 Mon Sep 17 00:00:00 2001 From: Massimo Carli Date: Tue, 14 Feb 2023 17:48:51 +0000 Subject: Align Compat UI to System UI fonts and textAppearance Fixes: 269077823 Test: Launch a size compat mode restart dialog and check the fonts. Same for the letterbox education dialog and the restart button tooltip. Change-Id: I1044e4078b09260876d21e5259b6bf26e5b3be75 --- .../Shell/res/layout/compat_mode_hint.xml | 6 +++++- .../letterbox_education_dialog_action_layout.xml | 2 ++ .../layout/letterbox_education_dialog_layout.xml | 8 +++++++ libs/WindowManager/Shell/res/values/styles.xml | 25 +++++++++++++++++++++- 4 files changed, 39 insertions(+), 2 deletions(-) (limited to 'libs') diff --git a/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml b/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml index 44b2f45052ba..3d3c00381164 100644 --- a/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml +++ b/libs/WindowManager/Shell/res/layout/compat_mode_hint.xml @@ -29,11 +29,15 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:lineSpacingExtra="4sp" + android:letterSpacing="0.02" android:background="@drawable/compat_hint_bubble" android:padding="16dp" android:textAlignment="viewStart" android:textColor="@color/compat_controls_text" - android:textSize="14sp"/> + android:textSize="14sp" + android:fontFamily="@*android:string/config_bodyFontFamily" + android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead" + />