You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.9 KiB
86 lines
3.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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>
|
|
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Settings">
|
|
<item name="colorPrimaryDark">@color/primary_dark_color</item>
|
|
<item name="tabIndicatorColor">@color/accent_color_dark</item>
|
|
<item name="textColorActionBar">?android:attr/textColorPrimary</item>
|
|
<item name="preferenceTheme">@style/PreferenceTheme</item>
|
|
</style>
|
|
|
|
<!-- Base emergency theme. -->
|
|
<style name="AppThemeEmergency" parent="Theme.AppCompat.Light.NoActionBar">
|
|
<item name="android:preferenceCategoryStyle">@style/AppTheme.PreferenceCategoryStyle</item>
|
|
<item name="colorPrimaryDark">@color/emergency_primary_dark</item>
|
|
<item name="colorPrimary">@color/emergency_primary</item>
|
|
<item name="textColorActionBar">@color/tab_text_color</item>
|
|
<item name="tabIndicatorColor">@color/emergency_accent</item>
|
|
<item name="preferenceTheme">@style/PreferenceTheme</item>
|
|
</style>
|
|
|
|
<!-- Base emergency theme. -->
|
|
<style name="AppThemeEmergencyAction" parent="Theme.AppCompat.Light.NoActionBar">
|
|
<item name="colorPrimaryDark">@android:color/black</item>
|
|
<item name="colorPrimary">@color/primary_dark_color</item>
|
|
</style>
|
|
|
|
<!-- ActionBar -->
|
|
<style name="ActionBarThemeOverlay" parent="ThemeOverlay.AppCompat.ActionBar">
|
|
<item name="colorAccent">@color/accent_color_dark</item>
|
|
<item name="colorControlNormal">?attr/textColorActionBar</item>
|
|
</style>
|
|
|
|
<!-- Tabs -->
|
|
<style name="AppTheme.TabLayout" parent="Widget.Design.TabLayout">
|
|
<item name="tabTextAppearance">@style/AppTheme.TabText</item>
|
|
<item name="tabSelectedTextColor">?attr/textColorActionBar</item>
|
|
<item name="tabIndicatorColor">?attr/tabIndicatorColor</item>
|
|
<item name="tabIndicatorHeight">2dp</item>
|
|
<item name="tabPaddingStart">24dp</item>
|
|
<item name="tabPaddingEnd">24dp</item>
|
|
<item name="tabMode">scrollable</item>
|
|
</style>
|
|
|
|
<style name="AppTheme.TabText" parent="TextAppearance.Design.Tab">
|
|
<item name="android:textColor">?attr/textColorActionBar</item>
|
|
<item name="android:textSize">14sp</item>
|
|
</style>
|
|
|
|
<!-- Preferences -->
|
|
<style name="AppTheme.PreferenceCategoryStyle" parent="Preference.Category">
|
|
<item name="android:layout">@layout/custom_preference_category_layout</item>
|
|
</style>
|
|
|
|
<style name="PreferenceTheme" parent="@style/PreferenceThemeOverlay.SettingsBase">
|
|
<!-- Parent path frameworks/support/SettingsLib/res/values/themes.xml -->
|
|
<item name="footerPreferenceStyle">@style/FooterPreference</item>
|
|
</style>
|
|
|
|
<style name="FooterPreference" parent="PreferenceTheme">
|
|
<item name="android:layout">@layout/preference_footer</item>
|
|
<item name="allowDividerAbove">true</item>
|
|
</style>
|
|
|
|
<style name="NameAutoCompletePreference" parent="PreferenceTheme">
|
|
<item name="android:positiveButtonText">@android:string/ok</item>
|
|
<item name="android:negativeButtonText">@android:string/cancel</item>
|
|
</style>
|
|
|
|
<style name="PreferenceCategory" parent="@style/Preference.Category.Material">
|
|
<item name="android:layout">@layout/preference_category_material_settings</item>
|
|
</style>
|
|
</resources>
|