Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: chrome/android/java/res/values-v17/styles.xml

Issue 872023002: Use floating labels for preference forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/values-v17/styles.xml
diff --git a/chrome/android/java/res/values-v17/styles.xml b/chrome/android/java/res/values-v17/styles.xml
index ce635c6af9e7b72b0249c1c2dcf7be0d7eac59f3..18f7f5677f7dc8b506291942e5d029fe9e32a258 100644
--- a/chrome/android/java/res/values-v17/styles.xml
+++ b/chrome/android/java/res/values-v17/styles.xml
@@ -11,6 +11,7 @@
<item name="android:buttonStyle">@style/PreferenceButtonStyle</item>
<item name="android:textAppearanceMedium">@style/PreferenceTextAppearanceMedium</item>
<item name="android:preferenceCategoryStyle">@style/PreferenceCategory</item>
+ <item name="floatLabelTextAppearance">@style/PreferenceFloatLabelTextAppearance</item>
</style>
<style name="PreferenceButtonStyle" parent="@android:style/Widget.Holo.Light.Button">
<!-- TODO(twellington): Delete btn_default_preferences.xml once the AppCompat theme supports
@@ -51,6 +52,7 @@
<item name="android:textColor">?android:attr/textColorSecondary</item>
</style>
<style name="PreferenceScreenLayout">
+ <item name="android:paddingTop">16dp</item>
<item name="android:paddingStart">16dp</item>
<item name="android:paddingEnd">16dp</item>
</style>
@@ -66,6 +68,10 @@
<style name="DeprecationWarningPreferenceTheme" parent="PreferencesTheme">
<item name="android:textSize">14sp</item>
</style>
+ <style name="PreferenceFloatLabelTextAppearance">
+ <item name="android:textColor">@color/float_label</item>
+ <item name="android:textSize">14sp</item>
+ </style>
<style name="ThemeWithActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:windowBackground">@android:color/white</item>

Powered by Google App Engine
This is Rietveld 408576698