Commit ab04565a authored by juncai's avatar juncai Committed by Commit bot
Browse files

Change chooser action button to use grey and blue background

Sometimes users are trying to tap "PAIR" on WebBluetooth
chooser dialogs without selecting an item. This CL changes
the button to use grey background when no item is selected
and use blue background when an item is selected. This
makes it easier to see if the button is faded out or not.

I attached two screenshots of the chooser with grey and
blue background button in the issue link.

BUG=623117

Review-Url: https://codereview.chromium.org/2107583002
Cr-Commit-Position: refs/heads/master@{#402346}
parent 5d6ff0d0
......@@ -5,6 +5,7 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:chrome="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
......@@ -67,12 +68,16 @@
android:textSize="14sp" />
<!-- Button row. -->
<Button
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/positive"
style="?android:attr/buttonBarButtonStyle"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="end"
android:paddingTop="12dp"
android:paddingEnd="16dp" />
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textAllCaps="true"
android:textColor="#fff"
chrome:buttonColor="@color/pref_accent_color" />
</LinearLayout>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment