Fixing up styling of Prominent buttons and "view_user" to work better on different bg colors

This commit is contained in:
ThomasSession 2024-09-02 16:17:52 +10:00 committed by fanchao
parent f2413288ca
commit 32acd6e029
4 changed files with 22 additions and 17 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/gray50"/>
<item android:state_enabled="false" android:color="?android:textColorTertiary"/>
<item android:color="?prominentButtonColor"/>
</selector>

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:colorControlHighlight">
<item>
<color android:color="?colorPrimary" />
</item>
</ripple>

View File

@ -1,13 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?prominentButtonColor">
<item>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false">
<shape android:shape="rectangle">
<solid android:color="?colorPrimary"/>
<solid android:color="@android:color/transparent"/>
<corners android:radius="@dimen/medium_button_corner_radius" />
<stroke
android:color="?prominentButtonColor"
android:color="?android:textColorTertiary"
android:width="@dimen/border_thickness" />
</shape>
</item>
</ripple>
<item>
<ripple
android:color="?prominentButtonColor">
<item>
<shape android:shape="rectangle">
<solid android:color="@android:color/transparent"/>
<corners android:radius="@dimen/medium_button_corner_radius" />
<stroke
android:color="?prominentButtonColor"
android:width="@dimen/border_thickness" />
</shape>
</item>
</ripple>
</item>
</selector>

View File

@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="64dp"
android:background="@drawable/conversation_view_background"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/AccessibilityId_contact"
android:orientation="vertical">