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

pull/1659/head
ThomasSession 7 months ago committed by fanchao
parent f2413288ca
commit 32acd6e029

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <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"/> <item android:color="?prominentButtonColor"/>
</selector> </selector>

@ -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>

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

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

Loading…
Cancel
Save