Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37005f76 authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Update media control colors for a11y

- Use new color scheme based on Material tokens
- Update scrim strength
- Lazy initialize in ColorSchemeTransition
- Set fixed text color directly XML styles/resources

Bug: 378848399
Bug: 378837284
Bug: 378837284
Flag: com.android.systemui.media_controls_a11y_colors
Test: visual, including with media_controls_ui_update and scene_container flags
Change-Id: I9b93a37fc6f286dea93a0b216ceec965292e4c01
parent 76ccff7d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,16 @@ flag {
  bug: "379044958"
}

flag {
    name: "media_controls_a11y_colors"
    namespace: "systemui"
    description: "Color scheme updates for improved a11y"
    bug: "378848399"
    metadata {
      purpose: PURPOSE_BUGFIX
    }
}

flag {
  name: "output_switcher_redesign"
  namespace: "systemui"
+0 −5
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
 <item android:color="?androidprv:attr/colorAccentPrimaryVariant"/>
</selector>
 No newline at end of file
+2 −3
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
  ~ limitations under the License.
  -->

<selector xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="?androidprv:attr/colorAccentPrimary"/>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="@android:color/system_primary_dark"/>
</selector>
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -16,5 +16,6 @@
  -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners android:radius="@dimen/qs_media_album_radius"/>
    <solid android:color="#FF000000" />
    <corners android:radius="@dimen/notification_corner_radius"/>
</shape>
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@
    <!-- media -->
    <color name="media_seamless_border">?android:attr/colorAccent</color>
    <color name="media_paging_indicator">@color/material_dynamic_neutral_variant80</color>
    <color name="media_on_background">#FFFFFF</color>

    <!-- media output dialog-->
    <color name="media_dialog_background" android:lstar="98">@color/material_dynamic_neutral90</color>
Loading