blob: a7f6ce34ada599698b383acc631243f239cf68c4 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<resources>
<style name="NavigationPopupDialog" parent="Widget.AppCompat.Light.ListPopupWindow">
<item name="android:popupElevation">0dp</item>
</style>
<!-- Preferences -->
<style name="PreferencesTheme" parent="ThemeWithActionBar">
<item name="android:textColorLink">@color/pref_accent_color</item>
<item name="android:alertDialogTheme">@style/PreferencesDialogTheme</item>
<item name="android:divider">@null</item>
<item name="android:spinnerItemStyle">@style/PreferenceSpinnerItem</item>
<item name="floatLabelTextAppearance">@style/TextAppearance.BlackCaption</item>
<item name="floatLabelPaddingLeft">@dimen/pref_autofill_field_horizontal_padding</item>
<item name="floatLabelPaddingRight">@dimen/pref_autofill_field_horizontal_padding</item>
<item name="floatLabelPaddingTop">@dimen/pref_autofill_field_top_margin</item>
<item name="actionBarStyle">@style/PreferenceActionBarModern</item>
</style>
<style name="PreferencesDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
<item name="android:colorAccent">@color/pref_accent_color</item>
</style>
<style name="PreferenceCategoryWithButtonStyle">
<item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
<item name="android:paddingEnd">4dp</item>
</style>
<style name="TextAppearance.PreferenceCategoryText" parent="TextAppearance.RobotoMediumStyle">
<item name="android:textColor">@color/pref_accent_color</item>
<item name="android:textSize">12sp</item>
</style>
<style name="PreferenceTitle">
<item name="android:ellipsize">end</item>
<item name="android:singleLine">true</item>
<item name="android:textAppearance">?android:attr/textAppearanceListItem</item>
</style>
<style name="PreferenceSummary">
<item name="android:textAppearance">@style/TextAppearance.BlackBody</item>
</style>
<style name="PreferenceLayoutBase">
<item name="android:background">?android:attr/activatedBackgroundIndicator</item>
<item name="android:minHeight">?android:attr/listPreferredItemHeightSmall</item>
<item name="android:paddingTop">16dp</item>
<item name="android:paddingBottom">16dp</item>
<item name="android:paddingStart">?android:attr/listPreferredItemPaddingStart</item>
<item name="android:paddingEnd">?android:attr/listPreferredItemPaddingEnd</item>
</style>
<style name="PreferenceLayout" parent="PreferenceLayoutBase" />
<!-- Web Notifications -->
<style name="WebNotificationTitle"
parent="@android:style/TextAppearance.Material.Notification.Title"/>
<style name="WebNotificationBody"
parent="@android:style/TextAppearance.Material.Notification.Line2"/>
<style name="WebNotificationBodyBig"
parent="@android:style/TextAppearance.Material.Notification"/>
<style name="WebNotificationOrigin"
parent="@android:style/TextAppearance.Material.Notification.Info"/>
<style name="WebNotificationTime"
parent="@android:style/TextAppearance.Material.Notification.Time"/>
<style name="WebNotificationDivider">
<!-- From the non-public Drawable notification_template_divider -->
<item name="android:background">#29000000</item>
</style>
<style name="WebNotificationButtons">
<item name="android:layout_marginStart">-8dp</item>
</style>
<style name="WebNotificationButton"
parent="@android:style/Widget.DeviceDefault.Light.Button.Borderless.Small">
<item name="android:background">@drawable/web_notification_button_background</item>
<item name="android:textAppearance">@style/TextAppearance.WebNotificationButton</item>
</style>
<style name="TextAppearance.WebNotificationButton"
parent="android:TextAppearance.DeviceDefault.Widget.Button">
<item name="android:textColor">@color/secondary_text_default_material_light</item>
</style>
<style name="WebNotificationSettingsButton"
parent="@style/WebNotificationButton">
<item name="android:textAppearance">@android:style/TextAppearance.Material.Notification.Info</item>
<item name="android:paddingStart">32dp</item>
</style>
<style name="WebNotificationSettingsIcon">
<!-- This is a blank override of the v17 style. -->
</style>
<style name="WebNotificationLargeIcon">
<item name="android:padding">12dp</item>
</style>
<style name="WebNotificationSmallIcon">
<item name="android:background">@drawable/web_notification_small_icon_background</item>
<item name="android:padding">3dp</item>
</style>
<style name="IncognitoTheme" parent="MainTheme">
<item name="android:colorPrimary">@color/incognito_primary_color</item>
</style>
<!-- Theme variation for low-end devices.
Since ChromeActivities are not HW accelerated, they don't get fancy
material shadows for popups. This theme sets drawable with pre-baked
shadows to those popups to make them look better.
'popup_bg' is a 9-patch similar to 'abc_popup_background_mtrl_mult'
drawable from Android support library, where it's used to simulate
material design on earlier Android versions.
-->
<style name="ListPopupWindow.LowEnd" parent="android:Widget.Material.Light.ListPopupWindow">
<item name="android:popupBackground">@drawable/popup_bg</item>
</style>
<style name="Spinner.LowEnd" parent="android:Widget.Material.Light.Spinner">
<item name="android:popupBackground">@drawable/popup_bg</item>
</style>
<style name="AutoCompleteTextView.LowEnd" parent="android:Widget.Material.Light.AutoCompleteTextView">
<item name="android:popupBackground">@drawable/popup_bg</item>
</style>
<style name="MainTheme.LowEnd" parent="MainTheme">
<item name="android:popupWindowStyle">@style/ListPopupWindow.LowEnd</item>
<item name="android:listPopupWindowStyle">@style/ListPopupWindow.LowEnd</item>
<item name="android:spinnerStyle">@style/Spinner.LowEnd</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextView.LowEnd</item>
<!-- Without HW acceleration the default text cursor looks weird (top
half is way brighter than the bottom), so we use our own. -->
<item name="android:textCursorDrawable">@drawable/text_cursor_lowend</item>
</style>
</resources>