• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2018 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16-->
17
18<resources>
19
20    <style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
21        <item name="colorPrimary">@*android:color/primary_device_default_settings</item>
22        <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings</item>
23        <item name="android:colorBackground">?android:attr/colorPrimaryDark</item>
24        <!-- Homepage should follow device default design, the values is same as device default theme.-->
25        <item name="android:navigationBarColor">@android:color/black</item>
26        <item name="android:statusBarColor">?attr/colorPrimaryDark</item>
27    </style>
28
29    <style name="Theme.SubSettings" parent="Theme.SubSettings.Base"/>
30
31    <style name="ThemeOverlay.SwitchBar.Settings" parent="ThemeOverlay.SwitchBar.Settings.Base">
32        <item name="android:textColorPrimaryInverse">@android:color/black</item>
33    </style>
34
35    <style name="Theme.AlertDialog.Base" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
36        <item name="colorAccent">@*android:color/accent_device_default_dark</item>
37        <item name="android:colorError">@color/settings_dialog_colorError</item>
38        <item name="android:colorBackground">@*android:color/surface_dark</item>
39    </style>
40
41    <!-- Material theme for the pages containing TabLayout and ViewPager -->
42    <style name="Theme.TabTheme" parent="@style/Theme.MaterialComponents.DayNight">
43        <item name="colorPrimary">@*android:color/edge_effect_device_default_dark</item>
44    </style>
45
46    <style name="Theme.CollapsingToolbar.Settings" parent="@style/Theme.MaterialComponents.DayNight">
47        <item name="elevationOverlayEnabled">true</item>
48        <item name="elevationOverlayColor">?attr/colorPrimary</item>
49        <item name="colorPrimary">@*android:color/primary_dark_device_default_settings</item>
50        <item name="colorAccent">@*android:color/accent_device_default_dark</item>
51    </style>
52</resources>
53