diff options
author | lambroslambrou <lambroslambrou@chromium.org> | 2015-08-20 15:05:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-20 22:06:35 +0000 |
commit | e7048e061e569e17628b4c54ebc5dcd68696cc39 (patch) | |
tree | 407daea68b8c416e1c3a9be5c552eb764879ae95 | |
parent | 2104ccae4a52ad6804131ae2dec5cca105a4b2f2 (diff) | |
download | chromium_src-e7048e061e569e17628b4c54ebc5dcd68696cc39.zip chromium_src-e7048e061e569e17628b4c54ebc5dcd68696cc39.tar.gz chromium_src-e7048e061e569e17628b4c54ebc5dcd68696cc39.tar.bz2 |
Android Chromoting: Some small UI tweaks
A few tweaks which were recommended by UX reviewers:
* Padding in the "Authenticate to host" dialog.
* Add elevation shadow to the toolbar on the Hosts list.
* Set the colorAccent (for checkboxes and similar controls) to match the
blue online-host icon.
Review URL: https://codereview.chromium.org/1291563005
Cr-Commit-Position: refs/heads/master@{#344594}
-rw-r--r-- | remoting/android/java/res/layout/main.xml | 3 | ||||
-rw-r--r-- | remoting/android/java/res/layout/pin_dialog.xml | 3 | ||||
-rw-r--r-- | remoting/android/java/res/values-v17/styles.xml | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/remoting/android/java/res/layout/main.xml b/remoting/android/java/res/layout/main.xml index d0ee401..b2a9155 100644 --- a/remoting/android/java/res/layout/main.xml +++ b/remoting/android/java/res/layout/main.xml @@ -19,7 +19,8 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/colorPrimary"/> + android:background="?attr/colorPrimary" + android:elevation="4dp"/> <FrameLayout android:layout_height="match_parent" android:layout_width="match_parent"> diff --git a/remoting/android/java/res/layout/pin_dialog.xml b/remoting/android/java/res/layout/pin_dialog.xml index 4ea5dc3..5941236 100644 --- a/remoting/android/java/res/layout/pin_dialog.xml +++ b/remoting/android/java/res/layout/pin_dialog.xml @@ -8,7 +8,8 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_height="wrap_content" - android:layout_width="match_parent"> + android:layout_width="match_parent" + android:padding="24dp"> <EditText android:id="@+id/pin_dialog_text" android:inputType="numberPassword" android:imeOptions="actionDone" diff --git a/remoting/android/java/res/values-v17/styles.xml b/remoting/android/java/res/values-v17/styles.xml index e24d957..9b7588a 100644 --- a/remoting/android/java/res/values-v17/styles.xml +++ b/remoting/android/java/res/values-v17/styles.xml @@ -9,6 +9,9 @@ <style name="BaseTheme" parent="@style/Theme.AppCompat.Light"> <item name="colorPrimary">#E0E0E0</item> <item name="colorPrimaryDark">#616161</item> + + <!-- The same blue color as the host-online icon. --> + <item name="colorAccent">#4285F4</item> </style> <style name="BaseTheme.NavigationDrawer" parent="@style/BaseTheme"> <item name="windowActionBar">false</item> |