Fix Homepage wrong color in dark theme
Change-Id: Id22f8baff0b97c0e7081fb8c68241bc8d0d01a45
Fixes: 113964702
Fixes: 115789360
Test: manual
diff --git a/res/values-night/themes.xml b/res/values-night/themes.xml
new file mode 100644
index 0000000..eb0a749
--- /dev/null
+++ b/res/values-night/themes.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018 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="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
+ <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings</item>
+ </style>
+
+</resources>
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 4bd6f52..91c0d85 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -165,14 +165,18 @@
<item name="android:windowNoTitle">true</item>
</style>
- <style name="Theme.Settings.Home" parent="Theme.AppCompat.DayNight.NoActionBar">
- <!-- Color names copied from frameworks/base/core/res/res/values/themes_device_defaults.xml -->
- <!-- TODO (b/113964702) : fix theme color -->
+ <style name="Theme.Settings.HomeBase" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="colorPrimary">@*android:color/primary_device_default_settings_light</item>
- <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item>
<item name="colorAccent">@*android:color/accent_device_default_light</item>
<item name="preferenceTheme">@style/PreferenceTheme</item>
+ </style>
+
+ <style name="Theme.Settings.Home" parent="Theme.Settings.HomeBase">
+ <item name="colorPrimaryDark">@*android:color/primary_dark_device_default_settings_light</item>
<item name="android:windowLightStatusBar">true</item>
+ <item name="android:navigationBarDividerColor">@*android:color/ripple_material_light</item>
+ <item name="android:navigationBarColor">@android:color/white</item>
+ <item name="android:windowLightNavigationBar">true</item>
</style>
</resources>