Update home controls padding.

With smartspace being center aligned, home controls needs to update
paddings to center align with smartspace.

Test: https://screenshot.googleplex.com/ArmhXQKh3iixMge
Bug: 257553229
Change-Id: I1fceca6e9e9283251b33f9b9e6aedb76819d56b5
This commit is contained in:
Darrell Shi
2022-11-14 16:53:10 +00:00
parent d7d2d977a6
commit 27c1f77e20
2 changed files with 3 additions and 2 deletions

View File

@@ -1484,7 +1484,7 @@
<!-- Dream overlay complications related dimensions -->
<dimen name="dream_overlay_complication_clock_time_text_size">86sp</dimen>
<dimen name="dream_overlay_complication_clock_time_padding">20dp</dimen>
<dimen name="dream_overlay_complication_home_controls_padding">28dp</dimen>
<dimen name="dream_overlay_complication_clock_subtitle_text_size">24sp</dimen>
<dimen name="dream_overlay_complication_preview_text_size">36sp</dimen>
<dimen name="dream_overlay_complication_preview_icon_padding">28dp</dimen>

View File

@@ -81,7 +81,8 @@ public interface RegisteredComplicationsModule {
ComplicationLayoutParams.DIRECTION_UP,
DREAM_HOME_CONTROLS_CHIP_COMPLICATION_WEIGHT,
// Add margin to the bottom of home controls to horizontally align with smartspace.
res.getDimensionPixelSize(R.dimen.dream_overlay_complication_clock_time_padding));
res.getDimensionPixelSize(
R.dimen.dream_overlay_complication_home_controls_padding));
}
/**