From 7d8a0337d38baa963f14ef3637dbc76cf9678ff8 Mon Sep 17 00:00:00 2001 From: Nick Ning Date: Sat, 26 Mar 2022 22:59:13 +0000 Subject: [PATCH] Refactor common dream complication attributes in style. Common dream complication view attributes had been defined in multiple places, e.g. clock subtitle widgets all have the same font size but were defined many times in multiple places. Refactored to a single place such that other similar complication entries such as AQI could be added using the same style. Bug: 224784347 Test: manual Change-Id: Id1efa1a7ea3add90a1721602a42a2fab367f9ffe --- .../dream_overlay_complication_clock_date.xml | 9 ++------- .../layout/dream_overlay_complication_weather.xml | 8 ++------ packages/SystemUI/res/values/dimens.xml | 3 +-- packages/SystemUI/res/values/styles.xml | 14 ++++++++++++++ 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/SystemUI/res/layout/dream_overlay_complication_clock_date.xml b/packages/SystemUI/res/layout/dream_overlay_complication_clock_date.xml index cb63300f819b5..3f56bafef1343 100644 --- a/packages/SystemUI/res/layout/dream_overlay_complication_clock_date.xml +++ b/packages/SystemUI/res/layout/dream_overlay_complication_clock_date.xml @@ -17,13 +17,8 @@ + android:format24Hour="EEE, MMM d"/> diff --git a/packages/SystemUI/res/layout/dream_overlay_complication_weather.xml b/packages/SystemUI/res/layout/dream_overlay_complication_weather.xml index 76fe58c298527..f05922fb395c0 100644 --- a/packages/SystemUI/res/layout/dream_overlay_complication_weather.xml +++ b/packages/SystemUI/res/layout/dream_overlay_complication_weather.xml @@ -17,10 +17,6 @@ + android:layout_height="wrap_content" /> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 5217dce3d9831..7702724cec16e 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -1382,8 +1382,7 @@ 72sp - 18sp - 18sp + 18sp 36sp 28dp 2dp diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 96ce5454e7959..847aefdd67ce6 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -1133,4 +1133,18 @@ 14sp ?android:attr/textColorSecondary + + +