[Audiosharing] Use a11y compliant color for dialog buttons

Fix: 353907942
Test: manual
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ib034f66db0e3685458c51e0a9cbe9b534c205a69
This commit is contained in:
Yiyi Shen
2024-07-25 16:07:28 +08:00
parent 8a4a5f207e
commit 0395a8035a
3 changed files with 11 additions and 3 deletions

View File

@@ -15,8 +15,10 @@
~ limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:shape="rectangle">
<solid android:color="?android:colorButtonNormal" />
<solid android:color="?androidprv:attr/colorAccentPrimary" />
<corners android:radius="12dp" />
</shape>

View File

@@ -17,6 +17,7 @@
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
@@ -27,6 +28,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="?androidprv:attr/textColorOnAccent"
android:background="@drawable/audio_sharing_rounded_bg_ripple"
android:textAlignment="center" />

View File

@@ -15,7 +15,9 @@
~ limitations under the License.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
@@ -60,6 +62,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:textColor="?androidprv:attr/textColorOnAccent"
android:background="@drawable/audio_sharing_rounded_bg_ripple"
android:visibility="gone" />
@@ -70,6 +73,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:textColor="?androidprv:attr/textColorOnAccent"
android:background="@drawable/audio_sharing_rounded_bg_ripple"
android:visibility="gone" />
</LinearLayout>