New color spec

- colorBackground and colorBackgroundFloating are the same
- keyguard and shade have lighter background
- "clear all" has same background as notifications
- notifications and keyguard buttons use colorSurface

Test: visual
Fixes: 184982648
Change-Id: I5d39138cab4a1d39147685eec9ed4fc89e616133
This commit is contained in:
Lucas Dupin
2021-04-09 16:20:20 -07:00
parent 298971dba9
commit 73efcfcf15
7 changed files with 13 additions and 11 deletions

View File

@@ -14,5 +14,5 @@
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/system_neutral1_500" android:lStar="97" />
<item android:color="@color/system_neutral1_500" android:lStar="98" />
</selector>

View File

@@ -48,10 +48,10 @@
<color name="accent_tertiary_variant_dark_device_default">@color/system_accent3_300</color>
<!-- Background colors -->
<color name="background_device_default_dark">@color/system_neutral1_800</color>
<color name="background_device_default_dark">@color/system_neutral1_900</color>
<color name="background_device_default_light">@color/system_neutral1_50</color>
<color name="background_floating_device_default_dark">@color/system_neutral1_900</color>
<color name="background_floating_device_default_light">@color/system_neutral1_100</color>
<color name="background_floating_device_default_dark">@color/background_device_default_dark</color>
<color name="background_floating_device_default_light">@color/background_device_default_light</color>
<!-- Surface colors -->
<color name="surface_header_dark">@color/system_neutral1_700</color>

View File

@@ -17,7 +17,7 @@
*/
-->
<resources>
<resources xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
<!-- Keyguard PIN pad styles -->
<style name="Keyguard.TextView" parent="@android:style/Widget.DeviceDefault.TextView">
<item name="android:textSize">@dimen/kg_status_line_font_size</item>
@@ -32,7 +32,7 @@
<item name="android:stateListAnimator">@null</item>
</style>
<style name="NumPadKey" parent="Theme.SystemUI">
<item name="android:colorControlNormal">?android:attr/colorBackground</item>
<item name="android:colorControlNormal">?androidprv:attr/colorSurface</item>
<item name="android:colorControlHighlight">?android:attr/colorAccent</item>
<item name="android:background">@drawable/num_pad_key_background</item>
</style>

View File

@@ -15,8 +15,9 @@
~ limitations under the License
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?android:attr/colorBackground" />
<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" />
<!--The radius is 1dp smaller than the notification one, to avoid aliasing bugs on the corners -->
<corners android:radius="1dp" />
</shape>

View File

@@ -16,10 +16,11 @@
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:color="@color/notification_ripple_untinted_color">
<item>
<shape>
<solid android:color="?android:attr/colorBackground" />
<solid android:color="?androidprv:attr/colorSurface" />
</shape>
</item>
</ripple>

View File

@@ -33,7 +33,7 @@
<!-- The color of the text inside a notification -->
<color name="notification_primary_text_color">@*android:color/notification_primary_text_color_dark</color>
<color name="notif_pill_background">@android:color/system_neutral1_800</color>
<color name="notif_pill_background">@*android:color/surface_dark</color>
<color name="notif_pill_text">@android:color/system_neutral1_50</color>
<color name="notification_guts_link_icon_tint">@color/GM2_grey_500</color>

View File

@@ -158,7 +158,7 @@
<color name="minimize_dock_shadow_end">#00000000</color>
<color name="default_remote_input_background">@*android:color/notification_default_color</color>
<color name="notif_pill_background">@android:color/system_neutral2_100</color>
<color name="notif_pill_background">@*android:color/surface_light</color>
<color name="notif_pill_text">@android:color/system_neutral1_900</color>
<color name="remote_input_accent">?android:attr/colorAccent</color>