diff options
author | Paul Lawrence <paullawrence@google.com> | 2014-07-16 21:12:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-15 20:35:01 +0000 |
commit | 41eb85226ceaba16a635eb6b9818231008466f24 (patch) | |
tree | a2bb3433dd947231ecd3e5eb38c49c870ac6d2ac /res | |
parent | 552458940450d509185a5d6857175f7d606d6366 (diff) | |
parent | 89c7570dd42ce6945ce8e092892a22ec79c30c82 (diff) | |
download | packages_apps_Settings-41eb85226ceaba16a635eb6b9818231008466f24.zip packages_apps_Settings-41eb85226ceaba16a635eb6b9818231008466f24.tar.gz packages_apps_Settings-41eb85226ceaba16a635eb6b9818231008466f24.tar.bz2 |
Merge "Make crypt dialogs material" into lmp-dev
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/crypt_keeper_password_entry.xml | 7 | ||||
-rw-r--r-- | res/layout/crypt_keeper_password_field.xml | 1 | ||||
-rw-r--r-- | res/layout/crypt_keeper_pattern_entry.xml | 3 | ||||
-rw-r--r-- | res/layout/crypt_keeper_pin_entry.xml | 3 | ||||
-rw-r--r-- | res/layout/crypt_keeper_pin_field.xml | 1 | ||||
-rw-r--r-- | res/values/colors.xml | 4 | ||||
-rw-r--r-- | res/values/styles.xml | 2 | ||||
-rw-r--r-- | res/values/themes.xml | 8 |
8 files changed, 16 insertions, 13 deletions
diff --git a/res/layout/crypt_keeper_password_entry.xml b/res/layout/crypt_keeper_password_entry.xml index b26f542..ecbfefd 100644 --- a/res/layout/crypt_keeper_password_entry.xml +++ b/res/layout/crypt_keeper_password_entry.xml @@ -33,17 +33,16 @@ > <include layout="@layout/crypt_keeper_password_field" /> </LinearLayout> - <!-- Emergency call button. - Text and icon are set by CryptKeeper.updateEmergencyCallButtonState() --> + Text is set by CryptKeeper.updateEmergencyCallButtonState() --> <Button android:id="@+id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="16dip" - style="@*android:style/Widget.Button.Transparent" + style="?android:attr/borderlessButtonStyle" android:textSize="14sp" android:drawablePadding="6dip" - /> + /> </LinearLayout> diff --git a/res/layout/crypt_keeper_password_field.xml b/res/layout/crypt_keeper_password_field.xml index 97afe6a..9a2a24d 100644 --- a/res/layout/crypt_keeper_password_field.xml +++ b/res/layout/crypt_keeper_password_field.xml @@ -28,6 +28,7 @@ android:inputType="textPassword" android:imeOptions="flagForceAscii|actionDone" android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_horizontal" /> <ImageView android:id="@+id/switch_ime_button" diff --git a/res/layout/crypt_keeper_pattern_entry.xml b/res/layout/crypt_keeper_pattern_entry.xml index a59d36f..2538809 100644 --- a/res/layout/crypt_keeper_pattern_entry.xml +++ b/res/layout/crypt_keeper_pattern_entry.xml @@ -41,8 +41,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="16dip" - style="@*android:style/Widget.Button.Transparent" - android:textSize="14sp" + style="?android:attr/borderlessButtonStyle" android:drawablePadding="6dip" /> diff --git a/res/layout/crypt_keeper_pin_entry.xml b/res/layout/crypt_keeper_pin_entry.xml index dfc5fb5..0f1f1e7 100644 --- a/res/layout/crypt_keeper_pin_entry.xml +++ b/res/layout/crypt_keeper_pin_entry.xml @@ -41,8 +41,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="16dip" - style="@*android:style/Widget.Button.Transparent" - android:textSize="14sp" + style="?android:attr/borderlessButtonStyle" android:drawablePadding="6dip" /> diff --git a/res/layout/crypt_keeper_pin_field.xml b/res/layout/crypt_keeper_pin_field.xml index 270b26b..dd9d233 100644 --- a/res/layout/crypt_keeper_pin_field.xml +++ b/res/layout/crypt_keeper_pin_field.xml @@ -28,6 +28,7 @@ android:inputType="numberPassword" android:imeOptions="flagForceAscii|actionDone" android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_horizontal" /> <ImageView android:id="@+id/switch_ime_button" diff --git a/res/values/colors.xml b/res/values/colors.xml index 0b3ea39..00697b3 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -50,6 +50,10 @@ <color name="lock_pattern_view_success_color">@color/theme_accent</color> <color name="lock_pattern_view_error_color">#fff4511e</color> + <color name="unlock_pattern_view_regular_color">@android:color/white</color> + <color name="unlock_pattern_view_success_color">@color/theme_accent</color> + <color name="unlock_pattern_view_error_color">#fff4511e</color> + <!-- Palette colors referenced by top-level themes. --> <color name="theme_primary">#ff263238</color> <color name="theme_primary_dark">#ff21272b</color> diff --git a/res/values/styles.xml b/res/values/styles.xml index cea615e..35e9301 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -221,7 +221,7 @@ <item name="android:windowIsFloating">true</item> </style> - <style name="CryptKeeperBlankTheme" parent="@android:style/Theme.Material.Light.NoActionBar"> + <style name="CryptKeeperBlankTheme" parent="@android:style/Theme.Material.NoActionBar"> <item name="android:background">#ff000000</item> </style> diff --git a/res/values/themes.xml b/res/values/themes.xml index 0bf3c06..bbf0dc5 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -143,11 +143,11 @@ <item name="android:actionBarStyle">@style/Theme.ActionBar</item> </style> - <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.Light.NoActionBar"> + <style name="Theme.CryptKeeper" parent="@android:style/Theme.Material.NoActionBar"> <!-- LockPatternView colors --> - <item name="@*android:regularColor">@color/lock_pattern_view_regular_color</item> - <item name="@*android:successColor">@color/lock_pattern_view_success_color</item> - <item name="@*android:errorColor">@color/lock_pattern_view_error_color</item> + <item name="@*android:regularColor">@color/unlock_pattern_view_regular_color</item> + <item name="@*android:successColor">@color/unlock_pattern_view_success_color</item> + <item name="@*android:errorColor">@color/unlock_pattern_view_error_color</item> </style> <style name="Theme.SubSettingsDialogWhenLarge" parent="Theme.DialogWhenLarge"> |