Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a39e433 authored by Raff Tsai's avatar Raff Tsai
Browse files

Fix Homepage wrong color in dark theme

Change-Id: Id22f8baff0b97c0e7081fb8c68241bc8d0d01a45
Fixes: 113964702
Fixes: 115789360
Test: manual
parent ea187419
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
<?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>
+8 −4
Original line number Diff line number Diff line
@@ -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>