1 <?xml version="1.0" encoding="utf-8"?>
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
4 found in the LICENSE file. -->
8 <style name="PreferencesTheme" parent="ThemeWithActionBar">
9 <item name="android:textColorLink">@color/pref_accent_color</item>
10 <item name="android:alertDialogTheme">@style/PreferencesDialogTheme</item>
11 <item name="android:spinnerItemStyle">@style/PreferenceSpinnerItem</item>
12 <item name="floatLabelTextAppearance">@style/PreferenceFloatLabelTextAppearance</item>
13 <item name="floatLabelPaddingLeft">@dimen/pref_autofill_field_horizontal_padding</item>
14 <item name="floatLabelPaddingRight">@dimen/pref_autofill_field_horizontal_padding</item>
15 <item name="floatLabelPaddingTop">@dimen/pref_autofill_field_top_padding</item>
17 <style name="PreferencesDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
18 <item name="android:colorAccent">@color/pref_accent_color</item>
20 <style name="PreferenceCategoryWithButtonStyle">
21 <item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
22 <item name="android:paddingEnd">4dp</item>
24 <style name="PreferenceCategoryTextStyle">
25 <item name="android:fontFamily">sans-serif-medium</item>
26 <item name="android:textColor">@color/pref_accent_color</item>
27 <item name="android:textSize">14sp</item>
29 <style name="PreferenceTitle">
30 <item name="android:ellipsize">end</item>
31 <item name="android:singleLine">true</item>
32 <item name="android:textAppearance">?android:attr/textAppearanceListItem</item>
34 <style name="PreferenceSummary">
35 <item name="android:textAppearance">?android:attr/textAppearanceListItemSecondary</item>
36 <item name="android:textColor">?android:attr/textColorSecondary</item>
38 <style name="PreferenceLayoutBase">
39 <item name="android:background">?android:attr/activatedBackgroundIndicator</item>
40 <item name="android:minHeight">?android:attr/listPreferredItemHeightSmall</item>
41 <item name="android:paddingTop">16dp</item>
42 <item name="android:paddingBottom">16dp</item>
43 <item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
44 <item name="android:paddingEnd">?android:attr/listPreferredItemPaddingEnd</item>
46 <style name="PreferenceLayout" parent="PreferenceLayoutBase" />
48 <!-- Cast and media playback notifications -->
49 <style name="MediaNotificationTitle"
50 parent="@android:style/TextAppearance.Material.Notification.Title">
52 <style name="MediaNotificationText"
53 parent="@android:style/TextAppearance.Material.Notification"/>
54 <style name="RemoteNotificationTitle"
55 parent="@android:style/TextAppearance.Material.Notification.Title">
56 <item name="android:layout_marginBottom">4dp</item>
58 <style name="RemoteNotificationText"
59 parent="@android:style/TextAppearance.Material.Notification.Line2"/>
60 <style name="RemoteNotificationProgressBar" parent="@android:style/Widget.ProgressBar.Horizontal">
61 <item name="android:minHeight">5dp</item>
64 <style name="IncognitoTheme" parent="MainTheme">
65 <item name="android:colorPrimary">@color/incognito_primary_color</item>
68 <!-- Theme variation for low-end devices.
70 Since ChromeActivities are not HW accelerated, they don't get fancy
71 material shadows for popups. This theme sets drawable with pre-baked
72 shadows to those popups to make them look better.
73 'popup_background_shadow' is a copy of 'abc_popup_background_mtrl_mult'
74 drawable from Android support library, where it's used to simulate
75 material design on earlier Android versions.
77 <style name="PopupWindow.LowEnd" parent="android:Widget.Material.Light.PopupWindow">
78 <item name="android:popupBackground">@drawable/popup_background_shadow</item>
80 <style name="ListPopupWindow.LowEnd" parent="android:Widget.Material.Light.ListPopupWindow">
81 <item name="android:popupBackground">@drawable/popup_background_shadow</item>
83 <style name="Spinner.LowEnd" parent="android:Widget.Material.Light.Spinner">
84 <item name="android:popupBackground">@drawable/popup_background_shadow</item>
86 <style name="AutoCompleteTextView.LowEnd" parent="android:Widget.Material.Light.AutoCompleteTextView">
87 <item name="android:popupBackground">@drawable/popup_background_shadow</item>
89 <style name="MainTheme.LowEnd" parent="MainTheme">
90 <item name="android:popupWindowStyle">@style/ListPopupWindow.LowEnd</item>
91 <item name="android:listPopupWindowStyle">@style/ListPopupWindow.LowEnd</item>
92 <item name="android:spinnerStyle">@style/Spinner.LowEnd</item>
93 <item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextView.LowEnd</item>