Properly assigns the app's colors for primary, primaryDark, accent, etc to the colors used by the framework. Moves a couple colors that are alternate shades of the accent color into the framework for ease of overlaying. Deletes a few unused colors as well. Finally, fixes a bug where colorControlActivated was not being properly set due to the theme depending upon AppCompat. To workaround this undefined behavior, we explicitly set colorControlActivated to colorAccent which is what the framework sets it to. Change-Id: Ie0cba19b1b83a21f65692102df91bf4daf27dc44 Fixes: 29581883
50 lines
2.3 KiB
XML
50 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<style name="ActionBarTheme" parent="@*android:style/ThemeOverlay.Material.Dark.ActionBar" />
|
|
<style name="ActionBarPopupTheme" parent="@*android:style/ThemeOverlay.Material.Light" />
|
|
|
|
<style name="DocumentsTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
|
|
<item name="actionBarWidgetTheme">@null</item>
|
|
<item name="actionBarTheme">@style/ActionBarTheme</item>
|
|
<item name="actionBarPopupTheme">@style/ActionBarPopupTheme</item>
|
|
|
|
<item name="android:windowBackground">@color/window_background</item>
|
|
<item name="android:colorPrimaryDark">@color/primary_dark</item>
|
|
<item name="android:colorPrimary">@color/primary</item>
|
|
<item name="android:colorAccent">@color/accent</item>
|
|
<item name="android:colorControlActivated">?android:attr/colorAccent</item>
|
|
<item name="android:queryBackground">@color/menu_search_background</item>
|
|
|
|
<item name="android:listDivider">@*android:drawable/list_divider_material</item>
|
|
|
|
<item name="android:windowActionBar">false</item>
|
|
<item name="android:windowActionModeOverlay">true</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
|
|
<item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item>
|
|
</style>
|
|
|
|
<style name="TrimmedHorizontalProgressBar" parent="android:Widget.Material.ProgressBar.Horizontal">
|
|
<item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_material_trimmed</item>
|
|
<item name="android:minHeight">3dp</item>
|
|
<item name="android:maxHeight">3dp</item>
|
|
</style>
|
|
|
|
</resources>
|