| <?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> |
| |
| <style name="Base.V21.Theme.Chromium" parent="Base.V17.Theme.Chromium"> |
| <!-- Set android alert dialog attributes because the context menu dialog is |
| OS-dependent. Not setting alertDialogTheme pre-v21 because the window background |
| causes bad visual states with alert dialog list. --> |
| <item name="android:alertDialogTheme">@style/Theme.Chromium.AlertDialog</item> |
| </style> |
| <style name="Base.Theme.Chromium" parent="Base.V21.Theme.Chromium" /> |
| |
| <!-- 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. |
| '*_bg_tinted' are a 9-patchs 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/menu_bg_tinted</item> |
| </style> |
| <style name="Spinner.LowEnd" parent="android:Widget.Material.Light.Spinner"> |
| <item name="android:popupBackground">@drawable/dialog_bg_tinted</item> |
| </style> |
| <style name="AutoCompleteTextView.LowEnd" parent="android:Widget.Material.Light.AutoCompleteTextView"> |
| <item name="android:popupBackground">@drawable/menu_bg_tinted</item> |
| </style> |
| <style name="Theme.Chromium.WithWindowAnimation.LowEnd" |
| parent="Theme.Chromium.WithWindowAnimation"> |
| <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> |
| |
| <!-- Match the fontFamily in ui/android/java/res/values-v21/styles.xml --> |
| <style name="TextAppearance.FreFirstFrameButton" parent="TextAppearance.Button.Text.Filled"> |
| <item name="android:fontFamily">sans-serif-medium</item> |
| </style> |
| </resources> |