[Chipbar] Update the colors to make the chipbar stand out more.

Bug: 267821684
Test: Trigger chipbar -> see new colors (screenshots in bug)
Test: Change theme while chipbar is displayed -> verify chipbar is
re-displayed in the new theme color

Change-Id: I86ff54f931d63f5d8d44e85a8b1f1a4e7c238171
This commit is contained in:
Caitlin Shkuratov
2023-03-08 15:45:28 +00:00
parent 5eb4f21fee
commit e7d87a4e25
5 changed files with 10 additions and 5 deletions

View File

@@ -17,6 +17,6 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
<solid android:color="?androidprv:attr/colorSurface" />
<solid android:color="?androidprv:attr/colorAccentSecondary" />
<corners android:radius="32dp" />
</shape>

View File

@@ -20,7 +20,7 @@
android:color="?android:textColorPrimary">
<item android:id="@android:id/background">
<shape>
<solid android:color="?androidprv:attr/colorAccentPrimary"/>
<solid android:color="@android:color/system_accent1_200"/>
<corners android:radius="24dp" />
</shape>
</item>

View File

@@ -55,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="@dimen/chipbar_text_size"
android:textColor="?android:attr/textColorPrimary"
android:textColor="@android:color/system_accent2_900"
android:alpha="0.0"
/>
@@ -66,7 +66,7 @@
android:layout_height="@dimen/chipbar_end_icon_size"
android:layout_marginStart="@dimen/chipbar_end_item_start_margin"
android:src="@drawable/ic_progress_activity"
android:tint="?androidprv:attr/colorAccentPrimaryVariant"
android:tint="@android:color/system_accent2_700"
android:alpha="0.0"
/>
@@ -76,7 +76,7 @@
android:layout_height="@dimen/chipbar_end_icon_size"
android:layout_marginStart="@dimen/chipbar_end_item_start_margin"
android:src="@drawable/ic_warning"
android:tint="@color/GM2_red_500"
android:tint="@color/GM2_red_600"
android:alpha="0.0"
/>

View File

@@ -161,6 +161,7 @@
<color name="GM2_red_300">#F28B82</color>
<color name="GM2_red_500">#EA4335</color>
<color name="GM2_red_600">#B3261E</color>
<color name="GM2_red_700">#C5221F</color>
<color name="GM2_blue_300">#8AB4F8</color>

View File

@@ -294,6 +294,10 @@ abstract class TemporaryViewDisplayController<T : TemporaryViewInfo, U : Tempora
override fun onDensityOrFontScaleChanged() {
reinflateView()
}
override fun onThemeChanged() {
reinflateView()
}
}
private fun addCallbacks() {