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

Side by Side Diff: chrome/android/java/res/values-v21/styles.xml

Issue 914003002: Use ButtonCompat to get Material-y buttons in more places. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <resources> 6 <resources>
7 <!-- Preferences --> 7 <!-- Preferences -->
8 <style name="PreferencesTheme" parent="ThemeWithActionBar"> 8 <style name="PreferencesTheme" parent="ThemeWithActionBar">
9 <item name="android:textColorLink">@color/pref_accent_color</item> 9 <item name="android:textColorLink">@color/pref_accent_color</item>
10 <item name="android:buttonStyle">@style/PreferenceButtonStyle</item>
11 <item name="android:alertDialogTheme">@style/PreferencesDialogTheme</ite m> 10 <item name="android:alertDialogTheme">@style/PreferencesDialogTheme</ite m>
12 <item name="android:colorButtonNormal">@color/btn_default_preferences</i tem>
13 <item name="android:editTextBackground">@drawable/abc_edit_text_material </item> 11 <item name="android:editTextBackground">@drawable/abc_edit_text_material </item>
14 <item name="android:editTextStyle">@style/PreferenceEditTextStyle</item> 12 <item name="android:editTextStyle">@style/PreferenceEditTextStyle</item>
15 <item name="android:spinnerItemStyle">@style/PreferenceSpinnerItem</item > 13 <item name="android:spinnerItemStyle">@style/PreferenceSpinnerItem</item >
16 <item name="floatLabelTextAppearance">@style/PreferenceFloatLabelTextApp earance</item> 14 <item name="floatLabelTextAppearance">@style/PreferenceFloatLabelTextApp earance</item>
17 <item name="floatLabelPaddingLeft">@dimen/pref_autofill_field_horizontal _padding</item> 15 <item name="floatLabelPaddingLeft">@dimen/pref_autofill_field_horizontal _padding</item>
18 <item name="floatLabelPaddingRight">@dimen/pref_autofill_field_horizonta l_padding</item> 16 <item name="floatLabelPaddingRight">@dimen/pref_autofill_field_horizonta l_padding</item>
19 <item name="floatLabelPaddingTop">@dimen/pref_autofill_field_top_padding </item> 17 <item name="floatLabelPaddingTop">@dimen/pref_autofill_field_top_padding </item>
20 </style> 18 </style>
21 <style name="PreferencesDialogTheme" parent="@android:style/Theme.Material.L ight.Dialog.Alert"> 19 <style name="PreferencesDialogTheme" parent="@android:style/Theme.Material.L ight.Dialog.Alert">
22 <item name="android:colorAccent">@color/pref_accent_color</item> 20 <item name="android:colorAccent">@color/pref_accent_color</item>
23 </style> 21 </style>
24 <style name="PreferenceButtonStyle" parent="@android:style/Widget.Material.L ight.Button">
25 <item name="android:textColor">#fff</item>
26 </style>
27 <style name="PreferenceCategoryWithButtonStyle"> 22 <style name="PreferenceCategoryWithButtonStyle">
28 <item name="android:paddingStart">?android:attr/listPreferredItemPadding Start</item> 23 <item name="android:paddingStart">?android:attr/listPreferredItemPadding Start</item>
29 <item name="android:paddingEnd">4dp</item> 24 <item name="android:paddingEnd">4dp</item>
30 </style> 25 </style>
31 <style name="PreferenceCategoryTextStyle"> 26 <style name="PreferenceCategoryTextStyle">
32 <item name="android:fontFamily">sans-serif-medium</item> 27 <item name="android:fontFamily">sans-serif-medium</item>
33 <item name="android:textColor">@color/pref_accent_color</item> 28 <item name="android:textColor">@color/pref_accent_color</item>
34 <item name="android:textSize">14sp</item> 29 <item name="android:textSize">14sp</item>
35 </style> 30 </style>
36 <style name="PreferenceEditTextStyle" parent="Widget.AppCompat.EditText"> 31 <style name="PreferenceEditTextStyle" parent="Widget.AppCompat.EditText">
(...skipping 21 matching lines...) Expand all
58 <!-- Buttons --> 53 <!-- Buttons -->
59 <style name="ButtonCompat" parent="ButtonCompatBase"> 54 <style name="ButtonCompat" parent="ButtonCompatBase">
60 <item name="android:background">@drawable/button_compat</item> 55 <item name="android:background">@drawable/button_compat</item>
61 <item name="android:fontFamily">sans-serif-medium</item> 56 <item name="android:fontFamily">sans-serif-medium</item>
62 </style> 57 </style>
63 <style name="ButtonBorderlessCompat" parent="ButtonCompat"> 58 <style name="ButtonBorderlessCompat" parent="ButtonCompat">
64 <item name="android:background">@drawable/button_borderless_compat</item > 59 <item name="android:background">@drawable/button_borderless_compat</item >
65 </style> 60 </style>
66 61
67 </resources> 62 </resources>
OLDNEW
« no previous file with comments | « chrome/android/java/res/values-v21/dimens.xml ('k') | chrome/android/java/res/values/colors.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698